This is a bash file to install wordpress. it assumes you have lamp installed
Steps
git clone https://github.com/knowhalim/wordpress_install.gitcd wordpress_installchmod +x wordpress_setup.shsudo ./wordpress_setup.shsudo chown -R www-data:www-data /var/www/yourdomain.com/public_html
Then go to your domain and install your wordpress.
You might encounter problems during the installation if you did not point your domain to your IP before running step 4.
Solution:
- Point domain to your IP.
- Run
sudo certbotand follow the instructions
You should end up with
- Congratulations! Your certificate and chain have been saved at: /etc/letsencrypt/live/path
Other optional stuffs (but useful if you are scraping):
sudo apt updatesudo apt install php-curlsudo apt install php7.4-curlnano /etc/php/7.4/apache2/php.ini- Look for
;extension=curland change toextension=curl sudo systemctl restart apache2sudo systemctl restart php7.4-fpm