---
title: "How to Switch your Dedicated Server from suPHP to FastCGI"
description: "In this tutorial we will briefly go over how to switch your server from using suPHP to something else such as CGI, FastCGI, etc. This article already assumes that you have root access to your system...."
url: https://www.inmotionhosting.com/support/website/switch-suphp-to-fastcgi/
date: 2016-04-28
modified: 2021-11-19
author: "InMotion Hosting Contributor"
categories: ["Website"]
type: post
lang: en
---

# How to Switch your Dedicated Server from suPHP to FastCGI

![suPHP to FastCGI Hero Image](https://www.inmotionhosting.com/support/wp-content/uploads/2021/02/Switching-from-suPHP-to-FastCGI-1024x538.jpg)

In this tutorial we will briefly go over how to switch your server from using suPHP to something else such as CGI, FastCGI, etc. This article already assumes that you have [root access](/support/amp/obtain-root-access/) to your system.

**Note:** You must have [root access](/support/amp/obtain-root-access/) to your server to complete this guide. InMotion allows root access on all [VPS Hosting](https://www.inmotionhosting.com/vps-hosting) and [Dedicated Server](https://www.inmotionhosting.com/dedicated-servers) plans.

## Check current available configurations

1. [Log into your servers command line](/support/server/ssh/connect-ssh/) via the root user.  
2. Run the following red command to check what options are available on your server. /usr/local/cpanel/bin/rebuild_phpconf --currentAvailable handlers: suphp fcgi cgi noneDEFAULT PHP: 5PHP4 SAPI: nonePHP5 SAPI: suphpSUEXEC: enabledRUID2: not installed  

## Switch your server to FastCGI

1. Log into your servers command line via the root user.  
2. Run the following red command to change the system from suPHP to FastCGI. /usr/local/cpanel/bin/rebuild_phpconf 5 none fcgi enabled Setting I/O priority to reduce system load: best-effort: prio 6 Setting mailman archive permissions Continuing in the backgroundphp.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 PHP5LoadModule fcgid_module modules/mod_fcgid.soMaxRequestsPerProcess 500AddHandler fcgid-script .php5 .php4 .php .php3 .php2 .phtmlFcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php5FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php4FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .phpFcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php3FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .php2FcgidWrapper /usr/local/cpanel/cgi-sys/php5 .phtml # End of autogenerated PHP configuration. Updating user configurable PHP settings. recursion depth is set to: 2Restarting Apache  
3. Run the following red command to confirm the changes have been made. /usr/local/cpanel/bin/rebuild_phpconf --currentAvailable handlers: suphp fcgi cgi noneDEFAULT PHP: 5PHP4 SAPI: nonePHP5 SAPI: fcgiSUEXEC: enabledRUID2: not installed  
