B)Installing_Wordpress.md
# Wordpress installation
Applying for the installation package
Folder permissions¶
Start the browser and continue to complete the installation
Time to thing why /wordpress is working
1) Go back to the Apache configuration and check the default server block configuration. (nano /etc/apache2/sites-enabled/000-default.conf))
2) What is the document root? So /var/www/html/ is folder where Apache looking files and folders to serve. So I http://MachineIP/wordpress/ is working because there is a ........
If the VM machine's IP changes or WP crashes in some way (IF NEEDED!!)¶
Caution
"Only do this when your service is broken or IP address has been changed!"
Wordpress is builded to save the IP address or domain name of the server in the database. If you change the IP address of the VM machine or if something goes wrong with the WP installation, you may need to change the IP address in the database or in the configuration file.
The following changes do not need to be made if everything is in order. However, it is good to note these, because these things are most often broken.
sudo nano /var/www/html/wordpress/wp-config.php
//#Go to second line of configuration and add new lines :
define('WP_HOME','http://MachineIP/wordpress');
define('WP_SITEURL','http://MachineIP/wordpress');