Ad

caden
asked May 12 2017
Answer
Definitely its possible to do so. You can initiate PHP variables in httpd.conf file. But once the PHP is initialized it first reads the php.ini file.
NOTE:
php.ini variable put into your httpd file will apply to php when it runs as apache module i.e in web page but not in CLI.

jagannatharumugam
asked May 12 2017
edited Oct 05 2018
how to use php variables in apache
Is it possible to set my PHP variables to my apache' s config file. i.e it should load from httpd.conf file not from php.ini file???