Install wordpress debian vps


















But one downside it can cause over time is if you still have this scenario in production, it can become rather difficult to maintain the server when upgrades are needed to be applied since it can cause downtimes. The setup process for this kind of environment, you can check out on this post. Tags: Debian nginx wordpress. Your email address will not be published. Deploy WordPress on Docker using Ansible.

Deploy Nextcloud on Docker using Ansible. Deploy Docker container using Ansible. How to install RetroPie on Ubuntu How to dual boot Windows 10 and Debian How to dual boot Windows 10 and MX Linux. Create Windows 10 bootable usb in Ubuntu. Install necessary libraries and packages sudo apt install nginx php-cli php-fpm php-mysql php-json php-opcache php-mbstring php-xml php-gd php-curl mariadb-server Once the installation is complete, start Nginx and MariaDB if are not running and enable them to auto-start on boot.

Refer to the sample picture bellow: Save and exit. In end, it should look something like this: The default configuration still remains in the Nginx and is active. You now have a WordPress website up and running.

Few suggestions and security tips Here I would like to point out few suggestions for safer and more secure WordPress installation and how to maintain it. First suggestion is to delete — xmlrpc. WordPress requires a web server on which it will serve its content. Next, we will need to create a database and user for WordPress. WordPress will use this database to store its information, and the user to have access to the database.

Provide your root password when prompt then create a database and user with the following command:. Now, you have a valid database and user for WordPress. Next, grant all the privileges to the WordPress database:. First, we will need to download the latest version of the WordPress source form its official website.

Run the following command to download the latest release of WordPress:. Next, we will need to create a Virtual Host configuration file for WordPress.

You can create a new Virtual Host configuration file with the following command:. Make sure to replace example. Save and close the file. You will be redirected to the WordPress installation page:. Once the installation has been finished successfully, you should see the following page:.

Provide your admin username or email and password, and click on the Log In button. You should see the WordPress default dashboard in the following screen:. So no need to set a root password on MariaDB, just run mariadb as root. I also use Make sure to set bind-address to This is my nginx config for site1. You need one for site2 as well. Https is not yet enabled, certbot takes care of that later.

For now, I set website file and directory ownership to www-data, basically the default security model where both nginx and php-fpm run as user www-data.

Next step is getting a free Letsencrypt certificate and setup https with Certbot as snap. I decided to use the snap version of certbot instead of the certbot package from debian.



0コメント

  • 1000 / 1000