5-Minute WordPress Installation On Linux CentOS via Windows 10


student-849824_640.jpg

Step 1: Download WordPress

Download

Make sure you download .zip file (not .tar since you are using Windows 10).

Unzip the downloaded .ZIP file on your local Windows 10 folder.

Step 2: Hosting Control Panel

Get your FTP username and password alongwith hosting control panel username/password as well from your website hosting provider.

It will look like this;

FTP server: website.com
FTP username: username
FTP password: password

Step 3: Create Database

Create MySQL database, username and password using your website hosting control panel.

Step 4: Upload WordPress Via FTP

Download FTP client i.e. Core FTP LE from;

http://www.coreftp.com/download.html

Make sure it is 32bit or 64 bit according to your Windows 10 configuration;

32-bit link;

http://www.coreftp.com/download/setup.msi

64-bit link;

http://www.coreftp.com/download/setup64.msi

Upload WordPress folder from your local computer to remote server’s website folder (usualy under public_html)

Step 5: Configure WordPress

Simply open your website or link of the folder where you have uploaded WordPress;

https://website.com/wordpress


Install WordPress Via Vesta And SSH Shell Using Putty (Linux CentOS 6 x86_64)

Using Vesta Control Panel, make sure you have the following information ready;

FTP Server Name: ftp.website.com
FTP Username: username
FTP Password: password

MySQL (or MariaDB) Database Name: database
Database User: username
Database Password: password

SSH Access To Server Information:

IP Address: 123.456.78.9
Root username: rootuser
Root password: password

Using Putty (https://www.putty.org), login via SSH to your server as root and enter these commands in the command prompt window:

pwd (present working directory)

dir (content of the directory i.e. files)

cd /home/admin/web (change to the path where websites exist)

cd (will take you direct to /root)

tip: rm -rf foldername (to remove folder and subfolders)

dir (to see the content of the directory)

install this only once, not for each subsequent wordpress install
sudo yum install php-gd

sudo yum install php-xml

sudo service httpd restart

sudo yum install wget

wget http://wordpress.org/latest.tar.gz

sudo tar -xvf latest.tar.gz

mv wordpress/* ./

rmdir ./wordpress/

rm -f latest.tar.gz

sudo mkdir wp-content/uploads

sudo cp wp-config-sample.php wp-config.php

Preferably Use GUI-based Database Creator Via Vesta
mysql -u root -p

CREATE DATABASE my_database;

grant all privileges on databasename.* to username@localhost identified by ‘pass’;

show DATABASES;

SELECT User, Host FROM mysql.user;

Preferably Use GUI-based FTP Software i.e. Core FTP Lite

sudo vi wp-config.php

(modify db_name, db_user, and db_password)

(when done making changes, press Esc key and 😡 to quit saving changes.)

To assign proper username to files, directories and sub-directories of the WordPress installation, use this command;

sudo chown -R admin:admin /home/admin/web/website.com

To increase file size limit when importing XML file in WordPress importer;
place this piece of code in your theme’s functions.php file

@ini_set( ‘upload_max_size’ , ’50M’ );
@ini_set( ‘post_max_size’, ’50M’);

To avoid 504 Gateway Timeout issue, add the following to wp-config.php:
set_time_limit(300);

Method 1: Edit file wp-config.php:

Add the following to wp-config.php:

set_time_limit(300);

Method 2: Edit file .htaccess:

Make sure you back up .htaccess before you edit it.

Add the following to .htaccess:

php_value max_execution_time 300

Method 3: Editing php.ini

Add the following to php.ini:

max_execution_time = 300

if you have access to the .htaccess file in your www folder. Just include the following 2 lines in .htaccess:

php_value upload_max_filesize 50M
php_value post_max_size 50M

Other way .. you can place this piece of code in your theme’s functions.php file

@ini_set( ‘upload_max_size’ , ’50M’ );
@ini_set( ‘post_max_size’, ’50M’);

sudo vi .htaccess

copy/paste this in the .htaccess

BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

END WordPress
php_value upload_max_filesize 50M
php_value post_max_size 50M

open the website URL in browser to start installation online;

https://website.com

Make a note of the WordPress username and password to customize and manage website;

https://website.com/wp-admin


New Amazon AWS Lightsail WordPress Installation On Linux

Login to your Amazon AWS Lightsail account via this link;

https://lightsail.aws.amazon.com/ls/webapp/home/instances

Create a new instance and select WordPress/Linux combo.

were

Soon after the instance is created, click the “Connect using SSH” option and run this command;

cat bitnami_application_password

You will see the username and password to access your WordPress installation’s Administrator menu. Note it down and use this link to login to your wordpress;

https://website.com/wp-admin

After configuring your bitnami wordpress installation, remove the bitnami page by logging in via SSH;

sudo /opt/bitnami/apps/wordpress/bnconfig –disable_banner 1

Restart Apache web server to make the changes effective;

sudo /opt/bitnami/ctlscript.sh restart apache

Now you can reload your website in the browser to see if the bitnami page is gone.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s