Forum Moderators: phranque

Message Too Old, No Replies

Apache vhosts and PHP running on Windows 2000 Server

         

merwinmay

10:30 pm on Mar 15, 2008 (gmt 0)

10+ Year Member



I have a problem and can not get it configured. I have searched everywhere and can not find a solution. I appreciate any help.

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.

Otaku

9:11 am on Mar 17, 2008 (gmt 0)

10+ Year Member



AFAIK, PHP config in Apache has nothing to do with vhosts config.

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"