Can't see index.php


#1

Hi all,
This is my first experience with DreamHost. I have gotten to the point of being able to FTP to my site. I have copied a file called ‘index.php’ to a folder in the FTP site with the same name as the domain–> 'mysite.com
When I try to access my site in a web browser at http://www.mysite.com I receive this error:

"404 Not Found

The requested URL / was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request."

HOWEVER, when I change the folder name on my FTP to ‘mysite’ and I access http://www.mysite.com, I get to see a directory listing.

I then uploaded a file called ‘index.html’ and added it to FTP folder called ‘mysite.com’ and I can view this page in web browsers.

I’m quite sure I have PHP enabled through DreamHost Web Panel->Manage Domains.

Any help would be greatly appreciated.


#2

What’s the URL to your website?

It sounds to me like when you created your Domain under Manage Domains, you set the web directory to be “mysite” instead of the default “mysite.com”. This will still work, but if you really want to be consistent, you can edit your Domain and fix the web directoryand then rename the folder back to mysite.com.

-Scott


#3

What should the web directory be? I have just changed it to /home/username/mysite.com

UPDATE
After making the change above everything is working peachy keen. Thanks very much Scott.