InMotion Hosting Support Center
http://www.inmotionhosting.com/support/product-guides/dedicated-hosting/how-to-request-root-access-to-your-dedicated-server

Note that you will need root access in order to use these directions.

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.

Check current available configurations

  1. Log into your servers command line 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 --current
    Available handlers: suphp fcgi cgi none
    DEFAULT PHP: 5
    PHP4 SAPI: none
    PHP5 SAPI: suphp
    SUEXEC: enabled
    RUID2: 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
    [/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
    LoadModule fcgid_module modules/mod_fcgid.so
    MaxRequestsPerProcess 500
    AddHandler fcgid-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. Run the following red command to confirm the changes have been made.
    /usr/local/cpanel/bin/rebuild_phpconf --current
    Available handlers: suphp fcgi cgi none
    DEFAULT PHP: 5
    PHP4 SAPI: none
    PHP5 SAPI: fcgi
    SUEXEC: enabled
    RUID2: not installed

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Social Media Login

   
Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2017-02-04 4:58 am

Can fcgi (FastCGI) be installed be installed on VPS servers?

Staff
13,821 Points
2017-02-06 8:39 am
It depends on the version of EasyApache you are running. EasyApache 4 does not support FastCGI. I'd suggest reaching out to Support to see if they can determine what you will need to do to run FastCGI.
n/a Points
2017-02-09 1:18 am

Thanks Tim. Always appreciating you folks. VPS2000, with EA4. I've since enabled FPM and OPcache is now working. Looks like I'm good to go now - I hope :)

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

3 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!