Jump to:

4938 Posts in 16368 Topics by 1490 members

Installing SilverStripe

SilverStripe Forums » Installing SilverStripe » PHP Error during installation on a new host

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: 1943 Views
  • dbc
    Avatar
    Community Member
    7 Posts

    PHP Error during installation on a new host Link to this post

    I am encountering another odd issue while installing Silverstripe on a new host. Previously I had already successfully installed the system on a separate host to test viability of the system, and I am now in the process of moving the assets and prototype site to the final host system.

    The error I am receiving is :

    "PHP Warning: file_get_contents(dev/install/php5-required.html) [function.file-get-contents]: failed to open stream: No such file or directory in F:\wwwroot\**********\******\sapphire\main.php on line 18"

    ... where the *'s are the domain name and the folder SS has been installed in.

    Previously on the older host, I did not encounter this issue, but I had already prepared beforehand and changed file and folder permissions via SSH to allow the web server to do its job. On the new host, I do not have SSH privileges, and in PHPMyAdmin, this error was also present on the admin screen :

    "Your PHP MySQL library version 3.23.49 differs from your MySQL server version 5.0.22. This may cause unpredictable behavior."

    Might there be another issue causing the first PHP Warning error, or is this problem caused by the lack of file permissions or perhaps the PHPMyAdmin error reported?

  • simon_w
    Avatar
    Forum Moderator
    471 Posts

    Re: PHP Error during installation on a new host Link to this post

    It sounds like either F:\wwwroot\**********\******\sapphire\dev\install\php5-required.html doesn't exist, or the web server process doesn't have access to it or its parent folder at all.

  • dbc
    Avatar
    Community Member
    7 Posts

    Re: PHP Error during installation on a new host Link to this post

    Checked it. The file does exist in the folder, so it sounds like the process may not have the proper access or permissions to make changes to files in the folder. I'd rather not change all permissions to 777 however - would changing the group and owner of the files and folders in question recursively solve the issue while leaving permissions as default?

    On another note, is the PHPMyAdmin error any cause for concern?

  • dbc
    Avatar
    Community Member
    7 Posts

    Re: PHP Error during installation on a new host Link to this post

    Well, I solved the first problem. Apparently my webhost had put me on a PHP 4.0 server instead of a 5.0 one initially, but that's been rectified. I can now access the installer page and input the database information. However, I'm getting this error while building the database schema:

    [Warning] fopen(F:\wwwroot\**********\*****/assets/error-404.html) [function.fopen]: failed to open stream: Permission denied
    POST /*****/install.php

    Line 84 in F:\wwwroot\**********\*****\sapphire\core\model\ErrorPage.php

    Aside from this, the installer throws up a warning that it can't tell if there's a URL rewriter installed on the server. My webhost is currently using IIS 6.

    Any idea what might have gone wrong during the install process?

    1943 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.