Jump to content


Photo

PHP and Virtual Host


  • Please log in to reply
2 replies to this topic

#1 hexzero

hexzero
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 07 February 2003 - 03:18 AM

Okay..

I admit, I am very new to php & apache. Everything has ben working well for quite some time. I have managed to code a couple sites with out any problems. Being the brave soul that I am (Not), I decided to move a couple domains onto my server to host as vhost.

I would like to know how to enable php in the vhost themselves. I have searched the different forums and what not, but I was not able to find anything that would make much sense. Here is an example of one of my vhost that is in my httpd.conf:

<VirtualHost 192.168.1.126>
ServerAdmin admin@mydomain.com
DocumentRoot /home/mydomainuser/www
ServerName www.mydomain.com
ErrorLog /home/mydomainuser/wwwlogs/error_log
TransferLog /home/mydomainuser/wwwlogs/access_log
</VirtualHost>

Now, I know there is something that is supposed to be added to this to allow php to load, but i am not sure what. I am using PHP 4.3.0 with Apache 1.3.27

Thanks for the feedback, and I hope this post and its replies will be useful for others that trip down the same path I have!

#2 effigy

effigy
  • Staff Alumni
  • Advanced Member
  • 3,600 posts
  • LocationIL

Posted 07 February 2003 - 07:00 PM

how are the php directives setup in apache now?
Regexp | Unicode Article | Letter Database
/\A(e)?((1)?ff(?:(?:ig)?y)?|f(?:ig)?)\z/

#3 hexzero

hexzero
  • New Members
  • Pip
  • Newbie
  • 5 posts

Posted 09 February 2003 - 11:31 PM

Actually I haven\'t set them up yet for the virtual host at all. Right now its set the normal way, but I was sure you would have to add some type of directive under the virtual host. Thanks for the help....




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users