Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2011
    Posts
    12
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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

  • #2
    Regular Coder patryk's Avatar
    Join Date
    Oct 2012
    Location
    /dev/couch
    Posts
    398
    Thanks
    2
    Thanked 64 Times in 64 Posts
    permissions and/or ownership issue perhaps.

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

  • #3
    Regular Coder stevenmw's Avatar
    Join Date
    Jun 2007
    Location
    OK
    Posts
    497
    Thanks
    27
    Thanked 31 Times in 31 Posts
    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.


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •