MAMP를 사용하고 있지만 세션에 문제가 있습니다. 내 코드는 WAMP에서 완벽하게 작동하지만 MAMP에서는 작동하지 않으며 이유도 없습니다. 나는 phpinfo를 보았지만 MAMP와 WAMP 사이의 세션에 대해서도 마찬가지였다.세션이 MAMP에서 작동하지 않습니다.
PHP 로그 파일 : [01-May-2012 12:18:28] PHP Warning: session_start() [<a href='function.session- start'>function.session-start</a>]: Cannot send session cookie - headers already sent by (output started at /Applications/MAMP/htdocs/Website/index.php:7) in /Applications/MAMP/htdocs/Website/header.php on line 2 [01-May-2012 12:18:28] PHP Warning: session_start() [<a href='function.session-start'>function.session-start</a>]: Cannot send session cache limiter - headers already sent (output started at /Applications/MAMP/htdocs/Website/index.php:7) in /Applications/MAMP/htdocs/Website/header.php on line 2
아파치 로그 파일 : [Tue May 01 12:03:29 2012] [notice] Digest: generating secret for digest authentication ... [Tue May 01 12:03:29 2012] [notice] Digest: done [Tue May 01 12:03:29 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.6 configured -- resuming normal operations [Tue May 01 12:04:11 2012] [notice] caught SIGTERM, shutting down [Tue May 01 12:04:24 2012] [notice] Digest: generating secret for digest authentication ... [Tue May 01 12:04:24 2012] [notice] Digest: done [Tue May 01 12:04:24 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.6 configured -- resuming normal operations [Tue May 01 12:05:11 2012] [error] [client 127.0.0.1] client denied by server configuration: /Applications/MAMP/htdocs/.DS_Store
들이 작동하지 않는 이유는 무엇입니까?
감사합니다. 여기
액세스 로그와 오류 로그를 분리 한 아파치 로그 (MAMP/logs/apache_access_log)가 있습니다. 나는 거기에 봐. 아파치가 오류를 줄 수도 있습니다 –
내 게시물에 로그가 있습니다. – Guillaume