-
Install apache2 & check MPM on ubuntuSecurity in CPS/Networking 2019. 8. 28. 09:29
1. Install apache server
$> sudo apt-get install apache2 2. Run apache server
$> sudo service apache2 start/restart/stop 3. Check apache server
$> systemctl status apache2 4. Check wheither Multi-Processing Module is loading.
12@ubuntu:/etc/apache2$ apache2 -V | grep MPMServer MPM: event5. Check apache status
1234567891011121314@ubuntu:/etc/apache2$ apache2 -SAH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this messageVirtualHost configuration:*:80 127.0.1.1 (/etc/apache2/sites-enabled/000-default.conf:1)ServerRoot: "/etc/apache2"Main DocumentRoot: "/var/www/html"Main ErrorLog: "/var/log/apache2/error.log"Mutex default: dir="/var/run/apache2/" mechanism=defaultMutex watchdog-callback: using_defaultsPidFile: "/var/run/apache2/apache2.pid"Define: DUMP_VHOSTSDefine: DUMP_RUN_CFGUser: name="www-data" id=33 not_usedGroup: name="www-data" id=33 not_usedhttp://colorscripter.com/info#e" target="_blank" style="color:#4f4f4ftext-decoration:none">Colored by Color Scripter[Troubleshooting]
1. ${APACHE_RUN_DIR} is not defined
1234@ubuntu:/etc/apache2$ apache2 -V | grep MPM[Wed Aug 28 10:12:45.645861 2019] [core:warn] [pid 94957] AH00111: Config variable ${APACHE_RUN_DIR} is not definedapache2: Syntax error on line 80 of /etc/apache2/apache2.conf: DefaultRuntimeDir must be a valid directory, absolute or relative to ServerRootServer MPM:http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4ftext-decoration:none">Colored by Color Scripter[solved]
12@ubuntu:/etc/apache2$ source /etc/apache2/envvars@ubuntu:/etc/apache2$ apache2 -S'Security in CPS > Networking' 카테고리의 다른 글
[Problem] No SYN,ACK in TCP 3-ways handshake (0) 2019.10.15 [아파치] 커스텀 모듈 빌드 및 로딩 (0) 2019.09.04 [apache2] build apache2 (httpd) (0) 2019.09.04 UDP DDos threats and vulnerabilities (0) 2019.05.21 TCP FSM(Finite State Machine) (0) 2019.05.21