Prerequisite Installing WordPress 5.9 Nginx – Mariadb – Php-7.4 w/ PHP 7.4 FPM Standalone Server without any control panel

I am sharing how do I normally install the required software to run WordPress using Woocommerce on a standalone server without using any bloated control panel including the all time JUNK CPANEL and all the others.

I am assuming you are running Ubuntu 20.x x64


sudo timedatectl set-timezone America/New_York
sudo timedatectl set-ntp on
apt-get update && apt-get upgrade -y
apt install php-fpm php-common php-mbstring php-xmlrpc php-soap php-gd php-xml php-intl php-mysql php-cli php-ldap php-imap php-zip php-curl nginx mariadb-client mariadb-server php-imagick php-json -y

sed -i 's,^listen =.*$,listen =,' /etc/php/7.4/fpm/pool.d/www.conf

sed -i 's,^upload_max_filesize =.*$,upload_max_filesize = 100M,' /etc/php/7.4/fpm/php.ini

sed -i 's,^post_max_filesize =.*$,post_max_filesize = 50M,' /etc/php/7.4/fpm/php.ini

sed -i 's,^memory_limit =.*$,memory_limit = 128M,' /etc/php/7.4/fpm/php.ini

sed -i 's,^max_execution_time =.*$,max_execution_time = 300,' /etc/php/7.4/fpm/php.ini

sed -i 's,^max_input_vars =.*$,max_input_vars = 100000,' /etc/php/7.4/fpm/php.ini

Leave a Reply

Your email address will not be published. Required fields are marked *