Jump to:

4945 Posts in 17688 Topics by 1494 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Problem with install.php SS version 2.3.2

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

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

Page: 1
Go to End
Author Topic: 2174 Views
  • lanks
    Avatar
    Community Member
    61 Posts

    Problem with install.php SS version 2.3.2 Link to this post

    Hi
    I am trying to install silverstripe on an apache webserver but the install.php page is not letting me as there are permissions errors that aren't going away.
    When I first go to the install.php page I get error messages for three files that it says apache is unable to write to the files/folders are ".htaccess", "mysite/_config.php", and "assets". So when I go into the server and change the permissions on these files and reload the install.php page the error for the "assets" folder goes away but the others stay. I've tried changing various permissions on the files and it still doesn't work. Some of the things that I have tried are making apache the owner of the files, changing the files permissions to "777" and changing the permissions for the directory that the files are in to "777". I have also done the steps that are on the "Silverstripe server requirements" page.
    So the problem must be somewhere else in linux with some other configuration. Please if anyone has encountered this problem before or knows some possibilities of things that may be affecting this let me know.

    Thanks Liam.

  • TotalNet
    Avatar
    Community Member
    181 Posts

    Re: Problem with install.php SS version 2.3.2 Link to this post

    Setting the permissions on these should be straight forward but you're obviously encountering an issue.

    First, the difference between assets and the other two that are failing is that assets is a directory and the others are files. I can't think of any apache directives that could affect this.

    Permissions of 777 should allow pretty much anything, can you check that these files actually exist? also try adding write permission for the web server user to the directory SS is in and the mysite directory.

    Cheers,

    Rich

  • lanks
    Avatar
    Community Member
    61 Posts

    Re: Problem with install.php SS version 2.3.2 Link to this post

    Hi
    Thanks for the reply. After many hours of trying to get this fixed I finally got it to work with the help of "mobiusnz\work" from the silverstripe irc channel. I dont know how unique this problem is but I will write what the problem was, hopefully this will help someone.

    The problem was to do with SElinux which is "Security Enhanced Linux" a feature that comes with linux and since I was using Fedora it is by default set to enforce and obviously doesn't allow for things like silverstripe to write to files. So to get silverstripe to work I had to run this command "chcon -R -t httpd_sys_content_t /var/www/silvertriperoot/".
    As far as I know what the command does is disable SElinux enforcing whatever it does on that directory, therefore allowing silverstripe to write to the files that it needs.

    So a big thank you to "mobiusnz\work" for finally getting this to work.

    Cheers
    Liam

  • mobius
    Avatar
    Community Member
    54 Posts

    Re: Problem with install.php SS version 2.3.2 Link to this post

    Hi lanks, no problem. Thanks for posting the solution up here so others can give it a shot if they have the same problem.

    2174 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.