Forum Moderators: coopster

Message Too Old, No Replies

Warning: chmod(): Operation not permitted

         

MrGecko

11:20 pm on Jun 8, 2007 (gmt 0)

10+ Year Member



i received Warning: chmod(): Operation not permitted in /Web/clan/test.php on line 2
when i was tying to change permissions on a file

here is my phpinfo

phpinfo()
PHP Version => 5.0.5

System => Darwin MrGecko.local 7.9.0 Darwin Kernel Version 7.9.0: Wed Mar 30 20:11:17 PST 2005; root:xnu/xnu-517.12.7.obj~1/RELEASE_PPC Power Macintosh
Build Date => Jun 4 2007 13:43:57
Configure Command => './configure' '--prefix=/Server/php' '--with-xml' '--with-zlib' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-mysql=/usr/local/mysql' '--with-apxs2=/Server/bin/apxs' '--with-config-file-path=/Server/php/conf' '--with-inifile' '--enable-ftp'

disable_functions => no value => no value
safe_mode => Off => Off
safe_mode_exec_dir => no value => no value
safe_mode_gid => Off => Off
safe_mode_include_dir => no value => no value

[edited by: eelixduppy at 4:08 pm (utc) on June 9, 2007]
[edit reason] removed excess information [/edit]

dreamcatcher

6:22 am on Jun 9, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi MrGecko,

Is your server running in Safe Mode?
[php.net...]

dc

barns101

2:31 pm on Jun 9, 2007 (gmt 0)

10+ Year Member



Not according to the PHP info in the original thread.

MrGecko

2:52 pm on Jun 9, 2007 (gmt 0)

10+ Year Member



no safe mode is not on

eelixduppy

2:54 pm on Jun 9, 2007 (gmt 0)



My guess is that you just don't have the permissions to change the permissions of that file. If the file was made with php, then it should, otherwise, I'm sure that's the problem.

MrGecko

3:34 pm on Jun 9, 2007 (gmt 0)

10+ Year Member



Thanks That Worked