Skip to the content.

WordPress Installation Steps on Ubuntu 22.04

1. Download and Extract WordPress

wget https://tr.wordpress.org/latest-tr_TR.zip
unzip latest-tr_TR.zip
rm -rf latest-tr_TR.zip

2. Set Up Web Directory

mv wordpress/ /var/www/html/
cd /var/www/html/wordpress/

3. Configure Apache

sudo a2enmod rewrite
sudo systemctl restart apache2

4. Set File Permissions

sudo chown -R $USER:www-data /var/www/html/wordpress/
sudo usermod -aG www-data $USER
sudo chown -R www-data:www-data /var/www/html/wordpress/wp-content/

These steps will install and configure WordPress with proper permissions on your Ubuntu 22.04 system.