• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

How can i set env var for FCGI?

MiguelG

Basic Pleskian
Hi,

using php with fcgi, plesk uses a binary wrapper to load the php threads, so i can't edit the wrapper file (or being more exact, i don't know how to do this) so, how can i set an environment variable, for example PHP_FCGI_CHILDREN with plesk?

NOTE: I know that i can edit
/etc/httpd/conf.d/fcgid.conf and set FcgidMaxProcesses, but this is not what i need.

thanks in advance,
 
Well, after doing some research i've found this thread http://forum.parallels.com/showthread.php?265023-Enable-FastCGI-in-Plesk-11-Centos-6-3 my problem seems to be the same; opcode cache and mod_fcgid so i need to switch from fcgid to fastcgi, however it seems that Plesk 11.5 doesn't provide an easy way to do this.

so my question now is how can i change from fcgid to mod_fastcgi to allow shared memory to be used by opcode cache. I'm on Centos 5.9.

also i want to suggest to the Plesk team to add an option in future releases to allow this change easily
 
Back
Top