Posts tagged apache
To get apache2 working with php7 (or even lower perhaps?) on Linux you might need to download also the mod for php7
sudo apt-get install libapache2-mod-php7.0
As you might have noticed, there is a new domain name for this blog. Now the domain is http://redoem.com It is easier to remember and shorter than the previous one (http://blog.zasekoj.com).
The whole process took approximately 45 minutes, but yours could vary depending on the amount of posts, comments, images etc that you have.
NOTE: this is not for blogs hosted on wordpress.com. For them many of the steps will be different, but you can try and adapt the following.
OK, enough chit-chat, let’s get to work. First of all, of course, you need to buy a new domain name (I am using DreamHost – you can register as well for hosting and use coupon REDOEM30 to get 1 extra FREE lifetime domain registration and $30 off your total amount!).
- Create a new user in your panel (if the hosting does not do it automatically) which will have FTP access to your domain name.
- Remove all the junk that you do not need like spam comments pending, drafts you are not planning to use, themes that you don’t need etc. This takes additional space and there is no need to transfer it across different databases.
- Disable all the WordPress plugins and empty cache if you are using caching plugin
- Export your database
- Login to your MySQL server (phpMyAdmin) and click on the Export tab
- Select your database on the left of the screen (do not select the Information_Scheme database)
- All of the settings by default should be OK, unless you are advanced user and you know what you are doing and what else you might need
- Go to the bottom of the page and click the check box that says Save as file
- Enter a template for your filename (the default is OK)
- Leave the Compression set to None. It will cut few steps later
- Click the Go button on the bottom-right and save the file to your disk
- define(‘DB_NAME’, ‘newdatabase’); — this is the name from step 7
- define(‘DB_USER’, ‘newdatabaseuser’); — this is the user that you use to connect to the database/phpMyAdmin
- define(‘DB_PASSWORD’, ‘newdbpass’); — this is the password that you use to connect to the database/phpMyAdmin
- define(‘DB_HOST’, ‘db.newdomain.com’); — this is the hostname for the new database
Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://newdomain.com/$1 [R=301,L]
Well, that was it. After all of these steps your WordPress installation should be moved to the new domain name and everything should stay the same. The redirect is very important (step 19) so make sure you keep your old domain for at least several more months after the move so that all the old traffic is redirected successfully. You can omit this step if you have a new site with very few visits, but then again I guess you can just create a new WordPress installation and do not perform the above steps 🙂
Enjoy and let me know in the comments if you have any problems.