|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-11-16 17:54 UTC] eziitiss at gmail dot com
[2018-05-05 13:05 UTC] ab@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: ab
[2018-05-05 13:05 UTC] ab@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 13 10:00:01 2025 UTC |
Description: ------------ Using apache2.4.29 x64 from ApacheLounge with mod_fcgid and php 7.1.11 nts. Have configured 2 virtual hosts each using a different path: vhost 1 path: c:/Apache24/htdocs vhost 2 path: c:/website under htdocs: exists one file index.php under website: exists 2 files index.php and index.html When calling vhost1/index.php - page opens as expected When calling vhost2/index.html - page opens as expected When calling vhost2/index.php - instead of opening index.php from website folder, it opens index.php from htdocs folder. The php script inside the index.php files is only an echo with page name where I have been landed. When I remove from apache config file php-fcgi integration all works as expected (correct php code is displayed as uninterpreted text) fcgi configurationL <IfModule fcgid_module> # Where is your php.ini file? FcgidInitialEnv PHPRC "c:/php7111nts" AddHandler fcgid-script .php FcgidWrapper "c:/php7111nts/php-cgi.exe" .php </IfModule> Vhost configuration: <VirtualHost *:80> DocumentRoot "c:/Apache24/htdocs" ServerName localhost <Directory "c:/Apache24/htdocs"> Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride None Require all granted </Directory> </VirtualHost> <VirtualHost *:80> DocumentRoot "c:/website" ServerName test.dev <Directory "c:/website"> Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride None Require all granted </Directory> </VirtualHost>