Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Installing SilverStripe

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

File Permissions 3 Failed and 0 Warnings


Reply

3 Posts   521 Views

Avatar
BlueGrass

8 December 2013 at 5:43pm Community Member, 2 Posts

Hello all,

I am new to SS and have been trying to install SS 3.1.2 on CentOS 6.5. I have tried Composer and direct installation but both end-up with the same set of errors. Everything goes fine until I connect to http://myhost.mydomain.com that takes me to install.php where I get below errors:

The webserver user needs to be able to write to this file:
/var/www/html/.htaccess
The webserver user needs to be able to write to this file:
/var/www/html/mysite/_config.php
The webserver user needs to be able to write to this file:
/var/www/html/assets

I have followed the instructions and setup the correct owner as:
#chown -R apache:apache /var/www/html/silverstripe

And also set the correct permissions as:
#chmod 755 -R /var/www/html/silverstripe/assets
#chmod 755 /var/www/html/silverstripe/./htaccess
#chmod 755 /var/www/html/silverstripe/mysite/_config.php

After spending almost 2 days non-stop on this I am unable to install SS on my server. I am not sure what else to do? I've read almost every web post related to the issue and tried to follow solutions but nothing seems to fix it.

Any help with the resolution is appreciated in advance.

Thanks,
Blue

Attached Files
Avatar
Sean

17 December 2013 at 10:01am Forum Moderator, 921 Posts

Hello,

Is SELinux enabled? That could what's causing the permission problems, even though you've set the group and write permissions correctly.

Sean

Avatar
BlueGrass

19 December 2013 at 4:48am Community Member, 2 Posts

Hi Sean,

You are correct, I guess the SELinux was the issue. I gave up on the Composer install and went ahead with the individual install on a brand new VM and it worked. I was able to setup the CMS and update sample website as a generic user under /home/testuser/public_html/silverstripe directory and the site worked fine. However, I couldn't set up a site under /var/www/html/silverstripe directory. Any thoughts?

Thanks