MAXdev

How to use MDPro - when loading website in browser it doesn't open

kiwi.789 - Mar 22, 2007 - 01:34 PM
Post subject: when loading website in browser it doesn't open
hello,
It's the first time I use Mdpro and after installing it successfully on my local machine under
mysite.local when I try to access the site by typing its url : http://mysite.local instead of getting the content of an index page, I get nothing but a line saying "You can't access this file directly..." When I type in mysite.local/index.php it comes up with the same error message. So, every time I want to get to my site (as admin) I have to type in
mysite.local/admin.php .... how can I fix this and make it usable later when I put it online for visitors to just type the website-url in the browser and get the page they are supposed to see ?
Please help me ..... I'm new to this
MDMods.com - Mar 23, 2007 - 10:23 AM
Post subject:
Sounds like your HTTP server isn't configured correctly. If you're using apache, you need to set the DirectoryIndex to automatically check for index.php files. You'll need to set your httpd.conf to include something like the following:

Code:
<IfModule dir_module>
    DirectoryIndex index.php index.php4 index.php3 index.cgi index.pl index.html index.htm index.shtml index.phtml
</IfModule>


Or, just scrap whatever localhost system you're using and switch to XAMPP which works pretty much perfectly.
kiwi.789 - Mar 27, 2007 - 03:35 PM
Post subject: Reply to your reply
Hello,
Thank you for responding me Smile
I have copied your code into my config file ( I have set Directory Index for index.php,ect before... ) to make sure there is no mistake there,
but I keep haveing the same problem, when typing my url mysite.local I get a "Forbidden - can't access on this server" message. I can get to the admin page by typing mysite.local/admin.php, but from there clicking on the HOME link(---> index.php), I get "You can't access this file directly..." .... what can I do ? Sad
.
.
I prefer not to delete it all and re-install again with xamp .. unless there really is no other option
All times are GMT + 13 Hours
Powered by MDForum 2.0.8 © 2003-2007 based on phpBB © 2001, 2002 phpBB Team
and by MDRebel which uses Theme Graphics by Daz
and by Attachment-Mod 2.4.3