IT이야기
apache2 재설치. wordpress 설정
준호씨
2018. 8. 29. 00:58
반응형
sudo apt-get remove apache2
sudo apt autoremove
오류발생
root@junho85:~# apt-get update
Err:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Temporary failure resolving 'security.ubuntu.com'
Err:2 http://us.archive.ubuntu.com/ubuntu bionic InRelease
Temporary failure resolving 'us.archive.ubuntu.com'
Err:3 http://us.archive.ubuntu.com/ubuntu bionic-updates InRelease
Temporary failure resolving 'us.archive.ubuntu.com'
Reading package lists... Done
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic/InRelease Temporary failure resolving 'us.archive.ubuntu.com'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/bionic-security/InRelease Temporary failure resolving 'security.ubuntu.com'
W: Failed to fetch http://us.archive.ubuntu.com/ubuntu/dists/bionic-updates/InRelease Temporary failure resolving 'us.archive.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
/etc/resolv.conf 설정
/etc/resolv.conf 내용이 비어 있음? 왜일까. 어디 심볼릭 링크 걸려 있던데 존재하지 않는 파일로 되어 있었음. 새로 파일 만들어주고 아래로 설정.
nameserver 8.8.8.8
nameserver 8.8.4.4
apt-get update 성공
apache2 설치
apt-get install apache2
다시 설치 해도 설정이 기존 설정으로 유지 되어서 여전히 실패함. mod_python module 어쩌고. mod_wsgi 어쩌고.
/etc/apache2 도 리네임.
/etc/apache2/apache2.conf 가 안생기고 start 실패
제거
sudo apt-get --purge remove apache2
sudo apt-get autoremove
이렇게 지우니 data 도 다 지움.
설치
sudo apt-get install apache2
워드프레스를 띄워보자
php 가 실행 안됨
a2enmod rewrite
apt-get install php
php7.2 가 설치 됨.
service apache2 restart
PHP에 MySQL 확장이 설치되어 있지 않은 것 같습니다. 워드프레스는 이 확장이 필요합니다.
apt-get install php7.2-mysql
어휴. 드디어 워드프레스 띄우기 성공. 그런데 원래 아무 이미지가 없었던가.
참고
반응형