Jump to content

[SOLVED] recursive write permission during installation on Fedora 18


Recommended Posts

Hi,

 

i've just finished to install a brand new webserver based on Fedora 18/apache 2.4.4/MySQL 5.5.30/openssl 1.0.1e and PHP 5.4.14.

 

during installation of Prestashop 1.5.4 i got the following error screen

 

post-535686-0-95293200-1367269707_thumb.jpg

 

so for testing purpose i set all files and folders to 0777 but nothing changed, then i change user:group to apache...but once again nothing changed.

 

any idea where could be located the problem ?

 

thx.

 

Alain

Link to comment
Share on other sites

Ok, so for those who have the same issue, i have a solution.

 

in fact the problem is located at 2 places.

 

1. on some Linux web server, owner of web site (files/folders) should be apache. so as a group and user >> chown -R apache:apache

 

2. on some linux server like Fedora SELinux Alert Browser also play a role and to allow apache to perform some actions read/write, change permissions etc... you need to allow them.

 

so to check what is needed to do on "httpd" you can use:

getsebool -a | grep httpd

 

or directly:

setsebool -P httpd_enable_cgi on
setsebool -P httpd_unified on
setsebool -P httpd_builtin_scripting on

 

now you can give a 644 to all files and 705 to folders. It should work perfectly.

 

Hope it will help you :)

 

Have a nice day.

 

Alain

  • Like 2
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...