Author Topic: Trouble with permissions on Linux/Unix servers  (Read 2983 times)

Offline downside

  • RootsChat Marquessate
  • *******
  • Posts: 4,208
  • Make my day
    • View Profile
Re: Trouble with permissions on Linux/Unix servers
« Reply #9 on: Wednesday 04 February 09 12:36 GMT (UK) »
Quote
I tried a basic html page without CSS that will appear both in online editor preview and when called by http:/, but my CSS page will not appear when called and shows up fine in preview!

This sounds like an absolute or relative path problem.

An absolute path is the full pathname to a file, whereas the relative depends where you are the file system:-

//absolute
C:/Documents and Settings/User Name/My Documents/FamliyTreeFiles/mystyles.css

or

// relative
mystyles.css

Do your webpages (the ones you uploaded to the website) work on your local hardrive?
Sussex: Floate, West
Kent: Tuffee
Cheshire: Gradwell
Lancashire: Gradwell

UK Census information is Crown Copyright, from www.nationalarchives.gov.uk

Offline genealogynetwork

  • RootsChat Extra
  • **
  • Posts: 43
    • View Profile
Re: Trouble with permissions on Linux/Unix servers
« Reply #10 on: Wednesday 04 February 09 18:25 GMT (UK) »
downside: 

Yes, they work on local hard drive.  I tried both relative style.css and http:// full path name to css.style and neither worked directly when called via http:// in browser. They only for me on my hard drive and for the preview provided in the online editor.     

Kept getting the number 51 on the webpage (below the advertisements) and nothing else. The advertisements provided by host showed up great. lol



 
The Genealogy Box - Genealogy Network
American History and Genealogy Project

Offline downside

  • RootsChat Marquessate
  • *******
  • Posts: 4,208
  • Make my day
    • View Profile
Re: Trouble with permissions on Linux/Unix servers
« Reply #11 on: Wednesday 04 February 09 18:52 GMT (UK) »
I assume that the website requires that you have a file called either main.htm or index.htm.

Can you post the actual html code from the top down to the <body> tag of the file index.htm here so we can have a look at it.
Sussex: Floate, West
Kent: Tuffee
Cheshire: Gradwell
Lancashire: Gradwell

UK Census information is Crown Copyright, from www.nationalarchives.gov.uk

Offline genealogynetwork

  • RootsChat Extra
  • **
  • Posts: 43
    • View Profile
Re: Trouble with permissions on Linux/Unix servers
« Reply #12 on: Wednesday 04 February 09 20:04 GMT (UK) »


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>The Genealogy Box - Genealogy Network</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1"><LINK
href="style.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
The Genealogy Box - Genealogy Network
American History and Genealogy Project


Offline Nick29

  • Deceased † Rest In Peace
  • RootsChat Marquessate
  • ********
  • Posts: 6,273
    • View Profile
Re: Trouble with permissions on Linux/Unix servers
« Reply #13 on: Wednesday 04 February 09 23:21 GMT (UK) »
Is that it ?  ???
RIP 1949-10th January 2013

Best Wishes,  Nick.

Census information Crown Copyright, from www.nationalarchives.gov.uk

Offline downside

  • RootsChat Marquessate
  • *******
  • Posts: 4,208
  • Make my day
    • View Profile
Re: Trouble with permissions on Linux/Unix servers
« Reply #14 on: Thursday 05 February 09 00:04 GMT (UK) »
I can see there are some coding errors in the little snippet you have provided, particularly:

<LINK href="style.css" type=text/css rel=stylesheet>

Which should be:

<link rel="stylesheet" type="css/text" href="style.css" />

i.e. there is a lack of speechmarks after the = symbols, in your index.htm file.

All tags should be in lowercase nowadays, but that is not a critical factor and wouldn't cause the current problem.

The main thing is to correct that line above to see if it makes any difference.
The next thing to check is where the style.css file is located on the webserver.
Are your index.htm and style.css files in the same directory?

Another thing to look at is case sensitivity.  On Unix/Linux servers filenames are case sensitive, so your file style.css must be in lowercase on the server.  If it is spelled Style.css or STYLE.CSS then it won't be found.
Sussex: Floate, West
Kent: Tuffee
Cheshire: Gradwell
Lancashire: Gradwell

UK Census information is Crown Copyright, from www.nationalarchives.gov.uk

Offline genealogynetwork

  • RootsChat Extra
  • **
  • Posts: 43
    • View Profile
Re: Trouble with permissions on Linux/Unix servers
« Reply #15 on: Friday 06 February 09 06:30 GMT (UK) »
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="style.css" />
<title>The Genealogy Box - Genealogy Network</title>

Here is another go at the HTML with what looks like the appropriate quotes.
It will not call the style.css for some reason this time in preview.  If I change the link to  the complete web address, it will preview fine, in the online editor.  Then when you call the page http:// I get , of course the usual advertisement at the top and then the number "51" to the top left of the page and nothing else.

There is no style to the page if I do not include the full url to the stylesheet "style.css" in the online editors preview of the page and the same number 51 pops up when the page is called by http://.

Stumped.



The Genealogy Box - Genealogy Network
American History and Genealogy Project

Offline downside

  • RootsChat Marquessate
  • *******
  • Posts: 4,208
  • Make my day
    • View Profile
Re: Trouble with permissions on Linux/Unix servers
« Reply #16 on: Friday 06 February 09 09:38 GMT (UK) »
It must be to do with lower and UPPER case spelling of the file name style.css.

When you see your list of file names in ftp view - how is the file name displayed?

Style.css
STYLE.CSS

It has to be all lowercase letters:

style.css

style.css has to be in the root (the first directory) directory with index.htm.
Sussex: Floate, West
Kent: Tuffee
Cheshire: Gradwell
Lancashire: Gradwell

UK Census information is Crown Copyright, from www.nationalarchives.gov.uk

Wul

  • Guest
Re: Trouble with permissions on Linux/Unix servers
« Reply #17 on: Saturday 07 February 09 19:03 GMT (UK) »
It must be to do with lower and UPPER case spelling of the file name style.css.

When you see your list of file names in ftp view - how is the file name displayed?

Style.css
STYLE.CSS

It has to be all lowercase letters:

style.css

style.css has to be in the root (the first directory) directory with index.htm.

ftp programs are bad for changing case, as you know Unix and Linux are case sensitive where Microsoft is not.