 |
 |
troubles hosting my webpage (pics don't show, local links don't work)
|
 |
|
 |
|
Senior User
Join Date: Mar 2002
Status:
Offline
|
|
Well i have apache and php set up and running. I can get to my frontpage (index.html), but some (why some, I don't know) of the pictures load, and none of the links to my other pages work. All the links work on Apple's servers, but not when i'm hosting. I'm running OSX 10.2.1. Anyone have any ideas? I'd rather not post the url since it is my ip. Thanks.
|
|
|
| |
|
|
|
 |
|
 |
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
wanna provide some code for us to check out?
|
|
"Have sharp knives. Be creative. Cook to music" ~ maxelson
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Mar 2002
Status:
Offline
|
|
some code here
Well here's a link to my frontpage on idisk. Let me know if there is an easier way.
(Last edited by superfula; Oct 28, 2002 at 12:27 PM.
)
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Mar 2002
Location: Clogland
Status:
Offline
|
|
Edit: wrong thread, oops.
|
|
|
| |
|
|
|
 |
|
 |
|
Fresh-Faced Recruit
Join Date: Oct 2002
Location: Germany for now
Status:
Offline
|
|
Hello, it looks like you source is pointing to .jpg that are not there or it can't find them. When you downlaod all the files from apple did you put the picts in a different folder than the idex.html file. If you did that is your problem. Open up the index.html file in dreamweaver and redo the links to the picts. that should solve your problem.
|
|
Kevin
WebMaster of
www.gatesisthedevil.com
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Mar 2002
Status:
Offline
|
|
Well the webpage has always been saved on my harddrive. I just ul it to apple's servers. But I moved everything to the Library/Webserver/Documents folder so my computer could server the page. The pics are in the same folder as the html files. It should act the same way as me ul to idisk. All the html files and pics are in the same folder there as well.
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Oct 2002
Location: upstairs
Status:
Offline
|
|
Well, as far as the links go I'm not sure what to tell you. If they are indeed in the same folder as the html files then all should be fine. However, I took a look at your source and a few things are missing. Either I'm blind or is no opening html tag and there is also no opening head tag. The first line of code in the document is a meta tag (should be the opening html tag unless it's asp). It may not be the source of the problem but is definitely necessary for HTML compliance.
I would also recommend creating an images folder and keeping the image files separate from the html files.
Just an observation-
|
|
---------------------------------------
|
| |
|
|
|
 |
|
 |
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
i just realised that you have this stuff in the Public folder. may i suggest you use the Sites folder, and publish it via mac.com? that should result in an url like: http://homepage.mac.com/chadrs/index.html
|
|
"Have sharp knives. Be creative. Cook to music" ~ maxelson
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Mar 2002
Status:
Offline
|
|
No the webpage is in the sites folder. What I gave for dl for this thread i put in the public folder.
Everything works fine under apple's server. All i did was copy everything from the sites folder to Library/Webserver/Documents. Unfortunately now hosting it on my Mac doesn't work
EDIT: If I open the index.html locally, all the pics and links work fine. But if I use my ip, nothing works besides the mainpage. I do have a router, but I have port 80 being forwarded to my computer, so that shouldn't be the problem.
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Mar 2002
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Grizzled Veteran
Join Date: Jun 2001
Location: Melbourne, Australia
Status:
Offline
|
|
Originally posted by superfula:
anyone have any ideas?
Permissions, maybe? Perhaps the .jpegs are owned by a 'staff' group or something so the 'www' user can't read any file owned by that user.
To fix it, open the terminal and do the following:
cd /Library/WebServer/Documents
sudo chmod 775 *.jpg
And use your admin password when it asks.
Any help?
|
|
Computer thez nohhh...
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Feb 2001
Location: Chattanooga, TN
Status:
Offline
|
|
Possible problem that local hosting might be having deals with your {img} tags. Looking at the source, all of them look like this:
Code:
{img border=0 width=166 height=32 id="_x0000_i1027" src="biblesearch.jpg"}
Notice the [src="biblesearch.jpg"] part. I've had trouble from time to time if I didn't add the leading slash to the image name. Try this:
Code:
{img border=0 width=166 height=32 id="_x0000_i1027" src="/biblesearch.jpg"}
<>'s changed to {}'s for display only...
|
|
Yeah, about those TPS reports, didn't you get the memo?
--------------
2.3 Ghz Dual-Core G5/20" LCD/Life is Good!
Moo...
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Mar 2002
Status:
Offline
|
|
Originally posted by Simon Mundy:
Permissions, maybe? Perhaps the .jpegs are owned by a 'staff' group or something so the 'www' user can't read any file owned by that user.
To fix it, open the terminal and do the following:
cd /Library/WebServer/Documents
sudo chmod 775 *.jpg
And use your admin password when it asks.
Any help?
Yeah this did it. Not sure why i didn't think of it earlier. Thanks everyone for the help!
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|