Forum Moderators: mack

Message Too Old, No Replies

Web Server Help

         

gregor

2:39 pm on Jan 22, 2004 (gmt 0)

10+ Year Member



The root folder of my web server (ie. the folder where my .html pages should go) is ".../var/www/html". Last night I was trying to upload some documents to this folder via Dreamweaver's "Put" command.

My index.html file as welll as a couple of .jpegs on my local site are inside a folder called "Temp". I uploaded the whole "Temp" folder to my web server's root folder (thus creating the path ".../var/www/html/Temp"). Next, I went to my domain name to check out my shiny new index.html page.

However, all I got was the default 404 page. My question ... why isn't the index.html file visible (to the server)? I mean, I uploaded everything correctly!?

Frustrated, I tried the upload process again, only this time selecting index.html and my .jpegs (NOT the whole "Temp" folder). I uploaded the files to the server root ("...var/www/html") and sure enough everything worked out hunky dory (ie. my index.html page and its associated .jpegs were clearly visible when I punched in my domain name's URL).

What the?! Why doesn't the server recognize the Temp folder? I mean, the path is correct so why shouldn't my index.html page display? I'm concerned about this because I want to keep the site as organized as possible ...

Any help appreciated! Cheers!

griz_fan

7:16 pm on Jan 22, 2004 (gmt 0)

10+ Year Member



Hey Gregor, welcome to WebMasterWorld!

One thing I noticed in your post was that the directory name "Temp" had a capital T. Judging by the server path you provided, I'm betting you host on a Linux/BSD/Unix box. These operating systems use case-sensitive file names, so a file or directory name of "Test" is different than "test". That might explain the problem because your browser was asking for the directory "test" (lower case) which doesn't exist on your server, since that directory has an upper case T. Try it again, but make sure your folders and files are all using lower case names.

robert adams

8:39 pm on Jan 22, 2004 (gmt 0)

10+ Year Member



also, you don't really want everything under the "temp" folder do you?
that is just the folder that it is in on your computer, if you use it on your server, you and everyone else will have to go to yourdomain.com/temp/index.html to see your home page.
It really is normally just in your root without the temp folder. therefore yourdomain.com/index.html is what you want.

luck,
robert

gregor

2:16 pm on Jan 23, 2004 (gmt 0)

10+ Year Member



*Resolved*

Thanks guys ... I've figured everything out! However, after contacting my host for support yesterday, they responded by telling me that I had changed a default var setting from 770-something to 700 (or, ahem, something along those lines). This was proving problematic when uploading files. I found this response quite weird... I had no clue what they were talking about (and still don't) and was quite surprised to hear it.

Anyhow, thanks again.

robert adams

6:23 am on Jan 24, 2004 (gmt 0)

10+ Year Member



they were probably talking about file permissions (chmod)
if you were using ftp or whatever to upload files, etc.
you could have accidentally changed one of the settings.

who knows,

glad you got it fixed,
robert