Wordpress deployment on nginx
Creating the virtual machine
Create a virtual machine
Select Web Server Type
nginx
Select programming language
PHP
Select Database
MySQL
Select Location - the one closest to your users
Frankfurt
Select the operating system
Ubuntu
Select Plan
1 cpu / 1gb
Creating 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 Migration
On 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.ini
Search 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 -1
Increase the nginix client_max_body_size
Open the file
sudo nano /etc/nginx/nginx.conf
Search for client_max_body_size
property and update it to 2048m
Restart nginix
sudo systemctl restart nginx
Restart php-fpm/php
sudo service php7.4-fpm restart
Upload the wordpress archive
Last updated
Was this helpful?