Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
Cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly.
위의 에러는 임시폴더에 Session관련 파일생성이 되지 않아서 에러가 나는 경우이다.
1. <? phpinfo; ?>에서 session.save_path 를 확인합니다.
일반적으로 session.save_path = /var/lib/php/session 로 지정됩니다.
# cd /usr/local/Zend/etc/php.ini
[방법1]
session.save_path = /var/lib/php/session --> session.save_path = /tmp
[방법2]
session.save_path 의 경로의 퍼미션을 777 로 변경
# chmod 777 /var/lib/php/session
2. 아파치 재실행하기
[방법1] <강추>
# cd /usr/local/apache
# ./bin/apachectl restart
[방법2]
# service httpd restart
관련사이트
http://blue.iegate.net/ver4/bbs/board.php?bo_table=plus03&wr_id=189
** 윈도우 서버의 경우
c:\tmp 등의 폴더를 생성후.
session.save_path = "c:/tmp" <= c:\ 가 아니고 c:/ 이다.
와 같이 설정후 Apache 재시작해준다.
'+::Programing:: > PHP' 카테고리의 다른 글
PHP, Apache 서버에서의 $DOCUMENT_ROOT변수 인식문제 (0) | 2011.10.23 |
---|