Enable PHP in default directory

Discussion in 'Installation/Configuration' started by ProTrooper, Aug 24, 2005.

  1. ProTrooper

    ProTrooper New Member

    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?
     
  2. till

    till Super Moderator

    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.
     
  3. ProTrooper

    ProTrooper New Member

    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.
     
  4. till

    till Super Moderator

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

    ProTrooper New Member

    But there is a virtual host configured. However... I did manually enter the FQDN in BIND. How can I change the default?
     

Share This Page