Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-20-2012, 11:15 AM   PM User | #1
stockton
New Coder

 
Join Date: Sep 2011
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
stockton is an unknown quantity at this point
Linux Mint 13 LAMP install

I have followed the procedure at http://community.linuxmint.com/tutorial/view/486 to install LAMP on my Mint 13 laptop with a view to developing locally & once working emigrate to my server but ...... the following simple HTML only displays the title(No image). The image does exist in the images folder & it makes no difference if I refer to it with ./images/prince.jpg or images/prince.jpg.
Please tell me how I got the install wrong.
Code:
<!DOCTYPE html>
<html>
<title>Jim Beam</title>
<meta name="author" content="Alf C Stockton">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="Mon, 22 Jul 2000 11:12:01 GMT" />
<meta name="viewport" content="width=device-width,initial-scale=1">
<script language="JavaScript" src="./js/prince.js"></script>
</head>
<body>
<center>
<img src="./images/prince.jpg" alt="Jim Beam" usemap="#prince" />
<map name="prince">
<area shape="rect" coords="300,170,350,200" onClick="javascript:gotoFirst();" />
<area shape="rect" coords="530,245,540,255" onClick="javascript:gotoSecond();" />
<area shape="rect" coords="520,180,540,200" onClick="javascript:gotoThird();" />
</map>
</body>
</html>
BTW Something very similar works fine on my website at
http://www.stockton.co.za/doc/jones
stockton is offline   Reply With Quote
Old 10-20-2012, 11:39 AM   PM User | #2
patryk
Regular Coder

 
patryk's Avatar
 
Join Date: Oct 2012
Location: /dev/couch
Posts: 395
Thanks: 2
Thanked 64 Times in 64 Posts
patryk is on a distinguished road
permissions and/or ownership issue perhaps.

can you access http://host_name/images/prince.jpg ?
patryk is offline   Reply With Quote
Old 10-29-2012, 10:23 AM   PM User | #3
stevenmw
Regular Coder

 
stevenmw's Avatar
 
Join Date: Jun 2007
Location: OK
Posts: 449
Thanks: 26
Thanked 30 Times in 30 Posts
stevenmw is an unknown quantity at this point
Try
Code:
/images/prince.jpg
I'm pretty sure you don't need the period

If Apache is up and running then the html is the problem.

Make sure the images folder exists, and that it is accessible.

In terminal try to locate the directory named images to make sure you have the right path. I'm not sure where Linux Mint puts the www, but Debian, and Ubuntu put it in /var/www. Fedora puts it in /var/www/html.

So in terminal type the following (change the path to match Linux Mint's)

/var/www/images

Terminal should tell if it is a directory or not. If it is chmod it. I do not know if Linux mint is the same, but in Debian it is

chmod 777 * /path/to/directory


Pick the appropriate permission, and make sure the commands match Linux Min'ts format.
stevenmw is offline   Reply With Quote
Reply

Bookmarks

Tags
linux mint lamp

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:40 AM.


Advertisement
Log in to turn off these ads.