Using "open_basedir restriction" and "~username" access

On one of our servers, we have php open_basedir restrictions enabled. (Using the cpanel/whm "tweak security" settings.)

So far, everything has worked without problem. However, now we have a WHM reseller who is trying to access his new domain like this:

http://www.resellerdomain.com/~newusername

(where "newusername" is the new account username, etc..)

The problem is that when they try to access ANY php file using this method, they get this error:
-----------------
Warning: Unknown(): open_basedir restriction in effect. File(/home/newaccount/public_html/index.php) is not within the allowed path(s): (/home/reselleraccount/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

Warning: Unknown(/home/newaccount/public_html/index.php): failed to open stream: Operation not permitted in Unknown on line 0

Warning: Unknown(): open_basedir restriction in effect. File(/home/newaccount/public_html/index.php) is not within the allowed path(s): (/home/reselleraccount/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

Warning: Unknown(/home/newaccount/public_html/index.php): failed to open stream: Operation not permitted in Unknown on line 0

Warning: (null)(): Failed opening '/home/newaccount/public_html/index.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0
------------------
Is this a configuration problem? Or is this normal? If it's normal, does it meant that it's not possible to call a php file using the "~username" method, if php open base_dir restriction is enabled?

Is there a workaround?

Thanks!

 

 

 

 

Top