Opening .php files

Forum for you who has PHP installation issues

Moderators: macek, egami, gesf

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

Virtual Host Config

Post by ruturajv » 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

<VirtualHost 127.0.0.1>
   DocumentRoot "path_to_your_dir_where_php_page_is"
   ServerName Localhost1271
    DirectoryIndex index.php
</VirtualHost>


This will set the virtualhost for the IP 127.0.0.1, 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

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest