Page 1 of 1

Page error when moving to new webhotel

Posted: Fri Apr 20, 2007 9:57 pm
by kimb
Hi.

After moving my site to a new webhotel, I get an error on top of the page

Warning: fopen(/usr/home/web/web90452/tmp/cache/contentcache.php): failed to open stream: Permission denied in /usr/home/web/web90452/lib/classes/class.contentoperations.inc.php on line 557

Warning: fwrite(): supplied argument is not a valid stream resource in /usr/home/web/web90452/lib/classes/class.contentoperations.inc.php on line 558

Warning: fclose(): supplied argument is not a valid stream resource in /usr/home/web/web90452/lib/classes/class.contentoperations.inc.php on line 559

How can I fix this?

I´m using the following versions:

Apache1.3.36
MySQL 5.0.21
PHP 4.4.2
CMSMS 1.0.5

Installation specs on new server can be found here http://web20.talkactive.net/phpinfo.php.

The site is here www.helsingorpigegarde.dk

The original site canbe found here www.kbfoto.dk

Installation specs on old webhotel can be found here http://www.kbfoto.dk/test.php.

WHen moving the site I first exported and then imported the database to the new site. After that i copied the files from the old site to the new one. I then changed the proper values in config.php. The file attributes in /tmp/cache and /tmp/templates_c was changed to 777.

What to do?

Re: Page error when moving to new webhotel

Posted: Fri Apr 20, 2007 11:09 pm
by calguy1000
delete your tmp/cache and tmp/templates_c directories and all their contents.  Then re-create these directories and set their permissions to 777.  You probably copied the tmp directories when you did the install... this directory should be skipped when transferring from one site to another (or the cache cleared before moving).

Safe mode is also enabled on your current servers, so that my cause problems.

Re: Page error when moving to new webhotel

Posted: Sat Apr 21, 2007 3:06 pm
by kimb
It worked like a charm.

Thanks a lot.