WordPress is a powerful, free and open-source, highly pluggable and customizable CMS that is being used by millions around the world to run blogs and fully functional websites.
It is easy to install and learn, especially for persons who do not have prior website design and development knowledge.
Step 1: Install Apache Web Server
To install apache server follow the instructions below
$ sudo apt-get install apache2 apache2-utils
Now we need to check whether it is installed or not
Go to the browser and type localhost if it is shown like this then no problem your apache is installed successfully
all set is ok.
It is easy to install and learn, especially for persons who do not have prior website design and development knowledge.
Step 1: Install Apache Web Server
To install apache server follow the instructions below
$ sudo apt-get install apache2 apache2-utils
Now we need to check whether it is installed or not
Go to the browser and type localhost if it is shown like this then no problem your apache is installed successfully
NOTE: The default Apache root directory is /var/www/html all your files are stored in the directory.
STEP 2: Install MYSQL Database Server:
Now we need to install the MYSQL Database Server by running this command
$ sudo apt-get install mysql-client mysql-server
During the package installation, you will be prompted to set the root user password for mysql .
To open the mysql ,type
$ mysql -u root -p in terminal
STEP 3 : Install PHP and Modules
we can install PHP by type the command in terminal
$ sudo apt-get install php7.0 php7.0-mysql libapache2-mod-php7.0 php7.0-cli php7.0-cgi php7.0-gd
OR
sudo systemctl restart apache2
for 19.0 and above
To check the PHP is installed properly , we need to create a info.php file inside /var/www/html. $ sudo vi /var/www/html/info.php
And paste the code below into the file, save it and exit.
<?php
phpinfo();
?>
Then open the browser and type localhost/info.php .If you find a screen like this then no problemall set is ok.
STEP 4: Install WordPress CMS;
Download the latest version of wordpress by typing the command below:
Then move the WordPress files from the extracted folder to the Apache default root directory, /var/www/html/:
Next, set the correct permissions on the website directory, that is give ownership of the WordPress files to the web server as follows:
STEP 5: Create WordPress Database
Type the command
$ mysql -u root -p
At the mysql shell, type the following commands, pressing Enter after each line of a mysql command. Remember to use your own, valid values for database_name, databaseuser, and also use a strong and secure password as databaseuser_password
Go the /var/www/html/ directory and rename existing wp-config-sample.php to wp-config.php
Open the file wp-config.php and change the dbname,dbuser,db_password,and etc
Note: Do not change all the things.
Afterwards restart the server by this command
Open your web browser, then enter your server address: http://server-address to get the welcome page and enter the asked detail.
Contents and Commands from tecmint.com
Now all set ok Please leave a comment if you have any doubts
Really very informative and creative. This sharing concept is a good way to enhance knowledge. I was searching for the best cms for seo on google search and found your blog. Keep sharing such great information.
ReplyDeleteThank you for your support
ReplyDelete