我最近才弄xampp。但是http://localhost/ 就是死活打不开。在
xampp-control 里面显示的一切正常,apache 和MySQL 都是显示的running
日志如下
15:15:16 [main] Initializing Control Panel
15:15:16 [main] Windows Version: Windows XP SP3 32-bit
15:15:16 [main] XAMPP Version: 1.8.1
15:15:16 [main] Control Panel Version: 3.1.0 Beta 6 [ Compiled: September 20th 2012 ]
15:15:16 [main] Running with Administrator rights - good!
15:15:16 [main] XAMPP Installation Directory: "f:\xampp\"
15:15:16 [main] Checking for prerequisites
15:15:16 [main] All prerequisites found
15:15:16 [main] Initializing Modules
15:15:16 [main] Starting Check-Timer
15:15:16 [main] Control Panel Ready
15:15:24 [Apache] Attempting to start Apache app...
15:15:24 [Apache] Status change detected: running
15:15:24 [mysql] Attempting to start MySQL app...
15:15:25 [mysql] Status change detected: running
15:16:06 [Apache] Attempting to stop Apache (PID: 5564)
15:16:06 [Apache] Attempting to stop Apache (PID: 4656)
15:16:06 [Apache] Status change detected: stopped
15:16:06 [mysql] Attempting to stop MySQL (PID: 4024)
15:16:07 [mysql] Status change detected: stopped
15:17:41 [main] Deinitializing Modules
15:17:41 [main] Deinitializing Control Panel
但是在apache的日志里有如下的东西
[Tue Oct 30 15:15:28.468750 2012] [core:warn] [pid 5564:tid 216] AH00098: pid file F:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Oct 30 15:15:28.843750 2012] [ssl:warn] [pid 5564:tid 216] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 30 15:15:30.203125 2012] [mpm_winnt:notice] [pid 5564:tid 216] AH00455: Apache/2.4.3 (Win32) OpenSSL/1.0.1c PHP/5.4.7 configured -- resuming normal operations
[Tue Oct 30 15:15:30.218750 2012] [mpm_winnt:notice] [pid 5564:tid 216] AH00456: Server built: Aug 18 2012 12:41:37
[Tue Oct 30 15:15:30.218750 2012] [core:notice] [pid 5564:tid 216] AH00094: Command line: 'f:\\xampp\\apache\\bin\\httpd.exe -d F:/xampp/apache'
[Tue Oct 30 15:15:30.296875 2012] [mpm_winnt:notice] [pid 5564:tid 216] AH00418: Parent: Created child process 4656
[Tue Oct 30 15:15:33.093750 2012] [ssl:warn] [pid 4656:tid 1864] AH01873: Init: Session Cache is not configured [hint: SSLSessionCache]
[Tue Oct 30 15:15:33.281250 2012] [mpm_winnt:notice] [pid 4656:tid 1864] AH00354: Child: Starting 150 worker threads.
mysql 的日志是这样的
121030 15:15:26 [Note] Plugin 'FEDERATED' is disabled.
121030 15:15:26 InnoDB: The InnoDB memory heap is disabled
121030 15:15:26 InnoDB: Mutexes and rw_locks use Windows interlocked functions
121030 15:15:26 InnoDB: Compressed tables use zlib 1.2.3
121030 15:15:26 InnoDB: Initializing buffer pool, size = 16.0M
121030 15:15:26 InnoDB: Completed initialization of buffer pool
121030 15:15:26 InnoDB: highest supported file format is Barracuda.
121030 15:15:26 InnoDB: Waiting for the background threads to start
121030 15:15:27 InnoDB: 1.1.8 started; log sequence number 1595675
121030 15:15:27 [Note] Server hostname (bind-address): '0.0.0.0'; port: 3306
121030 15:15:28 [Note] - '0.0.0.0' resolves to '0.0.0.0';
121030 15:15:28 [Note] Server socket created on IP: '0.0.0.0'.
121030 15:15:28 [Note] Event Scheduler: Loaded 0 events
121030 15:15:28 [Note] f:\xampp\mysql\bin\mysqld.exe: ready for connections.
Version: '5.5.27' socket: '' port: 3306 MySQL Community Server (GPL)
我的xampp到底哪里出了问题啊。请各位大神帮帮忙啊
回复讨论(解决方案)
以前的apache没删除干净吧
你运行网站报什么错了,是什么界面。
我安的xampp都是绿色版的那种,没按过别的东西,
打开http://localhost/ 直接就是显示Internet Explorer 无法显示该页面
运行一下xampp文件夹里面提供的test_php 截图如下
xampp-control 截图
没遇到过,试试下面这个看看。注意:把原来的删除干净再装。
http://www.apachefriends.org/zh_cn/xampp-windows.html
谢谢,我去试一下,要是成功的话,我给你加分
我的xampp就是在那个网站下的,绿色的。使用的时候出现的我在帖子里说的问题
运行 xampp的话,和ie的版本有关系吗
运行 xampp的话,和ie的版本有关系吗 当然无关!!!
我现在快崩溃了,就是打不开http://localhost/
换个AppServ 试试吧
换过phpstudy2011A APMServ5.2.6 都是打不开http://localhost/ 但是界面里都显示的是该启动的都启动了
帮帮忙啊
帮帮忙啊,谢谢
我也出现楼主一样的问题,求解决方式。
请问楼主问题解决了吗?我也遇到这个问题了,求解决方式
应当是安装的历史文件没删除完,或者就是80端口被占用了。
跟楼主遇到同样坑人的问题
不知道解决了没有、求解决、
在httpd.conf配置文件查找 Lsiten 80,改成别的端口,可以改特殊一点,肯定不会用到的,比如3369等
同样的问题,终于找到这里了,怎么解决呢?
灵光一现,加了改过来的端口访问即正常。不过之前也试过几次无效,小白做技术活真无奈………………

