Problem encountered: PHPNOW failed to modify the virtual host

WBOY
Release: 2016-07-29 09:11:51
Original
1469 people have browsed it

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:

Problem encountered: PHPNOW failed to modify the virtual host

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!