05 Dec 2017 11:26 AM
I have successfully used an environment variable in etc/sysconfig/httpd to rename an Apache Web Server process.
However, for PHP, I can't seem to be able to pick up the environment variables any where. I tried to
1) source the variable in /etc/profile.d/, restart php-fpm, does not work
2) tried to use /usr/local/etc/php-fpm.conf and restarted php-fpm, does not work either
Does anyone have a working configuration that you can share?
This is important to me as I have multiple PHP engines and Apache Web Servers serving different applications in the same host. If I am not able to spilt the process that is supporting the services, it will be very difficult for the monitoring team to isolate issues and troubleshoot faster.
Regards,
Myrvin
Solved! Go to Solution.
13 Dec 2017 07:28 AM
For php you can change agent name in php.ini file.
Setting:
phpagent.agentname = your_agent_name
should do the trick.
Best regards,
Bartek