I have several users who have requested a Drupal CMS site, and I want to minimise the amount of seperate codebases which need to be updated and maintained.
I've created a Drupal installation at /usr/local/drupal which will be shared among several virtual users, and I am writing a script which will create the necessary sylinks in a user's public_html folder (or a subdirectory) to access the necessary PHP codebase. Unfortunately I've run into a problem with the open_basedir restrictions, which means the shared code will not run.
I don't want to disable the open_basedir security check, so I need to add the new path '/usr/local/drupal' to the 'php_admin_value open_basedir' settings for selected virtual hosts in httpd.conf. There's nothing sensitive or account-specific in this codebase, so it would be acceptable to apply the open_basedir change system-wide to all accounts if that's easier.
But how do I stop these changes being overwritten when the http.conf file is regenerated? I've tried:
1) editing http.conf directly and checking the modifed file in, but the changes are ignored when I regenerate.
2) editing the per-site templates at '/var/cpanel/userdata/*', but I didn't see any reference to open_basedir in there.
3) editing the template at '/var/cpanel/templates/apache2/vhost.default' but that doesn't seem to affect the output (perhaps it's cached per-site? I guess this will work for new accounts which is some progress).
Any pointers on how to add paths to the open_basedir setting for some or all accounts on a server?
Thanks!
root user,
cPanel 11.24.4-C34634 - WHM 11.24.2 - X 3.9
CENTOS 4.4 x86_64 on standard



LinkBack URL
About LinkBacks
Reply With Quote





