Page 1 of 2
Problems while moving blog to new server
Posted: Wed May 04, 2011 11:21 am
by SirSydom
Hi folks,
I migrated my blog from an old server to a new one (same domain). OS changed from ubuntu 08.04 LTS to 10.04 LTS, and so did the php/apache versions. The absolute path to the blog did also change.
I copied the complet file-structure to the new DocRoot (.htaccess included) by ftp, inserted new db-name and user in the config-file.
The DB was dumped and restored by phpmyadmin.
=> completely empty page
=> I turned php errors on, and found out, that s9y uses absolute paths. So I replaced the paths in my mysql-dump and imported again.
The php-error is gone now, and I have an empty page again..
No errors in apache error log.
The admin-Site is accessible and functional, but without any css.
I'm stuck here..
Any hints?
Re: Problems while moving blog to new server
Posted: Wed May 04, 2011 11:28 am
by Timbalu
SirSydom wrote:
=> I turned php errors on, and found out, that s9y uses absolute paths. So I replaced the paths in my mysql-dump and imported again.
Did you replace the neccessary parts in the XXX_config table too?
Did you check the htaccess?
Re: Problems while moving blog to new server
Posted: Wed May 04, 2011 12:11 pm
by SirSydom
I did a search-replace in the complete mysql-dump. That should do it, shouldn't it?
I had a quick look on the .htaccess, but maybe I oversaw something? I Didn't change it..
For what do I have to search?
Re: Problems while moving blog to new server
Posted: Wed May 04, 2011 1:11 pm
by Timbalu
inside htaccess
ErrorDocument 404 /path to/index.php
DirectoryIndex /path to/index.php
and
RewriteBase /path to/
It depends how you actually made the search-replace in the mysql-dump...
I would control the config table manually to be sure to have the right settings.
Re: Problems while moving blog to new server
Posted: Wed May 04, 2011 1:19 pm
by SirSydom
in the .htaccess, all paths are HTTP-Paths (in my case, /blog/).
This did not change in my setting, old and new installation are in <APACHE2VHOSTDOCROOT>/blog/.
I manually checked the config-table, and all settings are correct.
Re: Problems while moving blog to new server
Posted: Wed May 04, 2011 2:01 pm
by Timbalu
If this ist still a blank page, it usually means a fatal php eror.
You should also control your apache server settings. All modules installed as before? How about mod-rewrite?
Re: Problems while moving blog to new server
Posted: Wed May 04, 2011 3:09 pm
by garvinhicking
Hi!
Did you check the write permissions on the templates_c/ directory and all files within?
Is your PHP5 version similar? you might want to change your php.ini to enable error_reporting= E_ALL and maybe specify a error_log logfile directive.
Did you check the serendipity_plugins table for any "old" paths?
Regards,
Garvin
Re: Problems while moving blog to new server
Posted: Wed May 04, 2011 8:46 pm
by SirSydom
mod_rewrite: was disabled, is now enabled => No effect
write permissons: I chmoded already to 700 all the /blog directory (owner is www-data)
old php version: 5.2.4-2ubuntu5.14
new php version: 5.3.2-1ubuntu4.8
I checked the complete sql-dump for old paths and replaced where neccessary.
I will now try this php.ini thing.
Re: Problems while moving blog to new server
Posted: Wed May 04, 2011 9:02 pm
by SirSydom
I don't get that crap telling me anything.
by setting apache log level to debug and php to e_all i get now this in my vhosts error.log:
[Wed May 04 21:00:39 2011] [error] [client 2001:4dd0:fd71:0:e59b:a4d7:4350:8393] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/vhosts/dspies/user/DocRoot/blog/include/plugin_api.inc.php on line 560
[Wed May 04 21:00:39 2011] [error] [client 2001:4dd0:fd71:0:e59b:a4d7:4350:8393] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/vhosts/dspies/user/DocRoot/blog/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php on line 469
[Wed May 04 21:00:39 2011] [error] [client 2001:4dd0:fd71:0:e59b:a4d7:4350:8393] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/vhosts/dspies/user/DocRoot/blog/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php on line 494
[Wed May 04 21:00:39 2011] [error] [client 2001:4dd0:fd71:0:e59b:a4d7:4350:8393] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/vhosts/dspies/user/DocRoot/blog/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php on line 538
[Wed May 04 21:00:39 2011] [error] [client 2001:4dd0:fd71:0:e59b:a4d7:4350:8393] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/vhosts/dspies/user/DocRoot/blog/plugins/serendipity_event_spamblock/serendipity_event_spamblock.php on line 902
[Wed May 04 21:00:39 2011] [error] [client 2001:4dd0:fd71:0:e59b:a4d7:4350:8393] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/vhosts/dspies/user/DocRoot/blog/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php on line 400
[Wed May 04 21:00:39 2011] [error] [client 2001:4dd0:fd71:0:e59b:a4d7:4350:8393] PHP Deprecated: Assigning the return value of new by reference is deprecated in /var/vhosts/dspies/user/DocRoot/blog/plugins/serendipity_event_spartacus/serendipity_event_spartacus.php on line 444
Re: Problems while moving blog to new server
Posted: Thu May 05, 2011 8:14 am
by Timbalu
SirSydom wrote:write permissons: I chmoded already to 700 all the /blog directory (owner is www-data)
This is not enough for templates_c, serendipity_config_local.inc.php and other dirs like archives and plugins and templates, if using spartacus. You have to set all those files/dirs to at least "770", as Garvin said.
Did you generally upgrade to version 1.5.5, which is recommended?
These deprecated notices should be solved in newer versions, I think.
Re: Problems while moving blog to new server
Posted: Thu May 05, 2011 12:11 pm
by SirSydom
This is not enough for templates_c, serendipity_config_local.inc.php and other dirs like archives and plugins and templates, if using spartacus. You have to set all those files/dirs to at least "770", as Garvin said.
Really? Why do I have to allow access to group, not just for owner (which is my webserver-user)?
Who else is operating on the blog-files and dirs?
But I will try..
had no effect..
Re: Problems while moving blog to new server
Posted: Thu May 05, 2011 12:29 pm
by Timbalu
you may even need 775 or 777
http://www.s9y.org/36.html#A5
http://www.s9y.org/11.html#A15
maybe its your 5.3.2.x PHP version throwing these deprecated notices - just turn down the error_reporting when all happens to pass through.
Re: Problems while moving blog to new server
Posted: Thu May 05, 2011 12:40 pm
by Timbalu
having the serendipity dir set to 777 is ok for testing but not recommended to have in public!
If this does not change the blank page prob, you still must have a wrong path setting somewhere. And S9y is even working with latest php 5.3.6.
What about the serendipity_plugins table, as Garvin said?
Did you clean up the templates_c dir, containing old blog pages and paths?
Re: Problems while moving blog to new server
Posted: Thu May 05, 2011 12:47 pm
by Timbalu
Did you really check to have a Serendipity version > 1.5 - recommended 1.5.5 ???
These errors are PHP 5.3.0. related and you must upgrade to achieve a fixed version.
Re: Problems while moving blog to new server
Posted: Thu May 05, 2011 10:14 pm
by SirSydom
no, I don't.
1.4.1 it is. I did an update (on the old server). Worked like a charm.
After migrating everything, the blog now works but without any stylesheet.
errorlog says:
[Thu May 05 22:06:17 2011] [error] [client 79.254.77.148] PHP Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0, referer:
http://www.xxx.de/blog/
[Thu May 05 22:06:17 2011] [error] [client 79.254.77.148] PHP Fatal error: Unknown: Failed opening required 'redirect:/blog/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0, referer:
http://www.xxx.de/blog/