4945 Posts in 17751 Topics by 1494 members
|Go to End|
6 April 2011 at 2:08pm
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?
6 April 2011 at 7:12pm
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.
7 April 2011 at 1:21pm
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?
11 April 2011 at 4:08am
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
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?
|Go to Top|