LITTLEBLACKDOG.COM Forum Index LITTLEBLACKDOG.COM

 
LWD LWD   FAQ FAQ   Memberlist Memberlist   Usergroups Usergroups   Active Topics Active Topics   Register Register  
  Profile Profile   Log in to check your private messages Log in to check your private messages   Log in Log in  
  Who is Online Who is Online   Image Gallery Image Gallery   Chat Chat   Search Search  
  LWDGear       LBDGear  

View next topic
View previous topic
Post new topic     Reply to topic   LITTLEBLACKDOG.COM Forum Index -> Operating Systems » OS - Linux
Author Message
Nesarin
Toilet Drinker
Toilet Drinker


Joined: 22 May 2003
Posts: 297
Location: ND

Post Posted: Fri Jun 29, 2007 8:53 am   Post subject: basic server webhosting problem... (probably) Reply with quote Back to top  

Hi guys, here's the problem:

I'm trying to help a professor troubleshoot his website problems. It is his personal website that is hosted on a RHEL4 web server and this particular machine hosts websites for many of the users on our campus. What is happening is that if you go to his website of his home directory here, it gives a url not found error for the file index_1.html. I've checked the directory in the machine itself, the file index_1.html does indeed exist in the directory.

So I did a direct request like this and the homepage loads, but none of the images do. I checked his html for the image source tag and they are the shortened path off of the public_html directory which should work, however they don't, but if you make a direct call to the file through the browser, it then shows up.

I've done a chmod 755 to the index_1.html with no avail and it seems that all the files in the public_html directory should be read access to others. I've checked my own file permissions for my personal public_html on the machine and they match the permissions of his directory, mine works fine.

The only thing that is unusual, of which I can't remember about files in linux is that there are a couple different copies of index_1.html in the file the regular index_1.html, then index_1.html~ and lastly an #index_1.html#

I can't remember what the others refer to, but I do remember having problems with a file when things like that existed within a folder back when I was learning to code. Can anyone point me in the right direction as to what might be happening here?

_________________
OH BALLZ!!
View user's profile Send private message
Slymer
Tail-Wagger
Tail-Wagger


Joined: 29 May 2003
Age: 30
Posts: 2360
Location: chair in front of my computer

Post Posted: Fri Jun 29, 2007 9:14 am   Post subject: Reply with quote Back to top  

on my server (from RH7 - Fedora 7) I've always had permissions set to 644 on html/image/etc the only files I make 755 are cgi/perl scripts

the file with the ~ at the end is a backup generated by the editor. the one with the #'s I don't know... save a copy of the index file (just in case) then delete the others and test it out then. you might also chmod to 644 for those files cause html isn't supposed to be executable. if it has script in it, that's browser side execution, not server side.

_________________
The Sly One
======================================
Windows is like crack. It feels good, it's easy to start into, it hooks you bad, it costs a ton of money, and it makes you crazy. And you still love it. - EdisonRex

Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Albert Einstein

View user's profile Send private message Visit poster's website AIM Address ICQ Number
Nesarin
Toilet Drinker
Toilet Drinker


Joined: 22 May 2003
Posts: 297
Location: ND

Post Posted: Fri Jun 29, 2007 9:20 am   Post subject: Reply with quote Back to top  

OK guys, nevermind, I figured it out and I don't think you guys would have necessarily caught it. I'm surprised I did. We recently split the business-oriented pages off onto a new server, away from the server that serves public homepages. When this happened we changed a dns entry that pointed to the shared machine and forced it to point only at the business web server In his webpage, the professor constantly uses the business page instead of pointing it to the dns record with individual web pages. Once upon a time that would have worked, because it would have all pointed at the same machine, but now it doesn't because that record was changed and is now on two different machines. I should have thought of this before. Rolling Eyes

_________________
OH BALLZ!!
View user's profile Send private message
Slymer
Tail-Wagger
Tail-Wagger


Joined: 29 May 2003
Age: 30
Posts: 2360
Location: chair in front of my computer

Post Posted: Fri Jun 29, 2007 11:26 am   Post subject: Reply with quote Back to top  

ah... so instead of links like "images/file.gif" it was "www.site.com/images/file.gif" ??

_________________
The Sly One
======================================
Windows is like crack. It feels good, it's easy to start into, it hooks you bad, it costs a ton of money, and it makes you crazy. And you still love it. - EdisonRex

Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Albert Einstein

View user's profile Send private message Visit poster's website AIM Address ICQ Number
Nesarin
Toilet Drinker
Toilet Drinker


Joined: 22 May 2003
Posts: 297
Location: ND

Post Posted: Fri Jun 29, 2007 12:38 pm   Post subject: Reply with quote Back to top  

Slymer wrote:
ah... so instead of links like "images/file.gif" it was "www.site.com/images/file.gif" ??



Well, actually it was more like:

<base href=www.dnsNoLongerPointsToRightServer.com/~user/>
and then all then
<IMG source=/image.jpg>

Basically ends up being the same kind of thing but even when you go to:
"www.correcturl.com/~user/", it still sends you to the previous wrong server where the file doesn't exist.

_________________
OH BALLZ!!
View user's profile Send private message
Slymer
Tail-Wagger
Tail-Wagger


Joined: 29 May 2003
Age: 30
Posts: 2360
Location: chair in front of my computer

Post Posted: Fri Jun 29, 2007 12:51 pm   Post subject: Reply with quote Back to top  

ah... never use the base tag in any of my stuff. I've moved my site around too much for something like that to be of any use.

_________________
The Sly One
======================================
Windows is like crack. It feels good, it's easy to start into, it hooks you bad, it costs a ton of money, and it makes you crazy. And you still love it. - EdisonRex

Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Albert Einstein

View user's profile Send private message Visit poster's website AIM Address ICQ Number
Display posts from previous:   
Post new topic     Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
phpBB SEO
All times are GMT - 8 Hours

Help us keep advertisements off this site. Donate today!