2012-02-26 4 views
2

좋아, 나는 mkdir()에 스크립트를 허용하려고 시도하면서 권한을 망쳐 버렸다. 여기에 나의 허락이 현재 보여주고있는 것이있다 - 정상으로 돌아 가기 위해 어떻게해야하는지 말해 줄 수 있겠는가?session_start() failed : Permission denied (13)

XAMPP/:

drwxr-xr-x 8 root  admin  272 Feb 27 2010 XAMPP 

drwxr-xr-x 3 username admin 102 Feb 27 2010 XAMPP Control.app 
lrwxr-xr-x 1 username admin 18 Oct 26 2010 cgi-bin -> xamppfiles/cgi-bin 
lrwxr-xr-x 1 username admin 14 Oct 26 2010 etc -> xamppfiles/etc 
lrwxr-xr-x 1 username admin 17 Oct 26 2010 htdocs -> xamppfiles/htdocs 
lrwxr-xr-x 1 username admin 15 Oct 26 2010 logs -> xamppfiles/logs 
drwxr-xr-x 24 root  admin 816 Feb 26 13:30 xamppfiles 

xamppfiles/:에서

drwxr-xr-x 258 root admin 8772 Feb 27 2010 bin 
drwxr-xr-x 4 root admin 136 Feb 27 2010 cgi-bin 
drwxr-xr-x 3 root admin 102 Feb 27 2010 doc 
drwxr-xr-x 23 root admin 782 Feb 27 2010 error 
drwxr-xr-x 24 root admin 816 Feb 27 2010 etc 
drwxr-xr-x+ 15 root admin 510 Feb 26 13:59 htdocs 
drwxr-xr-x 160 root admin 5440 Feb 27 2010 icons 
drwxr-xr-x 137 root admin 4658 Feb 27 2010 lib 
drwxr-xr-x 2 root admin  68 Feb 27 2010 libexec 
drwxr-xr-x 33 root admin 1122 Feb 27 2010 licences 
drwxr-xr-x 8 root admin 272 Feb 26 12:00 logs 
drwxr-xr-x 75 root admin 2550 Feb 27 2010 modules 
drwxr-xr-x 99 root admin 3366 Feb 27 2010 phpmyadmin 
drwxr-xr-x 8 root admin 272 Feb 27 2010 sbin 
drwxr-xr-x+ 2 root admin  68 Feb 26 13:30 session 
drwxr-xr-x 16 root admin 544 Feb 27 2010 share 
drwxr-xr-x 29 root admin 986 Feb 27 2010 sql-bench 
drwxr-xr-x+ 4 root admin 136 Feb 26 12:51 temp 
drwxr-xr-x 3 root admin 102 Feb 27 2010 var 
-rwxr-xr-x 1 root admin 14339 Feb 27 2010 xampp 
-rw-r--r-- 1 root admin 6385 Feb 27 2010 xampp.pot 

htdocs에/testsession/:

drwxr-xr-x+ 3 root admin 102 Feb 26 14:01 testsession 

[email protected] 1 root admin 957 Feb 26 14:16 index.php 

내 testsession/index.php에 :

<?php 
// Set the error reporting level 
error_reporting(E_ALL); 
ini_set("display_errors", 1); 
// Start a PHP session 
session_start();  
?> 
01 23,516,

및 오류 :

/Applications/XAMPP/xamppfiles/session 
Warning: session_start() [function.session-start]: open(/Applications/XAMPP/xamppfiles/temp//sess_1b9827985300349847f0169f1031b113, O_RDWR) failed: Permission denied (13) in /Applications/XAMPP/xamppfiles/htdocs/testsession/index.php on line 10 

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /Applications/XAMPP/xamppfiles/htdocs/testsession/index.php:7) in /Applications/XAMPP/xamppfiles/htdocs/testsession/index.php on line 10 

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /Applications/XAMPP/xamppfiles/htdocs/testsession/index.php:7) in /Applications/XAMPP/xamppfiles/htdocs/testsession/index.php on line 10 

Warning: Unknown: open(/Applications/XAMPP/xamppfiles/temp//sess_1b9827985300349847f0169f1031b113, O_RDWR) failed: Permission denied (13) in Unknown on line 0 

Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/Applications/XAMPP/xamppfiles/temp/) in Unknown on line 0 

답변

5

chmod -R o+w ...../temp 또는 더 나은 (안전) chown -R apache.apache ......./temp (웹 서버가 사용하는 그룹 이름을/사용자와 apache 교체).

+0

그래, 시도해 봤지만 사랑이 없었어. XAMPP를 재설치 한 결과 내가 원래 있던 곳으로 돌아갔습니다. – earachefl

0

다른 오류 메시지와 함께이 오류 메시지가 나타납니다. 많은 슬픔을 겪은 끝에 그 해결책은 간단히 XAMPP를 다시 시작하는 것이 었습니다. 희망은 다른 사람을 돕는다!

Warning: session_start(): open(/var/folders/zw/hdfw48qd25xcch5sz9dd3w600000gn/T/sess_f8bgs41qn3fk6d95s0pfps60n4, O_RDWR) failed: Permission denied (13) in /Applications/XAMPP/xamppfiles/htdocs/foo/bar.php on line 3 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /Applications/XAMPP/xamppfiles/htdocs/foo/bar.php:3) in /Applications/XAMPP/xamppfiles/htdocs/foo/bar.php on line 3 

Warning: Unknown: open(/var/lib/php/session/sess_isu2r2bqudeosqvpoo8a67oj02, O_RDWR) failed: Permission denied (13) in Unknown on line 0 

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

나를 위해 작동하지 않습니다. 대신 chmod (/ 응용 프로그램/XAMPP/xamppfiles/임시 폴더의 사용 권한을 변경해야합니다. sudo chmod 755가 나를 위해 작동하는 것처럼 보였습니다. (chown'ing 한 후)

관련 문제