What is difference between the suPHP and FCGI? Which should be preferred for the installation on Linux server?
Collapse
Announcement
Collapse
No announcement yet.
suphp and FCGI
Collapse
X
-
suPHP is program for executing php scripts with the permissions of their respective owners, Apache web server consists of module called mod_suphp which is used to change the uid of the process executing PHP. You can say from security point of view suphp is safe and traditionally being used on cpanel servers.
As you know php scripts can be executed as CGI which was traditional way earlier on web servers, However FastCGI application code is executed separately from the web server via a communication socket. Hence the execution is faster and improved performance. FCGI allows more improved security as PHP code execution is completely isolated from the web server. In Plesk servers you can see FCGI as default php handler. The disadvantage here is you can use php directives in .htaccess files, that is where you can add custom php.ini file for the user.
Hope this helps.
- Likes 1
Comment