Page 1 of 1

migrating WordPress site to Sonic

Posted: Fri May 10, 2013 2:13 pm
by solarcft
I'm migrating a WordPress site to the Sonic server, using a script (Backup Buddy) that decompresses the WordPress files, installs WordPress, and associates the files to the database.

Both WordPress and the script require PHP 5.3, but Sonic only offers the highest PHP version by changing the .htaccess file. Problem is...the script has its own (temporary) .htaccess file that overwrites the "Sonic" file, and WordPress has its own dynamically generated .htaccess file.

Is there another way to use PHP 5 on Sonic quickly and easily without using an .htaccess file?

Thanks!

Re: migrating WordPress site to Sonic

Posted: Fri May 10, 2013 3:59 pm
by joemuller
Yes indeed! What you can do is put your WordPress site at least one level deeper in your web directory, (many people use 'blog') then make a simple .htaccess file one level above with just the PHP 5.3 magic. Aside from that, it should just be a matter of doing a bit of RewriteBase/Redirect-fu to point browsers to the right place.

Re: migrating WordPress site to Sonic

Posted: Fri May 10, 2013 5:09 pm
by solarcft
Hi Joe,

Thanks for the quick response. I gave it a go, but even being a directory above it's still not working. The files extract, but still no database connection or WordPress installation.

Here's the error message in case that helps:
Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in /nfs/www/WWW_pages/solarcft/solarcraft.com/beta/importbuddy/controllers/pages/5.php on line 95

Warning: mysql_free_result() expects parameter 1 to be resource, boolean given in /nfs/www/WWW_pages/solarcft/solarcraft.com/beta/importbuddy/controllers/pages/5.php on line 107

Re: migrating WordPress site to Sonic

Posted: Fri May 10, 2013 5:56 pm
by joemuller
I gave it a look-over, and the only thing i can think of is that the mysql_free_result() call is operating on an empty variable - meaning something isn't set up properly to connect to the database. You might need to drop the appropriate values into importbuddy/init.php - at least I think that's where they go. It does look like the PHP 5.3 preference is working though.