Ask Your Question
1

change folder permissions on /var/www/html

asked 2012-12-19 13:57:49 -0600

jnuserful gravatar image

updated 2012-12-19 23:46:11 -0600

Jomoos gravatar image

I am running a php script using rainTpl class on the local server and it throwing me an error:

directory /var/www/html/mt/tmp/ doesn 't have write permission

I tried

sudo `chmod 777-R /var/www/html`

but it did not work. Someone help me.

Update: tmp folder is not a link, is a folder from rainTpl class to save cache.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
0

answered 2012-12-19 17:20:20 -0600

bear gravatar image

Three things;

  1. chmod -R 777 /foo
  2. If /mnt/tmp is a link, permission will be denied by selinux
  3. Try disabling selinux
edit flag offensive delete link more
0

answered 2012-12-20 03:02:05 -0600

mahbubur-r-aaman gravatar image

The following commands may help you

chmod -R 0777 /var/www/html/

or

chmod +x /var/www/html/
edit flag offensive delete link more
0

answered 2012-12-23 12:10:26 -0600

jnuserful gravatar image

Thanks to all, the selinux was refusing permission.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-12-19 13:57:49 -0600

Seen: 15,749 times

Last updated: Dec 23 '12