I need to add a path to $PATH environment variable for PHP scripts on CentOS linux server with cPanel Pro 1.0 and Apache 2.2.27.
For Ubuntu or SuSE it just means adding the row
export PATH=$PATH:/path to
/etc/sysconfig/apache2, but this file is missing in sysconfig on CentOS with cPanel (and, of course, script
/etc/init.d/httpd is not looking for it). Is it anywhere else (as that would be the solution)?
The answer published here uses PHP itself to change PATH variable, but I'd like to use more robust solution on the Apache level... Any help will be highly appreciated!