Problems encountered:
Modify the PHPNOW virtual host, delete the original virtual host 127.0.0.8 and the corresponding folder, and re-add the virtual host 127.0.0.8
After the modification is completed, it keeps prompting when accessing 127.0.0.8, Page not found. As shown in the picture:
Later, I checked the Apache configuration file Apache-20confextrahttpd-vhosts.conf. The contents have been changed and there is no problem.
View the error log file Apache-20logs127.0.0.8-error_log, the error message displayed is that the deleted folder does not exist:
[Tue Nov 17 02:13:49 2015] [error] [client 127.0 .0.1] File does not exist: D:/PHPnow-1.5.6/htdocs/XXXXX
Solution:
Run pncp.cmd as administrator, perform virtual host operation, after the operation is completed, visit Normal.
Analysis of the reason:
I am using the WIN8 system. It may be due to permissions. I do not run pncp.cmd as an administrator. Although the interface shows that Apache has restarted successfully, it has not actually restarted successfully.
The above introduces the problems encountered: PHPNOW failed to modify the virtual host, including Apache content. I hope it will be helpful to friends who are interested in PHP tutorials.