How do I add paths to the Apache PATH variable?

for ubuntu server, in /etc/apache2/envvars,
for centos server, in /etc/sysconfig/httpd,
to add:

export PATH=<your php cli path>

and restart apache

Leave a Comment