Wordpress deployment on nginx
Creating the virtual machine
Create a virtual machine
Select Web Server Type
nginxSelect programming language
PHPSelect Database
MySQLSelect Location - the one closest to your users
FrankfurtSelect the operating system
UbuntuSelect Plan
1 cpu / 1gbCreating the application
Create application and choose the virtual machine you have previously created
Choose the Wordpress application from the list
Deploy
Login into the wordpress admin
Install All-in-One WP Migration
Plugins > Add New > Search: All-in-One WP MigrationOn the origin website go to Export and download the archive
On the bunnyshell wordpress instance go to Import
We need to change the max upload size
SSH into the machine
Locate the php.ini file
find /etc/ -type f -name php.ini/etc/php/7.4/fpm/php.ini
Edit the php settings
sudo nano /etc/php/7.4/fpm/php.iniSearch for the following properties and update them
php_value upload_max_filesize 2048M
php_value post_max_size 2048M
php_value memory_limit 256M
php_value max_execution_time 6000
php_value max_input_time -1Increase the nginix client_max_body_size
Open the file
sudo nano /etc/nginx/nginx.confSearch for client_max_body_size property and update it to 2048m
Restart nginix
sudo systemctl restart nginxRestart php-fpm/php
sudo service php7.4-fpm restartUpload the wordpress archive
Last updated
Was this helpful?