Help - Search - Members - Calendar
Full Version: open_basedir restriction in effect
The Planet Forums > Control Panels > cPanel/WHM
Bourd
I'm tryin' to share files (mySQL) between 2 domains on my linux server and 'open_basedir restriction in effect' is stopping it from happening:

CODE
Warning: fopen(): open_basedir restriction in effect. File(/home/user2/public_html/ct/thumbs/tn1.jpg) is not within the allowed path(s): (/home/user1:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/user1/public_html/ct/admin/export.php on line 480



Warning: fopen(/home/user2/public_html/ct/thumbs/tn1.jpg): failed to open stream: Operation not permitted in /home/user1/public_html/ct/admin/export.php on line 480



I really don't know what it could be... from what I get in /usr/local/lib/php.ini, safe mode is off:


CODE
; Safe Mode

safe_mode               =       Off

safe_mode_exec_dir      =

safe_mode_allowed_env_vars = PHP_                                      



safe_mode_protected_env_vars = LD_LIBRARY_PATH



Hope you can help! Thanks![/code]
dezignguy
you have the php open_basedir security tweak on in WHM...

Go to Tweak Security under Server Setup and disable it for those two domains...
Hogie
openbase_dir isn't a safemode only mode. It runs in the "normal" mode too.
Bourd
QUOTE
you have the php open_basedir security tweak on in WHM...  

Go to Tweak Security under Server Setup and disable it for those two domains...



Thanks, it works now!!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.