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. PrestamosRapidos April 12, 2022 at 8:06 am - Reply
    Your comment is awaiting moderation.

    Solicitar Prestamo Por Internet Personas Que Prestan Dinero A Redito Credito A Clientes Como Se Pide El Prestamo En Personal Prestamos Pequenos En Linea

    https://prestamospersonales.space/

    Donde Te Prestan Dinero Mas Rapido Como Calcular Un Credito Personal Simulador De Credito Online Mejores Prestamos En Linea Companias De Prestamos Personales Donde Solicitar Prestamos Personales Mas Prestamos

    prestamo de dinero facil
    PrГ©stamo de dinero urgente en Savage MN
    CrГ©ditos rГЎpidos en Bay City MI

    Prestamos Dinero Rapido Interes Credito Personal Necesito Un Credito Como Pedir Prestamo A Personal Te Presto Dinero Financieras Para Prestamos Personales Te Presto

  2. PrestamosRapidos April 26, 2022 at 9:22 am - Reply
    Your comment is awaiting moderation.

    Como Pedir Un Prestamo Donde Pedir Un Credito Rapido Simulador Prestamos Entidades De Credito Prestamos Para Autonomos Prestamos Rapidos Y Seguros

    https://prestamosenusa.space/

    Prestamos Con Dni Mini Creditos A Plazos Creditos De Dinero Prestamos Rapidos A Plazos Para Prestamos Personales Lugares Donde Hagan Prestamos Dineo Credito Como Tener Un Prestamo Rapido Como Se Calcula Un Prestamo Personal Simulador Credito Online

    PrГ©stamos de dinero en Sanger CA
    PrГ©stamos de dinero en Imperial CA
    PrГ©stamos de dinero en Brownsville TX

    Simulador Prestamos Personales Online Prestamos A Largo Plazo Comparador Creditos Personales Como Dinero Rapido Lugares De Prestamos De Dinero

  3. Prestamos De Internet May 1, 2022 at 6:57 am - Reply
    Your comment is awaiting moderation.

    Como Pedir Un Prestamo Rapido Simulador De Prestamos Creditos Online A Plazos Mejores Condiciones Prestamo Personal Como Consigo Un Prestamo Rapido Interes Para Prestamos Personales Solicitud De Prestamo Personal Simulador De Credito De Nomina Prestamos Todo Facil Creditos Urgentes En Linea

    https://prestamosdedinerorapido.space/prestamosdedinero/santa-clarita-ca/

    Como Hacer Un Prestamo Personal Credito Facil Rapido Online Creditos Rapidos Online Tipos De Creditos Personales Creditos Rapidos Por Telefono Calculo De Intereses Prestamo Personal Prestamos Sencillos Prestamos Express En Linea

Leave A Comment