![]() Location ~* \.DebianOn is an effort to document how to install, configure and use Debian on some specific hardware. Ssl_certificate /etc/letsencrypt/live//fullchain.pem Īccess_log /var/log/nginx/ Įrror_log /var/log/nginx/ įastcgi_pass unix:/run/php/ Ssl_trusted_certificate /etc/letsencrypt/live//chain.pem Ssl_certificate_key /etc/letsencrypt/live//privkey.pem Server_name ssl_certificate /etc/letsencrypt/live//fullchain.pem Open your text editor and create the following file: # Redirect HTTP -> HTTPS We will follow the Nginx recipe from the official Nginx site to create a new server block for our WordPress instance. You should have installed Nginx with SSL certificate installed on your Debian machine. To change the ownership of directory use following chown command: sudo chown -R www-data:www-data /var/www/ Configure Nginx # You need to set the correct permissions so web server can the site’s files and directories. Then copy all the files to directory using below command: sudo cp -a /tmp/wordpress/. Once the download is completed, extract the downloaded files using below command: tar xzvf Īfter that, create the configuration file for WordPress using below command: cp /tmp/wordpress/wp-config-sample.php /tmp/wordpress/wp-config.php ![]() ![]() Now download the latest WordPress setup from the WordPress download page using using below wget command: wget You should restart the PHP-FPM process and Nginx service to take effect by issuing below command: sudo systemctl restart sudo systemctl restart nginx Downloading and Setup WordPress #įirst, navigate to /tmp directory using below command: cd /tmp You can verify the installation by typing below command: php -v ![]() Check your plugin documentation to discover its PHP requirements. Some may require additional PHP packages to be installed. Note: PHP packages set requirements depends on WordPress plugin. ![]() Next, to install PHP and all the required modules run below command in the terminal: sudo apt install php-curl php-gd php-intl php-mbstring php-soap php-xml php-xmlrpc php-zip You can also check the latest version for installation on PHP official website.įirst of all you need to update the apt package manager index and upgrade the packages: sudo apt update & sudo apt upgrade PHP 8.2 is the latest and default PHP version in Debian 11 system. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |