Dear list members, I wrote yesterday about problems I was having, related to suPHP and PHP safe_mode, which makes for problems when trying to run a wiki farm across different clients' web hosting accounts, with the common code included from my own web hosting account.
It seems that with suPHP, I can specify in the php.ini a parameter safe_mode_include_dir which will allow inclusion of PHP code from the specified folder(s). While this circumvents the security provided by safe_mode, it's at least better than leaving it off entirely. However, when I try this I run into another problem, namely that pmwiki can't find my site's skin. the contents of my php.ini are: register_globals = Off safe_mode = On safe_mode_gid = Off safe_mode_include_dir="/home/myroot/" # i.e. allow everything for now # my plan is to restrict the above to only the required paths eventually I tried doing some diagnostics and found that my farmconfig.php doesn't seem to get included when safe_mode is on; hence, $FarmPubDirUrl doesn't get set properly and the skin is not found, causing the script to grind to a halt. I also tried setting $FarmPubDirUrl in my local config.php, and even in the wrapper index.php, but to no avail, strangely enough. If I type the URL to the skin's CSS file, I do see it in my browser. When I try the same thing with the skin.php file, I get: Fatal error: Call to undefined function: sdv() ... on line 19 Could anyone suggest any other tests I can do to track down what's not working here? thanks, Shi. _______________________________________________ pmwiki-users mailing list [email protected] http://www.pmichaud.com/mailman/listinfo/pmwiki-users
