CentOS 8 Stream 버전에서 phpMyAdmin 을 다운로드 받아서 설치했더니 아래와 같은 오류가 나오네요~

phpMyAdmin Error session_start Failed Permision denied

session.save_path 디렉토리의 퍼미션을 확인해 봐야겠습니다.

phpMyAdmin - Error
Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.

session_start(): open(SESSION_FILE, O_RDWR) failed: Permission denied (13)

session_start(): Failed to read session data: files (path: /var/opt/remi/php74/lib/php/session)

php-fpm 버전을 7.4 로 설정했더니 저렇게 오류가 나오는군요~

 

[root@ivps share]# ls -l /var/opt/remi/php74/lib/
total 0
drwxr-xr-x. 2 root root   6 Apr  9  2020 games
drwxr-xr-x. 2 root root   6 Apr  9  2020 misc
drwxr-xr-x. 5 root root 115 Feb  1 16:44 pear
drwxrwx---. 6 root root  68 Feb  1 16:44 php
drwxr-xr-x. 2 root root   6 Apr  9  2020 rpm-state
[root@ivps share]# ls -l /var/opt/remi/php74/lib/php
total 0
drwxrwx---. 2 root apache  6 Dec 19 22:40 opcache
drwxr-xr-x. 2 root root   67 Feb  1 16:44 peclxml
drwxrwx---. 2 root apache  6 Dec 19 22:40 session
drwxrwx---. 2 root apache  6 Dec 19 22:40 wsdlcache

디렉토리 퍼미션을 777 로 바꿔봅니다.

[root@ivps ~]# chmod 777 /var/opt/remi/php74/lib/php
[root@ivps ~]# chmod 777 /var/opt/remi/php74/lib/php/session

퍼미션을 바꿔주니 이제 잘 작동하는군요~

 

블로그 이미지

영은파더♥

가상서버호스팅 VPS 리눅스 서버관리 윈도우 IT

,