|
I like pmWiki, because it runs in a pure php-environment, but in safe mode environment there are several problems and it depends also from a correct configuration of the safe mode.
(my installations don’t work correctly yet)
Shell und System CommandsSome commands don’t work. May be the correct configuration of safe_mode_exec_dir in php.ini would help?popen( ) gives a correct handle, but executes just commands in safe_mode_exec_dir. Backtick `commands` are mostly forbidden in Safe Mode, but never used in pmwiki. Creating DirectoriesInstalling pmWiki I had to create wiki.d manually and set the Perms to 777 Workarounds with Perl-(CG Is)?: (chown seems to need root-access, umode didn’t work).(cgi run’s with the same user as my ftp user, php runs with apache apache, without chown 777 is necessary). Problems with RevisionSomething doesn’t work with diff and patch (no failures with open, even if not available in correct path) http://ch.php.net/manual/en/function.popen.phpworks if safe_mode_exec_dir ist set correctly and the commands are available there. www.blug.ch revisons work now Upload Files:$EnableUpload = 1;
When enabling this flag, pmwiki can fail because of safe mode. I had to create the correct upload directories manually. The existency check in pmwiki.php failed too, a workarround was to comment the check. Now the upload works until trying to copy the file from red to the correct path because of safe mode…/tmp is forbidden to read Possible workarround: if cgi available, it’s possible to make a perl interface. Wondering wether /tmp can be configured as one of the safe mode paths.. by the way: (CM Simple)? makes the upload through a form (have to analyse the program) Patrick Ogay (You have a nice Site) Page last modified on 25 November 2004, at 10:27 PM
|