Then you have a problem with your html/php.
Assume that you have one file, index.html, that points to a lot of others, "food/myfavouritecheeses.html", "rockets/SaturnVpic.html" and "logintoawesomeserver.php", you'd have a directory structure like this:
Code:
/var/www/:
"index.html"
"logintoawesomeserver.php"
<rockets>
"SaturnVpic.html"
<food>
"myfavouritecheeses.html"
So treat /var/www/ as the root of the web's filesystem. So google.com's server (assuming they run apache, I don't think they do) would look a bit like this:
Code:
/var/www/:
homepage.html
google.png
search.php (or something!)
If you have a problem viewing html, try opening gedit and copy-pasting this in:
Code:
<html>
<head>
</head>
<body>
<h2>My first webpage!</h2>
</body>
</html>
and saving it as "test.html". Then double-click on it. If it doesn't open, we can deal with that later. If it does, how have you produced your html? Did you code it, or use dreamweaver or whatever?
No disrespect, but I think learning a little more about the web first might be a good idea. Once you can code some html for yourself, (i.e. in notepad or a text editor), star thinking about a webserver.
I hope this helps, (I'm no expert).
Bookmarks