Create Your First WordPress Install
This section assume that you already familiar with Installing WordPress Manually (Without using one click install such as Fantastico Deluxe)
First, you need to check that your domain already connected to your server by visiting your site, you’ll see a simple html page with content like this:
This is the default web page for this server.
The web server software is running but no content has been added, yet.
When you browse using FileZilla, to “/var/www” folder, you should see this file and one extra file “info.php”. This is the folder where we will install WordPress.
Create MySQL database using phpMyAdmin
If you already following the guide from the link about phpMyAdmin from previous section, creating database is simple. Just create a blank database/import your database if your site is already have content from previous hosting.
Prepare and upload your WordPress files
Prepare your WordPress file with all configured, wp-config.php need to use your new database name and user, etc, and delete all files in “/var/www” and upload your WordPress files.
Set the owner of directory and files
Because we upload and create files in “var/www” directory as root user, the folders and files are “owned” by “root”. You can see this from FileZilla file browser in “Owner/Group” column. We need to change the owner to this files to “www-data” to make sure WordPress have the permission to modify the files, such as uploading files, updating theme and plugins, and core update.
The “www-data” user is the server, so the App/Server (in this case WordPress) own it.
We need to use PuTTY to do this, open PuTTY and type this command:
- chown –R www–data:www–data /var/www
After that, refresh the FileZilla file browser to check the changes.
You should be familiar with this process, visit your site and install