Jump to:

4952 Posts in 14240 Topics by 1491 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » Help - site was migrated by Sitevalley to VPS and now no longer works

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: 1174 Views
  • Larry7
    Avatar
    Community Member
    21 Posts

    Help - site was migrated by Sitevalley to VPS and now no longer works Link to this post

    I had a working site on Sitevalley's shared hosting environment but it was slow. So I had them migrate the site to a virtual server for me. I expected that the entire SS site wold be migrated.

    Alas when I run the site now I get this error

    Warning: fopen(/home/liveinsp/domains/liveinspiredjourney.org/public_html/silverstripe-cache/manifest-main) [function.fopen]: failed to open stream: Permission denied in /home/liveinsp/domains/liveinspiredjourney.org/public_html/sapphire/core/ManifestBuilder.php on line 112

    Fatal error: Cannot write manifest file! Check permissions of /home/liveinsp/domains/liveinspiredjourney.org/public_html/silverstripe-cache/manifest-main in /home/liveinsp/domains/liveinspiredjourney.org/public_html/sapphire/core/ManifestBuilder.php on line 116

    I have looked at the manifest-main file and its permission is 755. I am no Linux person but that seems reasonable.

    What else should I be looking at? At the moment the site is dead in the water.

    Thanks a lot for any help

    Larry

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Help - site was migrated by Sitevalley to VPS and now no longer works Link to this post

    The easiest way to fix this is to create a directory called silverstripe-cache in the path where you installed SilverStripe.

    Then, give that silverstripe-cache directory web user writable permissions.

    Cheers,
    Sean

  • Larry7
    Avatar
    Community Member
    21 Posts

    Re: Help - site was migrated by Sitevalley to VPS and now no longer works Link to this post

    There is already a silver-stripe cache directory as you can see from the error message. Have the paths changed or something as part of the migration? Currently the paths look like

    ../domains/liveinspiredjourney.org/public_html with the following directories under that

    sapphire
    silverstripe-cache (with tons of files under it including the manifest-main that is giving the permission error)

    and a whole bunch of other directories

    Is there some other place I should put the cache folder?

  • Larry7
    Avatar
    Community Member
    21 Posts

    Re: Help - site was migrated by Sitevalley to VPS and now no longer works Link to this post

    OK I think I fixed it but I hope I didn't use a sledgehammer to crack a walnut!

    I set the permissions on the silverstripe-cache folder and all folders and files below that to 777 to owner, group and public. That seemed to fix the problem but I hope I haven't opened up some backdoor or something

  • Sean
    Avatar
    Forum Moderator
    921 Posts

    Re: Help - site was migrated by Sitevalley to VPS and now no longer works Link to this post

    I think a better way would be to delete the silverstripe-cache directory, re-create it as a normal user and then make the web server user the owner. This way you don't have to do any chmod of files, and it's probably more secure.

    Not sure what your web server user is, but common examples are www-data, http and _www. You can probably find it out by using top and checking the http processes to see the user they're running as. You could probably check the phpinfo() output and seeing who the user is from there.

    Example:

    chown www-data /path/to/silverstripe-cache

    Sean

  • biapar
    Avatar
    Forum Moderator
    435 Posts
    1174 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.