Bluehost.com Web Hosting $6.95

safe_mode problem

This is a discussion on safe_mode problem within the PHP General forums, part of the PHP Programming Forums category; I can't seem to get safe_mode working the way I need it to. I'm trying to allow users ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-24-2003
Peter Torraca
 
Posts: n/a
Default safe_mode problem


I can't seem to get safe_mode working the way I need it to. I'm
trying to allow users to include PEAR from their local webspace
without disabling safe_mode. The docs tell me to simply use the
safe_mode_include_dir directive, but php does not seem to be using
it. Here's my config, set up in httpd.conf:

<Directory ~ "/*/WWW">
AllowOverride FileInfo Indexes AuthConfig Limit
Options MultiViews +Indexes -FollowSymLinks +SymLinksIfOwnerMatch
+ExecCGI +IncludesNoExec
<Limit GET POST OPTIONS PROPFIND>
Order allow,deny
Allow from all
</Limit>
<Limit PUT DELETE PATCH PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Order deny,allow
Deny from all
</Limit>
php_admin_flag safe_mode On
php_value include_path ".:/pkgs/php-4.2.3/share/pear"
php_admin_value safe_mode_exec_dir "/pkgs/www/cgi-bin/"
php_admin_value safe_mode_include_dir ".:/pkgs/php-4.2.3/share/pear"
php_admin_value doc_root "."
php_admin_value user_dir WWW
php_admin_flag engine On
php_value max_execution_time 90
</Directory>

Currently, this setup throws "SAFE MODE Restriction in effect" errors
when I try to include /pkgs/php-4.2.3/share/pear. Includes work when
I turn safe_mode off. Anyone see what I'm doing wrong or what I
should be doing differently?

Peter

--
Peter Torraca
Webmaster, Math Department
Purdue Univ., Math 813
765-494-9998
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:26 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0