Forked from teja156/gist:8c35a05f43635da4cbd06b47c0d91e93
Created
June 19, 2024 11:50
-
-
Save saksham-raghuvanshi/2b7ffd9f1fee86fc8f3ccbdf46b1919e to your computer and use it in GitHub Desktop.
Revisions
-
teja156 revised this gist
Jun 21, 2022 . 1 changed file with 43 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,8 +1,48 @@ YouTube video link: https://youtu.be/8Uofkq718n8 All the commands that are executed in the above youtube video are mentioned in this gist. 1. Install Apache server on Ubuntu sudo apt install apache2 2. Install php runtime and php mysql connector sudo apt install php libapache2-mod-php php-mysql 3. Install MySQL server sudo apt install mysql-server 4. Login to MySQL server sudo mysql -u root 5. Change authentication plugin to mysql_native_password (change the password to something strong) ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password by 'Testpassword@123'; 6. Create a new database user for wordpress (change the password to something strong) CREATE USER 'wp_user'@localhost IDENTIFIED BY 'Testpassword@123'; 7. Create a database for wordpress CREATE DATABASE wp; 8. Grant all privilges on the database 'wp' to the newly created user GRANT ALL PRIVILEGES ON wp.* TO 'wp_user'@localhost; 9. Download wordpress cd /tmp wget https://wordpress.org/latest.tar.gz 10. Unzip tar -xvf latest.tar.gz 11. Move wordpress folder to apache document root sudo mv wordpress/ /var/www/html 12. Command to restart/reload apache server sudo systemctl restart apache2 OR sudo systemctl reload apache2 13. Install certbot sudo apt-get update sudo apt install certbot python3-certbot-apache 14. Request and install ssl on your site with certbot sudo certbot --apache -
teja156 created this gist
Jun 21, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ 1. Install Apache server on Ubuntu ```sudo apt install apache2``` 2. Install php runtime and php mysql connector ```sudo apt install php libapache2-mod-php php-mysql``` 3. Install MySQL server ```sudo apt install mysql-server ```