restarting apache2 after updating--> cp default-server.conf default-server.conf-before-making-changes-2019-04-apr-07.sav --> vi /etc/apache2/default-server.conf --> cp default-server.conf default-server.conf-after-making-changes-2019-04-apr-07.sav -> more bin/restart-apache #!/bin/bash systemctl stop apache2 ; apachectl configtest ; systemctl enable apache2 ; systemctl start apache2 ; systemctl status apache2 --> restart-apache Syntax OK ● apache2.service - The Apache Webserver Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled; vendor preset: disabled) Active: active (running) since Sun 2019-04-07 21:11:28 PDT; 4ms ago Main PID: 10576 (httpd-prefork) Status: "Processing requests..." Tasks: 6 CGroup: /system.slice/apache2.service ├─10576 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf... ├─10584 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf... ├─10585 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf... ├─10586 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf... ├─10588 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf... └─10589 /usr/sbin/httpd-prefork -DSYSCONFIG -C PidFile /var/run/httpd.pid -C Include /etc/apache2/sysconfig.d//loadmodule.conf -C Include /etc/apache2/sysconfig.d//global.conf -f /etc/apache2/httpd.conf... Apr 07 21:11:28 alinuxsystem systemd[1]: Starting The Apache Webserver... Apr 07 21:11:28 alinuxsystem systemd[1]: Started The Apache Webserver. JohnMeister.com Today's Date: |