How to Install WordPress with LAMP on Ubuntu 16.04 - Hallo Dear, elisa-head.blogspot.com, This article that you read this time with the title How to Install WordPress with LAMP on Ubuntu 16.04, We have prepared this article well for you to read and retrieve the information in it. hopefully the contents of
this article ubuntu,
this article VPS, we write can be understood by you. Alright, happy reading.
Title : How to Install WordPress with LAMP on Ubuntu 16.04
link : How to Install WordPress with LAMP on Ubuntu 16.04
How to Install WordPress with LAMP on Ubuntu 16.04
[ad_1]
3 min read
Installing WordPress on Ubuntu 16.04 is not difficult. You need LAMP so that the WordPress installation on Ubuntu runs smoothly. Well, in this article we will discuss how to install WordPress on Ubuntu using LAMP.
Make sure you have installed LAMP first. If you don't have LAMP installed, you can follow the guide here. After LAMP is installed, you can now start following the WordPress install guide on Ubuntu using LAMP below.
How to install WordPress with LAMP on Ubuntu 16.04?
To be clearer, here is a discussion of the steps to install WordPress with LAMP on Ubuntu 16.04.
Step 1: Create a MySQL Database
MySQL functions to manage and store all WordPress data. You need to create a database in MySQL to run PHP, which uses SQL queries in PHP markup, as an instruction language for CRUD (Create - Create, Read - Read, Update - Update, and Delete - Delete) data from the MySQL database.
The following are the steps to create a MySQL database:
$ mysql -u root -p
You will be asked to enter the MySQL root account password.
The next step is creating a database name. You are free to create a database name as desired. Make sure the database name does not contain spaces and symbols. In this tutorial we created a database with names wpadmin
.
mysql> create database wpadmin;
Done! Now you have a MySQL database for WordPress that you will install.
Exit MySQL with the command:
mysql>exit;
Note
In MySQL always use the closing command with;
as a code closing command.
Step 2: Install PHP Extensions
The PHP extension is useful for supporting WordPress and some special plugins.
You can download and install some of the most popular PHP extensions to use with WordPress by typing the command:
$ sudo apt-get update
$ apt-get install php7.0 php7.0-mysql libapache2-mod-php7.0 php7.0-cli php7.0-cgi php7.0-gd mysql-server mysql-client zip -y
Note
Every WordPress plugin has its own requirements. Some may require additional PHP packages to be installed. Check your plugin documentation to find out the PHP requirements. If available, you can install it using the commandapt-get
like above.
Step 3: Download WordPress
After all server software has been configured, you can enter the directory /var/www/html
use the command:
$ cd /var/ww/html/
If you have entered the html directory, enter the command to download WordPress by typing this command:
$ wget http://wordpress.org/latest.zip
When the download is complete, extract the latest.zip file to create a WordPress directory structure using the command:
$ unzip latest.zip
After the extraction process is complete, you can enter the Apache file to edit the file 000-default.conf
:
$ nano /etc/apache2/sites-available/000-default.conf
Then it will be directed to the terminal file as shown below:
Delete everything in the file 000-default.conf
use the Ctrl + K command and replace it with the command below:
ServerName domainkamu.com
ServerAlias www.domainkamu.com
ServerAdmin root@localhost
DocumentRoot /var/www/html/wordpress
AllowOverride All
Require all granted
ErrorLog $APACHE_LOG_DIR/error.log
CustomLog $APACHE_LOG_DIR/access.log combined
Copy the command above and paste it in the file 000-default.conf
. Replace the writing in red with the domain name that you have or use the server IP.
Note
In pasting text in the Ubuntu Terminal, you cannot use commandsCtrl + V
. But use the right click command.
After that, save changes with the command Ctrl + X
and options will appear as shown below:
Click Y to save the script changes in the 000-default.conf file that you made earlier.
After that, the command will appear as shown below. Just click ENTER and don't change the name of the file that you created earlier. Don't change the name of an existing file.
Restart Apache to apply changes using the command below
$ service apache2 restart && service mysql restart
After the restart process is complete, access the domain or IP that you have entered on the file 000-default.conf
. You will be directed to the WordPress settings view as below.
Step 4: Installing and Setting WordPress
After the display appears as above, just click the Let’s go!
After filling out the form correctly, click the submit button. You will be directed to a page like in the picture like this.
Copy all the text in the column above then open Terminal using this command.
$ nano /var/www/html/wordpress/wp-config.php
Place the text that you copied here with the command right click> Paste (don't use CTRL + V).
Return to the browser window and click the Run the Installation button. After the installation process is complete, you will be asked to enter your WordPress account details such as site name, username, password and email. Create complicated passwords to improve the security of your WordPress.
After all the website data is filled in correctly, click Install WordPress. Next, you will be directed to the WordPress login page. You can log in to the WordPress dashboard using the username and password that you created earlier.
What are the Advantages of Running WordPress on VPS?
Running WordPres using VPS Ubuntu 16.04 has many advantages over using shared hosting. Here are some of the advantages:
- Have full access because we as full admin as owner (root).
- You are given the freedom to install and uninstall software.
- Stable server.
- Having a dedicated IP.
- Access sufficient server resources.
- You are free to choose the panel that suits your needs and skills.
- Web service monitoring from VPS providers.
Conclusion
Thus the article about how to install WordPress with LAMP on Ubuntu 16.04. If this is your first time using WordPress, explore the interface a little to get acquainted with your new CMS.
If you still have questions, feel free to leave a comment below. Subscribe to Niagahoster Blog to get information related to our online business, digital marketing and technology.
[ad_2]
Thus the article How to Install WordPress with LAMP on Ubuntu 16.04
You are now reading the article How to Install WordPress with LAMP on Ubuntu 16.04 with the link address https://elisa-head.blogspot.com/2019/10/how-to-install-wordpress-with-lamp-on_8.html