Bobcares

Disable PHP open_basedir protection in cPanel/WHM

PDF Header PDF Footer

PHP open_basedir directive is used to limit the files that can be opened by PHP to a specific directory-tree. What does that mean? With the open_basedir directive, you can tell the PHP scripts on a domain, which folders they have access to. Once specified, the PHP scripts will not be able to access files outside those folders.

 

 

On most cPanel servers, as part of a basic security audit, PHP open_basedir is enabled for all domains. Limiting access to files in that domain alone. This is a fine security measure, but what if your customer has multiple domains on the same server, and needs PHP scripts on one domain to access the files on another domain? This is where our little tutorial can help. By disabling PHP open_basedir only for these domains, you don’t have to sacrifice on the security of the other domains.

Hope this helps!

For more videos, visit our channel on YouTube.


0 Comments

Get featured on the Bobcares blog and share your expertise with a global tech audience.

WRITE FOR US
server management

Spend time on your business, not on your servers.

TALK TO US

Or click here to learn more.

GET UP TO 25% OFF

cPanel Support

Spend time on your business, not on your servers.

Managing a server is time consuming. Whether you are an expert or a newbie, that is time you could use to focus on your product or service. Leave your server management & end-user tech support to us, and use that time to focus on the growth and success of your business.

TALK TO US Or click here to learn more.

Speed issues driving customers away?
We’ve got your back!