# access apache2 from host computer #check the status of apache2 services apache2 status #installing apache2 sudo apt update sudo apt install apache2 # check version of apache2 apache2 -version #firewall configuration open certain ports on our system in order to access Apache from outside . first list the application profiles that we need to give apache access to sudo ufw app list sudo ufw allow 'Apache Full' sudo ufw status # if Apache is not found in app list do following things sudo nano /etc/ufw/applications.d/apache2-utils.ufw.profile copy following and paste in profile [Apache] title=Web Server description=Apache v2 is the next generation of the omnipresent Apache web server. ports=80/tcp [Apache Secure] title=Web Server (HTTPS) description=Apache v2 is the next generation of the omnipresent Apache web server. ports=443/tcp [Apache Full] title=Web Server (HTTP,HTTPS) description=Apache v2 is the next generation of the omnipresent Apache web server. ports=80,443/tcp # Configuring Apache web server; Verifying Apache service sudo systemctl status apache2 to verify if apache is running fine by requesting a web page from the Apache webserver find your Ip with following command hostname -I #refrences https://linuxhint.com/install_apache_web_server_ubuntu/ with Bridge Adapter I was able to open with ip but only for host # restart apache server ### check status of apache server `sudo systemctl status apache2` ### start apache server `sudo systemctl start apache2` ### stop apache server `sudo systemctl stop apache2` ### restart apache server `sudo systemctl restart apache2` get value from php.ini files php -r "echo ini_get('my_value');" #which php to change # change php file load upload config from here /etc/php/7.4/apache2/php.ini # increase upload limit from 2 gb php.ini (post size, memory_limit) another is .htaccess in vboxweb <!-- problem with limitrequestbody --> <!-- add LimitRequestBody 8589934592 --> # change core from voice server /usr/local/kaldi-trunk/egs/thevoice_with_khaldi/thevoice/ASR/config_Decode.rb processors = 2 https://ubiq.co/tech-blog/upgrade-apache-version-ubuntu/ imp link filestorage https://askubuntu.com/questions/1106795/ubuntu-server-18-04-lvm-out-of-space-with-improper-default-partitioning Use the following command to restart the server networking service. # sudo /etc/init.d/networking restart or # sudo /etc/init.d/networking stop # sudo /etc/init.d/networking start else # sudo systemctl restart networking Once this is done, use the following command to check the server network status. # sudo /etc/init.d/networking status or # sudo systemctl status networking Run the below command to update networking and then any changes that have been made to the network will take effect: # netplan apply