fbpx

How to Switch your Dedicated Server from suPHP to FastCGI

What is suPHP?

Switching from suPHP to fastCGI is easy. suPHP is a programme that regulates who can access particular files or a tool for executing PHP scripts with the permissions of their owners. All scripts that run on the server must be granted permission to do so. This allows them to add code to the URL and manipulate the file as needed.

What is fastCGI?

FastCGI is a programming interface that can speed up Web applications that use the common gateway interface, which is the most common way for a Web server to call an application (CGI).FastCGI always focuses on reducing the overhead associated with web server-to-CGI application communication, allowing a server to handle more web page requests per unit of time.

It has been necessary to switch your dedicated server from suPHP to FastCGI. Let us look into this tutorial for the instructions about switching.

This instruction is for switching your server from suPHP to CGI, FASTCGI, etc. root access is needed for this tutorial.

Note: webnexs grants root access to all VPS Hosting and Dedicated hosting plans.

Check current available configurations

  1. Sign in as the root user into your servers command line.
  2. Use the below red command to find out the options available on your server.

/usr/local/cpanel/bin/rebuild_phpconf –current
Available handlers: suphpfcgicgi none
DEFAULT PHP: 5
PHP4 SAPI: none
PHP5 SAPI: suphp
SUEXEC: enabled
RUID2: not installed

Switch your server to FastCGI

  1. Sign in as the root user into your servers command line.
  2. Use the below red command to change your system to FastCGI from SuPHP.

/usr/local/cpanel/bin/rebuild_phpconf 5 none fcgienabled
[/usr/local/cpanel/scripts/set_mailman_archive_perms] Setting I/O priority to reduce system load: best-effort: prio 6
[/usr/local/cpanel/scripts/set_mailman_archive_perms] Setting mailman archive permissions
[/usr/local/cpanel/scripts/set_mailman_archive_perms] Continuing in the background
php.conf updated to:

# This file was automatically generated by the Cpanel PHP Configuration system
# If you wish to change the way PHP is being handled by Apache on your system,
# use the /usr/local/cpanel/bin/rebuild_phpconf script or the WHM interface.
# Manual edits of this file will be lost when Apache is updated.

# Fastcgi configuration for PHP5
LoadModulefcgid_module modules/mod_fcgid.so
MaxRequestsPerProcess 500
AddHandlerfcgid-script .php5 .php4 .php .php3 .php2 .phtml
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php5
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php4
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php3
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php2
FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .phtml

# End of autogenerated PHP configuration.

Updating user configurable PHP settings.
[info]recursion depth is set to: 2
Restarting Apache

3. Use the below red command to confirm the changes.

/usr/local/cpanel/bin/rebuild_phpconf –current
Available handlers: suphpfcgicgi none
DEFAULT PHP: 5
PHP4 SAPI: none
PHP5 SAPI: fcgi
SUEXEC: enabled
RUID2: not installed

No Comments

  1. Achat Du Solupred April 7, 2022 at 12:07 pm - Reply
    Your comment is awaiting moderation.

    Ordonnance en ligne vente du escompte de, pharmacie suisse prescription. Cialis au rabais, cialis femelle, Lifestylebarcelona Pharmacie en. Viagra sur le net et generique Cialis au meilleur site pour homme.Qualite. En canada ordonnance ligne, pour generique levitra cialis pfizer oщ acheter. solupred 5 mg prix Europecheapmeds.org, Viagra et cialis en ligne livraison rapide.Acheter du. Acheter viagra pilule, achat generique vente libre.Prix tadalafil 5mg pillule. Universities.She had used Viagra in his bumbling, I want to genital.

Leave A Comment