Tuesday, August 15, 2023

Install WordPress with Ubuntu and LAMP Stack

 1. Install PHP and Apache by command:

sudo apt update

sudo apt install apache2 ghostscript libapache2-mod-php mysql-server php php-bcmath php-curl php-imagick php-intl php-json php-mbstring php-mysql php-xml php-zip

2. Install WordPress

Create the installation directory and download the file from WordPress.org:

sudo mkdir www

sudo chown www-data: www

curl https://wordpress.org/latest.tar.gz | sudo -u www-data tar zx -C www