.htaccess - php project in ubuntu. Correct paths but forbidden access -


i'm trying run windows7 php project in ubuntu 12.04. give correct paths saw web console css file , other files aren't used. errors web console shows following:

get http://192.168.1.3/webserver/css/mycssfile.css [http/1.1 403 forbidden 0ms] http://192.168.1.3/webserver/css/search.css [http/1.1 403 forbidden 0ms] http://192.168.1.3/webserver/css/button.css [http/1.1 403 forbidden 0ms] http://192.168.1.3/webserver/css/button2.css [http/1.1 403 forbidden 0ms] http://192.168.1.3/webserver/js/resolutionfinder.js [http/1.1 403 forbidden 0ms] http://192.168.1.3/webserver/js/changeinputvalue.js [http/1.1 403 forbidden 0ms] http://192.168.1.3/webserver/js/ajaxcalls.js [http/1.1 403 forbidden 0ms] http://192.168.1.3/webserver/js/ajaxcalls.js [http/1.1 403 forbidden 0ms] http://192.168.1.3/webserver/images/logo.jpg [http/1.1 403 forbidden 0ms] 

someone told me have check .htaccess file make sure allow access css,js , images subdirectories i'm new in ubuntu , i'm bit confused it. use apache2 if helps. thank time.

if write ps -ef | grep apache on terminal outcome this

root      1058     1  0 20:30 ?        00:00:00 /usr/sbin/apache2 -k start www-data  1067  1058  0 20:30 ?        00:00:00 /usr/sbin/apache2 -k start www-data  1068  1058  0 20:30 ?        00:00:00 /usr/sbin/apache2 -k start www-data  1070  1058  0 20:30 ?        00:00:00 /usr/sbin/apache2 -k start www-data  1072  1058  0 20:30 ?        00:00:00 /usr/sbin/apache2 -k start www-data  2431  1058  0 20:33 ?        00:00:00 /usr/sbin/apache2 -k start www-data  2432  1058  0 20:33 ?        00:00:00 /usr/sbin/apache2 -k start www-data  2433  1058  0 20:33 ?        00:00:00 /usr/sbin/apache2 -k start www-data  2464  1058  0 20:35 ?        00:00:00 /usr/sbin/apache2 -k start www-data  2465  1058  0 20:35 ?        00:00:00 /usr/sbin/apache2 -k start www-data  2466  1058  0 20:35 ?        00:00:00 /usr/sbin/apache2 -k start manos     2541  2485  0 20:36 pts/3    00:00:00 grep --color=auto apache 

also if cd cd /var/www , ls -la outcome

total 12 drwxr-xr-x  3 root root 4096 sep  21 23:16 . drwxr-xr-x 14 root root 4096 sep  23 13:04 .. drwxr-xr-x  8 root root 4096 sep  23 20:35 webserver 

this caused wrong file permissions

as user apache running? can check (in terminal):

ps -ef | grep apache   (could running 'httpd') 

it might not have access read/write files of project. check file permissions in

cd /var/www   (or directory have) ls -la 

Comments

Popular posts from this blog

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -

php - $params->set Array between square bracket -