TomakePHPapplicationsfaster,followthesesteps:1)UseOpcodeCachinglikeOPcachetostoreprecompiledscriptbytecode.2)MinimizeDatabaseQueriesbyusingquerycachingandefficientindexing.3)LeveragePHP7 Featuresforbettercodeefficiency.4)ImplementCachingStrategiessuc

ToimprovePHPapplicationspeed,followthesesteps:1)EnableopcodecachingwithAPCutoreducescriptexecutiontime.2)ImplementdatabasequerycachingusingPDOtominimizedatabasehits.3)UseHTTP/2tomultiplexrequestsandreduceconnectionoverhead.4)Limitsessionusagebyclosin

Dependency injection (DI) significantly improves the testability of PHP code by explicitly transitive dependencies. 1) DI decoupling classes and specific implementations make testing and maintenance more flexible. 2) Among the three types, the constructor injects explicit expression dependencies to keep the state consistent. 3) Use DI containers to manage complex dependencies to improve code quality and development efficiency.

DatabasequeryoptimizationinPHPinvolvesseveralstrategiestoenhanceperformance.1)Selectonlynecessarycolumnstoreducedatatransfer.2)Useindexingtospeedupdataretrieval.3)Implementquerycachingtostoreresultsoffrequentqueries.4)Utilizepreparedstatementsforeffi

PHPisusedforsendingemailsduetoitsbuilt-inmail()functionandsupportivelibrarieslikePHPMailerandSwiftMailer.1)Usethemail()functionforbasicemails,butithaslimitations.2)EmployPHPMailerforadvancedfeatureslikeHTMLemailsandattachments.3)Improvedeliverability

PHP performance bottlenecks can be solved through the following steps: 1) Use Xdebug or Blackfire for performance analysis to find out the problem; 2) Optimize database queries and use caches, such as APCu; 3) Use efficient functions such as array_filter to optimize array operations; 4) Configure OPcache for bytecode cache; 5) Optimize the front-end, such as reducing HTTP requests and optimizing pictures; 6) Continuously monitor and optimize performance. Through these methods, the performance of PHP applications can be significantly improved.

DependencyInjection(DI)inPHPisadesignpatternthatmanagesandreducesclassdependencies,enhancingcodemodularity,testability,andmaintainability.Itallowspassingdependencieslikedatabaseconnectionstoclassesasparameters,facilitatingeasiertestingandscalability.

CachingimprovesPHPperformancebystoringresultsofcomputationsorqueriesforquickretrieval,reducingserverloadandenhancingresponsetimes.Effectivestrategiesinclude:1)Opcodecaching,whichstorescompiledPHPscriptsinmemorytoskipcompilation;2)DatacachingusingMemc


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

SublimeText3 Linux new version
SublimeText3 Linux latest version

WebStorm Mac version
Useful JavaScript development tools
