Problems while moving blog to new server

Having trouble installing serendipity?
SirSydom
Regular
Posts: 12
Joined: Thu Nov 23, 2006 12:32 pm

Problems while moving blog to new server

Post 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?
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Problems while moving blog to new server

Post 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?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
SirSydom
Regular
Posts: 12
Joined: Thu Nov 23, 2006 12:32 pm

Re: Problems while moving blog to new server

Post 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?
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Problems while moving blog to new server

Post 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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
SirSydom
Regular
Posts: 12
Joined: Thu Nov 23, 2006 12:32 pm

Re: Problems while moving blog to new server

Post 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.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Problems while moving blog to new server

Post 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?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problems while moving blog to new server

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
SirSydom
Regular
Posts: 12
Joined: Thu Nov 23, 2006 12:32 pm

Re: Problems while moving blog to new server

Post 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.
SirSydom
Regular
Posts: 12
Joined: Thu Nov 23, 2006 12:32 pm

Re: Problems while moving blog to new server

Post 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
Last edited by SirSydom on Thu May 05, 2011 10:15 pm, edited 1 time in total.
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Problems while moving blog to new server

Post 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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
SirSydom
Regular
Posts: 12
Joined: Thu Nov 23, 2006 12:32 pm

Re: Problems while moving blog to new server

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

Code: Select all

chmod -R 777 blog
had no effect..
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Problems while moving blog to new server

Post 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.
Last edited by Timbalu on Thu May 05, 2011 12:41 pm, edited 1 time in total.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Problems while moving blog to new server

Post 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?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

Re: Problems while moving blog to new server

Post 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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian
SirSydom
Regular
Posts: 12
Joined: Thu Nov 23, 2006 12:32 pm

Re: Problems while moving blog to new server

Post 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/
Post Reply