How to Create a WordPress Website on a Linux PC

WordPress is considered the best platform for creating websites , sales pages, and blogs. This platform is gaining more users every day, so in this tutorial, we’ll teach you how to create your website with Linux.

Index( )

  1. What steps should I take before installing WordPress?
  2. What are the requirements for installing WordPress?
    1. Through the browser
    2. From the control panel
  3. What is the procedure to create a WordPress website with a Linux PC?
  4. What configuration is recommended for creating websites in WordPress?

What steps should I take before installing WordPress?

The requirements and prerequisites you must follow to install WordPress are as follows:

  1. Register the domain: You must decide what name your domain will use and what extension. You can register your domain with companies like OVH, Plusdominios, and others.
  2. Register hosting: After you have your WordPress domain, you need a hosting service—a folder hosted on a server that allows your website to be always available. After purchasing a hosting service, you’ll receive information including login details for your hosting control panel, email servers, FTP settings, and your server’s DNS.
  3. Setting up your domain for WordPress: DNS redirects you to the folder hosted on the server where your website is located.
  4. FTP access, file manager:FTP access is achieved through the control panel, which can be cPanel or Plesk. There, you’ll see the ‘File Manager’ button, where you can connect to the folders you want to manage, upload, move, and delete files.

What are the requirements for installing WordPress?

The requirements you need to install WordPress and what you should keep in mind when choosing your hosting provider are:

  • PHP7
  • MYSQL 5.6 or higher
  • Mod_rewrite
  • SSL Certificate
  • Let’s Encrypt

Then you must go to the official WordPress page and download the software that we will install on the server, once the file is downloaded in . zip format, extract the content and upload it to the public folder of your server, this public folder can be found as ”public_html’,’http_docs’,’httpdocs’,’www_public’

Through the browser

To install WordPress through your browser, you must have created a database with a user, assigned permissions, and the WordPress files in the public folder of your server.

Now try typing your domain into your browser. A screen should appear with the WordPress logo and some boxes to fill in the database information. If it doesn’t take you to the home screen, it could be that the DNS hasn’t propagated. What you should do is type: ‘http://mydomain.com/wp-admin/install.php’.

Then on the installation screen you will see the following:

  • Database name
  • Database username.
  • Database password
  • Database Host, the location of the database, which by default is ‘localhost’
  • Prefix for tables, this option should be left with the prefix wp_

After adding this data, a connection should be established between your WordPress and the database . If you have any problems, check that you entered all the data correctly.

Complete the installation by clicking ‘Submit’ and now fill in the basic site information such as the title , user, enter an email address to receive notifications about your site, and decide if you want your site to be indexed in search engines. It’s recommended to activate this option when your website is already well-defined and you have content.

From the control panel

To install WordPress from your dashboard, follow these steps:

  1. Log in to your domain’s control panel, then go to the ‘Applications and Services’ section and select ‘Web Applications’
  2. Click on the ‘Install web application’ option
  3. Several options will appearin the panel. You must look for the one that says ‘WordPress’ and click on ‘Install’.
  4. The system will check that you meet all the WordPress requirements to be able to install it on your hosting or server. If you are missing something, the wizard will notify you and you will have to resolve the problem so you can continue with the installation.
  5. Then you must accept the terms of service to continue with the installation.
  6. You must complete some fieldssuch as: create an access button to the application in your control panel, destination directory, database server, database name, password, define the administrator, enter the title of your website, after completing this data click on ‘Install’
  7. Once the installation is complete, we will be able to view and access our website from the control panel.

What is the procedure to create a WordPress website with a Linux PC?

To create a WordPress website with Linux, you must install Nginx, update Ubuntu, and follow these steps:

1 Open the terminal and type ‘sudo apt-get upgrade -y’ 

2 Install Nginx on Ubuntu

3 Type ‘sudo apt-get install nginx -y’

4 Install MariaDB, it is a system that manages databases

5 Run the command ‘sudo apt-get install mariadb-server -y’

6 Then ‘mysql_secure_installation’

7 When prompted, enter a password

8 A database will be created

9 Install PHP you will do this with the commands

‘sudo apt-get install php-fpm php-curl php-mysql php-gd php-mbstring php-xml php-xmlrpc -‘

‘sudo nano /etc/php/7.2/fpm/php.ini’

10 You need to search for this command line ‘;cgi.fix_pathinfo=1’ to change the value “1” to the value ‘0’

11 It is also necessary to change other values, they should be as follows:

‘upload_max_filesize = 100M’

‘post_max_size = 1000M’

‘memory_limit = 1000M’

‘max_execution_time = 120’

12 Download WordPress using a few command lines

13 It should look like this:

‘cd /var/www/html’

‘wget https://wordpress.org/latest.tar.gz’

‘tar -zxvf latest.tar.gz –strip-components=1′

14 You must enter credentials to edit the WordPress configuration file

mv /var/www/html/wp-config-sample.php /var/www/html/wp-config.php’

‘sudo nano /var/www/html/wp-config.php’

15 You must change important information:

‘define(‘DB_NAME’, ‘wordpress’);’

‘define(‘DB_USER’, ‘database-user’);’

‘define(‘DB_PASSWORD’, ‘database-password’);’

What configuration is recommended for creating websites in WordPress?

There are different ways to configure your WordPress website. You can do it manually in cPanel or through your browser. Either option will help you achieve your goal of successfully creating your own website.

 

Leave a Comment

Scroll to Top