Enable the httpd service at boot time

To make sure the httpd service start automatically at the boot time, enter:
sudo systemctl enable httpd.service

Sample outputs:

ln -s '/usr/lib/systemd/system/httpd.service' '/etc/systemd/system/multi-user.target.wants/httpd.service'
The following command will disable the httpd service at the boot time:
sudo systemctl disable httpd.service

You don't have permission to access / on this server.

 

첫째, 아파치 퍼미션 문제


해결책:

/home/유저명 이 유저명 디렉토리 권한을 chmod 711 유저명으로 하면 해결된다.

# chmod 711 aaa


둘째, SELinux 설정 문제

요   약:
SELinux is preventing the httpd from using potentially mislabeled files(/home/aaa/public_html/index.html)

해결책:

# restorecon -v '/home/aaa/public_html/index.html'
# restorecon -R -v '/home/aaa/public_html'

 

출처: http://youdw.egloos.com/171450

아래는 얼마 전 홍대 앞을 찾았을 때 찍은 사진입니다.

그런데 분위기가 뉴욕 맨하탄의 타임스퀘어 광장과 흡사하지 않나요?

그 화려함만 빼면…!?

IMG_3699

+ Recent posts