Home>Article>Backend Development> Problem encountered: PHPNOW failed to modify the virtual host

Problem encountered: PHPNOW failed to modify the virtual host

WBOY
WBOY Original
2016-07-29 09:11:51 1467browse

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 theApacheconfiguration fileApache-20confextrahttpd-vhosts.conf. The contents have been changed and there is no problem.

View the error log fileApache-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 thatApachehas 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.

Statement:
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