| Author |
Message |
kiwi.789
MD NewNew

Joined: Mar 22, 2007
Posts: 2
Member
|
Posted:
Mar 22, 2007 - 12: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
MD user level 5

Joined: Jan 06, 2007
Posts: 55
bannato
|
 Posted:
Mar 23, 2007 - 09:23 AM |
|
|
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. |
_________________ MDMods for all your MDLite module needs |
|
|
 |
kiwi.789
MD NewNew

Joined: Mar 22, 2007
Posts: 2
bannato
|
Posted:
Mar 27, 2007 - 02:35 PM |
|
| Post subject: Reply to your reply |
Hello,
Thank you for responding me
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 ?
.
.
I prefer not to delete it all and re-install again with xamp .. unless there really is no other option |
|
|
|
 |
|
|
| |