Opening .php files

Forum for you who has PHP installation issues

Moderators: egami, macek, gesf

Post Reply
User avatar
php-forum Super User
php-forum Super User
Posts: 1279
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India

Wed Sep 17, 2003 9:35 pm

open your httpd.conf file "I hope it is the config file for apache 2 as well!!"

Now at the end add the following

Code: Select all

   DocumentRoot "path_to_your_dir_where_php_page_is"
   ServerName Localhost1271
    DirectoryIndex index.php

This will set the virtualhost for the IP, Be sure you know the filename as the directory listing is turned off by default.
Once you make the changes to the httpd.conf file, restart your server!
And have you added the .php extentsion??? Be sure you do that :!: :!:

Post Reply