[pmwiki-users] Turn Off Safe Mode

Sivakatirswami katir at hindu.org
Sun Feb 4 21:06:46 CST 2007


OK, I'm stumped:

phpinfo.php shows that this to be the primary config file on the wiki
domain:

/etc/php.ini

I edited that, set

safe_mode= Off

restarted httpd, but still pmwiki cannot run mkdir for new groups'
folders in wiki.d

?

What else do we need to do? Do we need to toggle any other settings in
php.ini?

I googled for this and there's lots of discussion about it.. I see this.. at

http://us3.php.net/features.safe-mode

will it help?
======
I use mkdir just fine. You just have to make sure you set sticky bits on
the directory you are creating the files in. Look at "man chmod" clipping:

4000    (the setuid bit).  Executable files with this bit set will run
with effective uid set to the uid of the file owner. Directories with
this bit set will force all files and sub-directories created in them to
be owned by the directory owner and not by the uid of the creating
process, if the underlying file system supports this feature: see
chmod(2) and the suiddir option to mount(8).

Thanks

Sivakatirswami



More information about the pmwiki-users mailing list