Bug #75528 [NEW]: Ignoring vhost document root when using php-cgi.exe in Apache2.4

From: Date: Wed, 15 Nov 2017 20:07:57 +0000
Subject: Bug #75528 [NEW]: Ignoring vhost document root when using php-cgi.exe in Apache2.4
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-212607@lists.php.net to get a copy of this message
From: eziitiss at gmail dot com Operating system: Windows 10 1703 x64 PHP version: 7.1.11 Package: CGI/CLI related Bug Type: Bug Bug description:Ignoring vhost document root when using php-cgi.exe in Apache2.4 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> -- Edit bug report at https://bugs.php.net/bug.php?id=75528&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=75528&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=75528&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=75528&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=75528&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=75528&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=75528&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=75528&r=needscript Try newer version: https://bugs.php.net/fix.php?id=75528&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=75528&r=support Expected behavior: https://bugs.php.net/fix.php?id=75528&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=75528&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=75528&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=75528&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75528&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=75528&r=dst IIS Stability: https://bugs.php.net/fix.php?id=75528&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=75528&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=75528&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=75528&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=75528&r=mysqlcfg

« previous php.bugs (#212607) next »