Forum Moderators: phranque
PHP is running fine if I run <?phpinfo();?> in the htdocs directory. But if I try to configure httpd-vhosts.conf and include it in the httpd.conf file it directs it to the correct path but php won't work. I can post my conf files if you want me to but I thought maybe someone would have a idea. Thanks for your help.
Set up PHP first, then go configure vhosts.
PHP config in Apache is non-trivial though :) Make sure you have:
1. correct mime-type mapping (.php should map to application/x-httpd-php:
AddType application/x-httpd-php .php
2. PHP module loaded:
LoadModule php5_module "c:/your/path/to/php5apache2_2.dll"
3. php.ini directory is known:
PHPIniDir "c:/your/path"