Linux

PHP Warning: Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, [error] [client 192.168.0.204] PHP Warning: Invalid callback Session::clos..

Naan 2017. 6. 27. 15:57
320x100

PHP Warning:  Unknown: Failed to write session data (user). Please verify that the current setting of session.save_path is correct (/var/lib/php/session) in Unknown on line 0, 

[error] [client 192.168.0.204] PHP Warning:  Invalid callback Session::close, class 'Session' not found in Unknown on line 0, referer:


구글링을 해봤지만


/var/lib/php/session 경로 권한을 주라한다.

권한도 주고 경로도 변경해봤지만 안된다.


결국

5.3.x 버그(?)


5.6 으로 올리니깐 정상적으로 되더라..


# wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

# wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

# rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm

# yum install -y --enablerepo=remi,remi-php56 php php-devel

# yum install -y --enablerepo=epel,remi libaio libaio-devel libmcrypt libmcrypt-devel libtidy openssl openssl-devel

# yum install -y --enablerepo=remi,remi-php56 php-gd php-mbstring php-mcrypt php-mysql php-pdo php-pear php-tidy php-xml php-xmlrpc pcre-devel

# yum install -y --enablerepo=epel,remi,remi-php56 ImageMagick ImageMagick-devel php-pecl-imagick




320x100