Hi,
I want to run PHP as cgi in my redhat 7.3.
I have noticed, in Windows, that running php as cgi is much quicker for large file uploads.
However, I don't know how to do this in Linux.
Can anyone help me or provide any useful links?
Thanks
The php manual has installation as cgi documented quite well.
The only problem with running PHP as a CGI, is that its not as secure as when running as a module.
Another problem is that there is a startup cost for running the interpreter everytime the script needs to be processed. If it is an Apache module, PHP is loaded in memory already and begins immediately compiling the script.
This is actually why a lot of people had switched from Perl to PHP. While there is mod_perl - it is VERY buggy and is full of memory leaks.