*APM이란?
Apache, PHP, MySQL의 약자.
Apache : 웹서버
PHP : WAS
MySQL : DB
*APM 설치
다음 명령어를 통하여 설치
sudo apt-get install [프로그램명]
다음 명령어를 통하여 Apache와 MySQL의 설치 및 상태 확인
systemctl status [프로그램명]
(환경구축시 Apache2를 사용하였음.)
─(root㉿kali)-[/var/www/html]
└─# systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; preset: disabled)
Active: active (running) since Thu 2023-03-30 07:46:26 EDT; 18h ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 524 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Process: 99138 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
Main PID: 595 (apache2)
Tasks: 6 (limit: 2271)
Memory: 6.3M
CPU: 755ms
CGroup: /system.slice/apache2.service
├─ 595 /usr/sbin/apache2 -k start
├─99167 /usr/sbin/apache2 -k start
├─99168 /usr/sbin/apache2 -k start
├─99169 /usr/sbin/apache2 -k start
├─99170 /usr/sbin/apache2 -k start
└─99171 /usr/sbin/apache2 -k start
Mar 30 07:46:26 kali systemd[1]: Starting apache2.service - The Apache HTTP Server...
Mar 30 07:46:26 kali apachectl[581]: AH00558: apache2: Could not reliably determine the server's fully qualified d>
Mar 30 07:46:26 kali systemd[1]: Started apache2.service - The Apache HTTP Server.
Mar 31 01:46:49 kali systemd[1]: Reloading apache2.service - The Apache HTTP Server...
Mar 31 01:46:49 kali apachectl[99162]: AH00558: apache2: Could not reliably determine the server's fully qualified>
Mar 31 01:46:49 kali systemd[1]: Reloaded apache2.service - The Apache HTTP Server.
lines 1-24/24 (END)
┌──(root㉿kali)-[/var/www/html]
└─# systemctl status mysql
● mariadb.service - MariaDB 10.11.2 database server
Loaded: loaded (/lib/systemd/system/mariadb.service; enabled; preset: disabled)
Active: active (running) since Thu 2023-03-30 07:46:27 EDT; 18h ago
Docs: man:mariadbd(8)
https://mariadb.com/kb/en/library/systemd/
Process: 528 ExecStartPre=/usr/bin/install -m 755 -o mysql -g root -d /var/run/mysqld (code=exited, status=0/S>
Process: 559 ExecStartPre=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0/>
Process: 583 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] && VAR= || VAR=`cd /usr/bin/..; /usr/>
Process: 753 ExecStartPost=/bin/sh -c systemctl unset-environment _WSREP_START_POSITION (code=exited, status=0>
Process: 755 ExecStartPost=/etc/mysql/debian-start (code=exited, status=0/SUCCESS)
Main PID: 659 (mariadbd)
Status: "Taking your SQL requests now..."
Tasks: 8 (limit: 2271)
Memory: 181.3M
CPU: 3.609s
CGroup: /system.slice/mariadb.service
└─659 /usr/sbin/mariadbd
Mar 30 07:46:27 kali mariadbd[659]: 2023-03-30 7:46:27 0 [Note] Plugin 'FEEDBACK' is disabled.
Mar 30 07:46:27 kali mariadbd[659]: 2023-03-30 7:46:27 0 [Warning] You need to use --log-bin to make --expire-log>
Mar 30 07:46:27 kali mariadbd[659]: 2023-03-30 7:46:27 0 [Note] InnoDB: Buffer pool(s) load completed at 230330 >
Mar 30 07:46:27 kali mariadbd[659]: 2023-03-30 7:46:27 0 [Note] Server socket created on IP: '127.0.0.1'.
Mar 30 07:46:27 kali mariadbd[659]: 2023-03-30 7:46:27 0 [Note] /usr/sbin/mariadbd: ready for connections.
Mar 30 07:46:27 kali mariadbd[659]: Version: '10.11.2-MariaDB-1' socket: '/run/mysqld/mysqld.sock' port: 3306 D>
Mar 30 07:46:27 kali systemd[1]: Started mariadb.service - MariaDB 10.11.2 database server.
Mar 30 07:46:27 kali /etc/mysql/debian-start[757]: Upgrading MySQL tables if necessary.
Mar 30 07:46:27 kali /etc/mysql/debian-start[770]: Checking for insecure root accounts.
Mar 30 07:46:27 kali /etc/mysql/debian-start[774]: Triggering myisam-recover for all MyISAM tables and aria-recove>
lines 1-28/28 (END)
둘 모두 active 확인.
PHP는 Happy Hacking 문구 출력 페이지 작성하며 확인하도록 하겠다.
'Nomaltic Hacking Study' 카테고리의 다른 글
2023.04.06 (0) | 2023.04.06 |
---|---|
2023.04.04 (0) | 2023.04.04 |
GET / POST 메서드로 웹 서버에 데이터 전달해보기_1주차 (0) | 2023.04.02 |
Happy Hacking 문구 출력페이지 만들기_1주차 (0) | 2023.04.02 |
1주차 (0) | 2023.03.31 |