본문 바로가기
SW 프로그래밍/센토스(CenTOS)

phpmyadmin failed: Permission denied (13) 해결

by N2info 2020. 4. 26.

failed: Permission denied (13)위와같이 접속 오류가 나면

아래와 같이 session 권한변경

 

# chmod 0777 /var/lib/php/session

 

[root@localhost /etc/httpd/conf]# cd /var/lib/php
[root@localhost /var/lib/php]# ll
total 0
drwxrwx---. 2 root apache 6 Nov  2 01:06 session
[root@localhost /var/lib/php]#
[root@localhost /var/lib/php]#
[root@localhost /var/lib/php]# chmod 0777 /var/lib/php/session
[root@localhost /var/lib/php]#
[root@localhost /var/lib/php]#
[root@localhost /var/lib/php]# ll
total 0
drwxrwxrwx. 2 root apache 6 Nov  2 01:06 session
[root@localhost /var/lib/php]#

 

출처 : http://hobbang.net/etcinfo/99