sudo apt install certbot python3-certbot-apacheĪnd generate the certificates, with the following command sudo certbot -apache -d So, install Certbot and the Apache plug-in. sudo ln -s /etc/apache2/sites-available/nf /etc/apache2/sites-enabled/nfĪpply changes by restarting Apache sudo systemctl restart apache2 Install the Let’s Encrypt certificatesĪs your site will be on the internet, you should enable HTTPS and for that, you have to generate and install the Let’s Encrypt certificates which we can do with the help of Certbot. Now enable the new Apache site and the Apache rewrite module. Replace the ServerName and ServerAdmin values with the appropriate values which are your domain and Admin email. Next, create a new VirtualHost to better manage the WordPress website sudo nano /etc/apache2/sites-available/nfĮrrorLog $/_access.log combined Sudo chown -R www-data:www-data /var/www/html/wordpress/ Sudo chmod 755 -R /var/www/html/wordpress/ When the download is finished, unzip it, move it to the Apache root directory, assign the appropriate permissions and make Apache the owner of the folder so that it will not have any problems running. This step will be done from the /tmp folder and using the wget command. The next step is to download the latest stable version of WordPress for Linux. With this, we have the system ready for WordPress. You can replace the username and password with any values you want. GRANT ALL PRIVILEGES on wordpress.* TO IDENTIFIED BY 'wordpress_pss123' To do this, enter the MariaDB shell sudo mysql -u root -pĪnd create the database with the name you want: CREATE DATABASE wordpress Īfter this, create a new user with permissions on the database. Now with MariaDB installed, the next step is to create a new database and MariaDB user dedicated to WordPress. php7.4 libapache2-mod-php7.4 php7.4-common php7.4-mbstring php7.4-xmlrpc php7.4-soap php7.4-gd php7.4-xml php7.4-intl php7.4-mysql php7.4-cli php7.4-ldap php7.4-zip php7.4-curl php7.4-zip php7.4-curlĪnd then complete the LAMP installation with MariaDB. To do so, first read our post about Apache and PHPĪlso, you will need these PHP modules for WordPress to work at least in a basic way. As WordPress is a web application created with PHP and requires a database manager like MariaDB, then we can use the LAMP stack for our purpose.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |