Forum Moderators: phranque
[localhost...]
But I cannot get PHP to run in a virtual host I have set up:
[fbsxiptest...]
The virtualhost (fbsxiptest) can display text/html, but I get a 404 error if I access any php file.
OS: Windows 2000
PHP version: PHP5
Apache version: 1.3.3.1
Here is the Virtual host entry from my config file:
<VirtualHost *:80>
ServerName fbsxiptest
DocumentRoot "C:/Program Files/Apache Group/Apache/htdocs/examples"
<Directory "C:/php-5.0.0RC3-Win32">
AllowOverride None
Options None
</Directory>
<Directory "C:/Program Files/Apache Group/Apache/htdocs/examples">
Options Indexes FollowSymlinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
ScriptAlias /php/ "C:/php-5.0.0RC3-Win32/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php-cgi.exe"
ErrorLog logs/fbsxiptest-error_log
CustomLog logs/fbsxiptest-access_log common
</VirtualHost>
doc_root = C:\Program Files\Apache Group\Apache\htdocs
Once I set this value to blank, all virtual hosts began to work properly:
doc_root =