CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   Apache configuration (http://www.codingforums.com/forumdisplay.php?f=69)
-   -   Linux Mint 13 LAMP install (http://www.codingforums.com/showthread.php?t=278177)

stockton 10-20-2012 11:15 AM

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

patryk 10-20-2012 11:39 AM

permissions and/or ownership issue perhaps.

can you access http://host_name/images/prince.jpg ?

stevenmw 10-29-2012 10:23 AM

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.


All times are GMT +1. The time now is 01:13 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.