jquery on localhost
Posted
by ace
on Stack Overflow
See other posts from Stack Overflow
or by ace
Published on 2010-01-04T15:19:18Z
Indexed on
2010/04/19
3:33 UTC
Read the original article
Hit count: 737
I am using Linuxmint (= ubuntu linux 9.10)
I installed LAmp server which have apache,php mysql
and now i am trying to write jquery code
i made a file and it worked perfectly with this link : file:///var/www/jquery/jquery.html
but when i use this link, then it doesnt work anymore : http://localhost/jquery/jquery.html
the file jquery.min.js is in the same folder and i already changed the src of it in source code to
<script type="text/javascript" src="/var/www/jquery/jquery.min.js"></script>
<script type="text/javascript" src="jquery.min.js"></script>
but none of them works (with localhost link) using firebug I saw these errors:
- The requested URL /var/www/jquery/jquery.min.js was not found on this server.
- You don't have permission to access /jquery/jquery.min.js on this server.
Apache/2.2.12 (Ubuntu) Server at localhost Port 80
so what do I have to do to make it run?
© Stack Overflow or respective owner