我最近才弄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等
同样的问题,终于找到这里了,怎么解决呢?
灵光一现,加了改过来的端口访问即正常。不过之前也试过几次无效,小白做技术活真无奈………………

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values and handle functions that may return null values.

In PHP, use the clone keyword to create a copy of the object and customize the cloning behavior through the \_\_clone magic method. 1. Use the clone keyword to make a shallow copy, cloning the object's properties but not the object's properties. 2. The \_\_clone method can deeply copy nested objects to avoid shallow copying problems. 3. Pay attention to avoid circular references and performance problems in cloning, and optimize cloning operations to improve efficiency.

PHP is suitable for web development and content management systems, and Python is suitable for data science, machine learning and automation scripts. 1.PHP performs well in building fast and scalable websites and applications and is commonly used in CMS such as WordPress. 2. Python has performed outstandingly in the fields of data science and machine learning, with rich libraries such as NumPy and TensorFlow.

Key players in HTTP cache headers include Cache-Control, ETag, and Last-Modified. 1.Cache-Control is used to control caching policies. Example: Cache-Control:max-age=3600,public. 2. ETag verifies resource changes through unique identifiers, example: ETag: "686897696a7c876b7e". 3.Last-Modified indicates the resource's last modification time, example: Last-Modified:Wed,21Oct201507:28:00GMT.

In PHP, password_hash and password_verify functions should be used to implement secure password hashing, and MD5 or SHA1 should not be used. 1) password_hash generates a hash containing salt values to enhance security. 2) Password_verify verify password and ensure security by comparing hash values. 3) MD5 and SHA1 are vulnerable and lack salt values, and are not suitable for modern password security.

PHP is a server-side scripting language used for dynamic web development and server-side applications. 1.PHP is an interpreted language that does not require compilation and is suitable for rapid development. 2. PHP code is embedded in HTML, making it easy to develop web pages. 3. PHP processes server-side logic, generates HTML output, and supports user interaction and data processing. 4. PHP can interact with the database, process form submission, and execute server-side tasks.

PHP has shaped the network over the past few decades and will continue to play an important role in web development. 1) PHP originated in 1994 and has become the first choice for developers due to its ease of use and seamless integration with MySQL. 2) Its core functions include generating dynamic content and integrating with the database, allowing the website to be updated in real time and displayed in personalized manner. 3) The wide application and ecosystem of PHP have driven its long-term impact, but it also faces version updates and security challenges. 4) Performance improvements in recent years, such as the release of PHP7, enable it to compete with modern languages. 5) In the future, PHP needs to deal with new challenges such as containerization and microservices, but its flexibility and active community make it adaptable.

The core benefits of PHP include ease of learning, strong web development support, rich libraries and frameworks, high performance and scalability, cross-platform compatibility, and cost-effectiveness. 1) Easy to learn and use, suitable for beginners; 2) Good integration with web servers and supports multiple databases; 3) Have powerful frameworks such as Laravel; 4) High performance can be achieved through optimization; 5) Support multiple operating systems; 6) Open source to reduce development costs.


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

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

Zend Studio 13.0.1
Powerful PHP integrated development environment

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

Dreamweaver CS6
Visual web development tools