hi guys, I went into system>bootup and shutdown and shutdown apache2 by selecting it, going down to the bottom of the window and choosing "disable now and on boot"
the system updates to show in the column on rhs next to apache2 "start at boot = no" "running now = no"
If i go back down the bottom and change it to "start now and on boot" the system updates the columns next to apache2 to show "start at boot = yes" however "running now = no"
Apache2 is not running and will not start using any method i have tried within webmin.
clicking on the servers status menu on rhs of screen and selecting apache2 (which is showing as not running) brings up
" The Apache server executable /usr/sbin/apache2 does not exist. If you have Apache installed, adjust the module configuration to use the correct path. The Apache Webserver package can be automatically installed by Webmin. Click here to have it downloaded and installed using APT."
why is this doing that? Apache2 was installed and was running perfectly until i performed the above mentioned operation from within system> bootup and shutdown.
It seems to me that the apache2 start and restart operations are not working properly on Google Cloud Compute Instances?
I get a message saying if apache2 is install go to its configuration module and set the correct path. how can this have changed when apache2 has already been installed and was running previously (i did not uninstall it)
My system configuration is as follows
Apache2 server root directory = /etc/apache2 PAth to http executable= /usr/bin/apache2 path to apachectl command= /usr/sbin/apache2ctl path to start apache= /etc/init.d/apache2 start path to stop apache= /etc/init.d/apache2 stop command to apply configuration= /usr/sbin/apache2ctl graceful path to httpd.conf or apache2.conf= /etc/apache2/apache2.conf path to srm.conf= /etc/apache2/srm.conf path to access.conf= /etc/apache2/access.conf path to mime.types= /etc/apache2/mime.types
Environment file defining apache variables= /etc/apache2/envvars
EDIT... I have done some checking and it seems that virtualmin has deleted the /etc/usr/sbin/apache2 executable!
Why has this happened, how do i get it back again, and what should i do to prevent this from happening in the future?
I have reinstalled apache2 using webmin...the install seemed to work ok, however as soon as i try to start apache
"Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. failed!"
https://ajecreative.com.au