PDA

View Full Version : Enable PHP in default directory


ProTrooper
24th August 2005, 17:44
Hello, I installed PHP5 and Apache along with ISPConfig on a web server. While testing it local, I put a PHP script in the default directory (/var/www/html). The page just brought up the code. The PHP worked when I set them up through ISPConfig. How do I enable the PHP in the default directory?

till
24th August 2005, 17:59
Hello, I installed PHP5 and Apache along with ISPConfig on a web server. While testing it local, I put a PHP script in the default directory (/var/www/html). The page just brought up the code. The PHP worked when I set them up through ISPConfig. How do I enable the PHP in the default directory?

In your httpd.conf, but if you do that you will not be able anymore to control php in ISPConfig!

Why do you want that? In an ISP Setup the /var/www/html is not used anymore.

ProTrooper
24th August 2005, 18:05
Oh. When I browse the computer locally (http://node) or by IP address (i.e. no host header), it still uses the /var/www/html page as default.

till
24th August 2005, 18:19
Oh. When I browse the computer locally (http://node) or by IP address (i.e. no host header), it still uses the /var/www/html page as default.

This might be, depends on your httpd configuration. When no other vhost is configured for the IP / Domain apache shows the default page.

ProTrooper
24th August 2005, 18:26
But there is a virtual host configured. However... I did manually enter the FQDN in BIND. How can I change the default?