phpstudy cannot start apache
Failed to start phpStudy
One is firewall interception
The other is port 80 has been occupied by other programs, such as IIS, Thunder, etc.
The third is VC9 is not installed The runtime library, php and apache are all compiled with VC9. These three issues are addressed in turn.
##1. Change the firewall
Open the Control Panel——>System and Security——>Windows Firewall——>Allowed application, and then add phpStudy to the allowed applications;2. Port 80 is occupied
First you need to know what is occupied, and then solve the problem:Open the Windows key R to open running cmd, open a black window and enter netstat -ano to get the picture:## Find the 80 port as shown in the picture 0.0.0.0:80, as you can see Port 80 is occupied by process No. 4. Note down the PID number of the process running under port 80, as shown in Figure 4. Then enter tasklist | findstr "4" to find out that the process with PID 4 is the system process. Then unblock the system process. The solution for Windows 8.1 is similar to that for Windows 7. For other processes that are not system processes, you can directly open the Task Manager -> Service and end the process with the corresponding PID.
Later, because it was found that Xunlei and SQL server would also occupy port 80, Xunlei was closed. At that time, I considered using MYSQL and did not use SQL Server frequently. I also changed the SQL Server service log and registry, but the port was still not resolved. If there is a occupancy problem, just uninstall SQL Server directly.
3. Check the V9 runtime library.Open Control Panel\Programs\Programs and Features——>Uninstall and change programs to see, as shown in the figure:
There is no automatic Install.
After completing these steps, I thought it would be successful, but it has not been successful yet, as shown in the figure:
If it still doesn’t work, try to modify the configuration file. First open phpStudy——>Other options menu——>Site domain name settings. Set and save the configuration file according to your own situation. As shown in the picture:
# Then open the location of the apache file through phpStudy and enter the bin folder. Run cmd to enter the bin folder, as shown in the picture:
## Run httpd.exe The successful operation will look like this, as shown in the picture:
The failure to run successfully is:
The error message prompted is: AH00526: Syntax error on line 67 of D:/phpStudy/Apache/conf/vhosts.conf:
httpd.conf:
vhosts.conf
Finally ran phpStudy and finally succeeded
Recommended tutorial: phpstudy usage tutorial
The above is the detailed content of phpstudy cannot start apache. For more information, please follow other related articles on the PHP Chinese website!

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

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SublimeText3 Chinese version
Chinese version, very easy to use

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.