Correct path usage when moving to a new server

Having trouble installing serendipity?
quad3d@work
Posts: 1
Joined: Wed Apr 09, 2008 10:34 pm
Location: Austin, TX
Contact:

Post by quad3d@work »

I had to move between servers today and figured out on my own prior to reading FAQ and look up on this forum.... should've RTFM prior to save me some slight headaches. :)

My old install path

Code: Select all

/home/httpd/html/blog/
New install path

Code: Select all

/home/terii/www-vhosts/domain2.net/blog
I used MySQL administrator for DB dump and used perl to replace all instances.

Code: Select all

perl -pi -e 's/\/home\/httpd\/html\/blog\//\/home\/terii\/www-vhosts\/domain2.net\/blog\//g' mysql_dump_blog.sql
Had to do same for static image linking too since URL changed as well.
terii
Post Reply