• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue How to update PHP open_basedir and/or httpd.conf server wide?

MHC_1

Basic Pleskian
Server operating system version
Almalinux 9.2
Plesk version and microupdate number
18
How to edit the core Server wide Apache httpd.conf file?

There are bunch of common PHP classes that are used server wide across many domains and accounts. To this end the classes are stored outside the account/domain scope; typically in

/usr/local/lib/php/


But, none of these are working, because according to the PHP error log:
[15-Apr-2025 12:01:42 Europe/London] PHP Warning: include(): Failed opening 'class.file.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/vhosts/website.co.uk/public_html/index.php on line 2
[15-Apr-2025 12:01:42 Europe/London] PHP Fatal error: Uncaught Error: Class "ClassName" not found in /var/www/vhosts/website.co.uk/public_html/index.php:6

However, the PHP.ini file correctly sets:

include_path = ".:/usr/local/lib/php"
...
open_basedir = /var/www/vhosts/michaelbullen.co.uk/:/tmp/:/usr/local/lib/php/

Yet despite the restarts the `phpInfo()` for the Domain still fails to show changes to access to the required directory.

Digging into this it appears that I need to update the httpd.conf file in Apache to permit the non-default open_basedir server wide .


How do I customise `open_basedir` and `include_path` for across ALL accounts/domains in Plesk?​


I believe this is via httpd.conf ; How do I do this?

I DO NOT want to update httpd.conf for each domain, I need to update it centrally for all server domains.


How do I do this?

 
Back
Top