[Cloudmatika] How to Migrate WordPress to Plesk

If you have a website on your hosting list or in localhost and you want to be moved, here are the steps you need to take.



WordPress website backup in Hosting

Login to the cable hosting, then log into the WordPress directory.

file manager cpanel


For example we're in a public_html/wp directory, your WordPress could be different so it could be adjusted.


public_html file manager


2. Compress WordPress file, then download it to PC.







select all compresss


Download files to PC


3. Backup database, logged into the ▪Home menu > ▪Backup > click database name

download wordpress database


Until this step, we've got WordPress backup files and databases.


Upload WordPress to Plesk 12.5

Login to Plesk 12.5 [e.g.: <ip public VPS>>:8443]


1. Add domain to Plesk 12.5 >> Add domain in Plesk

2. Create database, *remember/not the username and password. For database connections >> Add database in Plesk

3. Upload the WordPress file, then extract.






Upload wordpress to Plesk 12.5


Upload the wordpress file to Plesk 12.5


extract wordpress file


Four imports of the previously downloaded database, *import in .sql format so if it is still .zip. Extract first!




import dump mysql in plesk 12.5


select database for import dump mysql


Last step is setting database connection

How to Make Database Connection

MySQL Database connection from PHP :

mysql_connect ("namahost","mysql_username_yang_digunakan","password_dari_username");
HTML

If MySQL is on a local server, (in other words, is on your own website), then the localhost name used is localhost. means the syntax you can use:


mysql_connect("localhost","mysql_username_yang_digunakan","password_dari_username");


HTML

If you create a website on a local computer, it could be a username and MySQL password used differently than the username and MySQL password used on the website.


For that, please check the usernames and passwords on the website.


Log in to your cpanel, ( http://domainanda/cpanel or http://cpanel.domainanda

Select MySQL Databases Menu


MySQL cPanel Database Connection

If you don't already have MySQL password and username on the website, then you can make it first.

Table user database

Fill in the username and passwords you're about to create. We suggest that you do password logging and usernames, in order that later for file adjustments will be easier.


Create database name

databases menu in cpanel

The database name is created exactly as the database name you have created on the local computer, so that there is no need to bother editing configurations on syntax mysql_select_db


The next step is to add the user to the database. You can select the previously created Database and user names and click the Add button. Do not forget to give the user the prime to do changes in the database like the following images:


add a user database cpanel

grants access to user databases in the cpanel

After everything is done, you just change the configuration to do the MySQL connection of the PHP. Use the username and password that you just created.



After everything is done, you just have to upload the database. If you don't understand how, please read the article on how to upload mySQL database


I'm sorry.


WordPress Database Connection

Due to the numerous questions about the database connection to the CMS WordPress, we will update the follow-up configuration of the WordPres database connection.


For database connection to CMS WordPress laid on a file named wp-config.php. For its configuration, you can click right on the wp-config.php file and click on the Edit menu.


Here's the script you should adjust, to connect the database with the WordPress file:


// ** MySQL settings - You can get this info from your web host ** //

/** The name of the database for WordPress */

define('DB_NAME', 'database');



/** MySQL database username */

define('DB_USER', 'username');



/** MySQL database password */

define('DB_PASSWORD', 'password');



/** MySQL hostname */

define('DB_HOST', 'localhost');

HTML

3. Don't forget, you have to search the line prefix. Line prefix must be adjusted to the prefix database you created earlier.

Prefix WordPress

So help set database connections on websites and CMS WordPress, hopefully useful."


[Cloudmatika] How to Find a Spammer's IP Address and Hostname Using MailBuster
VPN Peer Configuration on MikroTik