- 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
But, none of these are working, because according to the PHP error log:
However, the PHP.ini file correctly sets:
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 .
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.
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.