The good thing about starting a new WordPress website or blog is that you get a chance to set up everything right the first time. When you get it right the first time, there will be no need to go back to fix issues that weren’t setup correctly.

sudo apt install php7.2-cgi php7.2-curl php7.2-gd php7.2-xml php7.2-xmlrpc php7.2-mbstring php7.2-zip php7.2-intl php7.2-soap php7.2-ldap


sudo nano /etc/php/7.2/apache2/php.ini
=====
post_max_size = 100M
memory_limit = 256M
max_execution_time = 360
upload_max_file_size = 100M

date.timezone = Africa/Nairobi
=====


sudo nano /etc/apache2/apache2.conf
=====
... Directory /var/www/
Options FollowSymLinks
AllowOverride All
Require all granted
=====


sudo nano /etc/apache2/envvars
=====
export APACHE_RUN_USER=www-data
export APACHE_RUN_GROUP=www-data
=====


sudo nano /etc/apache2/mods-available/autoindex.conf
=====
IndexOptions FancyIndexing FoldersFirst HTMLTable VersionSort
=====


sudo a2enmod rewrite

sudo a2enmod ssl

sudo a2ensite default-ssl

sudo make-ssl-cert generate-default-snakeoil --force-overwrite


sudo chown -R $USER:$USER /var/www/

sudo chmod -R u=rwX,g=rX,o=rX /var/www/


sudo systemctl reload apache2.service

sudo service apache2 restart

Living in Tune with Nature's Beat (Earth, Water, Fire, Air, Space)

Leave a Reply

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