Just moved a site to a new server, changed header.inc.php
cleared cache apart from htacess but then get a string of error messages such as below
Warning: fopen(/home//public_html/cache/sys_options_909605b06f8e1986e07aa21fe9d03c73.php)
[function.fopen]: failed to open stream: Permission denied in/home/public_html/inc/classes/BxDolCacheFile.php on line 66
a long list all similar to this one...
Any ideas?
|
When moving to a new server the files in cache, cache_public and the tmp folders should not to be moved with the rest of the site.
So check the permissions on those 3 folders which must be writable and empty the contents except for the .htaccess files in them.
And you will have to clear the cache folders manually. With incorrect permissions on the files, clearing from admin will not work.
https://www.deanbassett.com |
You will also most likely have further problems with permissions on the rest of the site. Such as when a member tries to remove a photo. The photo will have the wrong permissions because when the photo was uploaded it is owned by apache. When you move a site, all sites files have the ownership of the account that uploaded them. Thus because the ownership is wrong, the webserver will no longer be able to delete it.
Problems such as this can be avoided if your host is running suphp. Apparently your new host is not, so you will see further permission issues on all files that are normally created by php. https://www.deanbassett.com |
You might be right...
changed permissions on those folder to 777 and the errors gone.
But, not able to make changes, add photos etc... without further issues.
|
Go into admin->tools-Host tools.
Look under the permissions tab.
https://www.deanbassett.com |
I hope the site wasn't moved over and unziped as root user.... https://dolphin-techs.com - Skype: Dolphin Techs |
Why?
I hope the site wasn't moved over and unziped as root user....
|
All fixed :-)
at first couldnt get into administration as the errors were showing there also.
Managed to clear some then got to admin which allowed me to see the rest.
All down to file permissions...!
Go into admin->tools-Host tools.
Look under the permissions tab.
|
had to change a few more permissions, module permissions that are listed on the bottom of the install guide for dolphin. These dont show in tools-host-permissions in administration!
|