oguevarra Posted August 26, 2007 Share Posted August 26, 2007 I just installed PHP 5.2.3. I'm trying to go to my index.php page by typing http://localhost/ but i'm just getting the listing of files in that directory. Any suggestions, thanks! Quote Link to comment https://forums.phpfreaks.com/topic/66801-indexphp-page/ Share on other sites More sharing options...
coldkill Posted August 26, 2007 Share Posted August 26, 2007 This might be a problem with Apache. Have you made sure you installed the PHP module into Apache and not just installed PHP? Quote Link to comment https://forums.phpfreaks.com/topic/66801-indexphp-page/#findComment-334746 Share on other sites More sharing options...
tibberous Posted August 26, 2007 Share Posted August 26, 2007 Yeah you have to add index.php in the conf file, then restart apache. It's just index.html and index.html.var by default. Open httpd.conf, file the line with DirectoryIndex, and change it to: DirectoryIndex index.php index.htm index.html Quote Link to comment https://forums.phpfreaks.com/topic/66801-indexphp-page/#findComment-334778 Share on other sites More sharing options...
cooldude832 Posted August 26, 2007 Share Posted August 26, 2007 Are u getting the default Welcome to PHP Page? If so that is because a index.php exist if not it loads the file viewer. Quote Link to comment https://forums.phpfreaks.com/topic/66801-indexphp-page/#findComment-334789 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.