Topic awaiting preservation: getting PHP to work on a virtual host, on a local Apache (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Norway |
posted 12-02-2008 19:38
Oy, code: NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot D:/code/php/p01/p01.org.v7.5/ ServerName p01.dev ServerAlias www.p01.dev </VirtualHost> And whenever I try to add a LoadModule directive to "force enable" PHP, Apache barks upon restart about PHP being already loaded. |
Paranoid (IV) Mad Librarian From: ber/ger |
posted 12-02-2008 21:12
Hmm, a number of things might be going wrong, also depends on your main httpd.conf / apache2.conf and wahtever else you might have in place.
|
Paranoid (IV) Inmate From: Norway |
posted 12-02-2008 22:04
I don't seem to need the DirectoryIndex in the VirtualHost tag as my browsers pick up the index.php or index.htm automagically. |
Maniac (V) Inmate From: there...no..there..... |
posted 12-03-2008 02:40
hmmm...I'm running PHP5 and I don't have to use <?php /* foo */ ?> |
Paranoid (IV) Mad Librarian From: ber/ger |
posted 12-03-2008 23:57
Ah OK... then you have these settings in your apache2.conf already. code: short_open_tag = On |
Paranoid (IV) Inmate From: Norway |
posted 12-04-2008 21:29 |