워드프레스 건강상태 점검에서 캐시메모리 관련 권장사항이 있길래 검색 후
W3 Total Cache 플러그인을 설치하고, 관련 정보 몇가지 수정했더니
워드프레스 서버 에러가 나오길래...
root@Gugeosigan:/# apache2ctl -S
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
VirtualHost configuration:
*:80 is a NameVirtualHost
default server localhost (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost localhost (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost wp.mogibu.kro.kr (/etc/apache2/sites-enabled/wp.mogibu.kro.kr.conf:1)
*:443 is a NameVirtualHost
default server localhost (/etc/apache2/sites-enabled/000-default-ssl.conf:2)
port 443 namevhost localhost (/etc/apache2/sites-enabled/000-default-ssl.conf:2)
port 443 namevhost wp.mogibu.kro.kr (/etc/apache2/sites-enabled/wp.mogibu.kro.kr.conf:21)
ServerRoot: "/etc/apache2"
Main DocumentRoot: "/var/www/html"
Main ErrorLog: "/var/log/apache2/error.log"
Mutex ssl-stapling: using_defaults
Mutex ssl-cache: using_defaults
Mutex default: dir="/var/run/apache2/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex watchdog-callback: using_defaults
Mutex rewrite-map: using_defaults
Mutex ssl-stapling-refresh: using_defaults
PidFile: "/var/run/apache2/apache2.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
User: name="www-data" id=33
Group: name="www-data" id=33
root@Gugeosigan:/# sudo apachectl configtest
AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
Syntax OK
에러 해결
nano /etc/apache2/apache2.conf
마지막 줄에
ServerName 127.0.0.1 추가하고
sudo apachectl configtest
Syntax OK
systemctl reload apache2.service
'IT' 카테고리의 다른 글
Windows PE로 Tiny Windows 11 재설치 (0) | 2024.01.15 |
---|---|
챗GPT (0) | 2023.12.16 |
Windows Util (0) | 2023.12.10 |
서버 파일 업로드 용량 제한 (0) | 2023.12.10 |
Zapier 연동 댓글창 나타내기 (0) | 2023.12.09 |