How to Enable DSO

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

This tutorial will explain how to enable DSO + Mod RUID2 after it has been installed. This guide requires that you are logged into the command line interface with your root user.

Check to make sure DSO is available and RUID2 is enabled

  1. Log into your servers command line via the root user.
  2. Run the following red command make sure everything is installed correctly.
    root@dedicated [~]# /usr/local/cpanel/bin/rebuild_phpconf –current
    Available handlers: suphp dso cgi none
    DEFAULT PHP: 5
    PHP4 SAPI: none
    PHP5 SAPI: suphp
    SUEXEC: enabled
    RUID2: enabled

Switch your server to DSO

  1. Log into your servers command line via the root user.
  2. Run the following red command to change the system from your current configuration to DSO.
    root@dedicated [~]# /usr/local/cpanel/bin/rebuild_phpconf 5 none dso disabled
    [/usr/local/cpanel/scripts/set_mailman_archive_perms] Setting I/O priority to reduce system load: none: prio 4
    [/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.

    # Disable Suexec in all virtualhosts
    LoadModule disable_suexec_module modules/mod_disable_suexec.so

    # LibPHP5 configuration
    LoadModule php5_module modules/libphp5.so
    AddType application/x-httpd-php .php5 .php4 .php .php3 .php2 .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.
    root@dedicated [~]# /usr/local/cpanel/bin/rebuild_phpconf –current
    Available handlers: suphp dso cgi none
    DEFAULT PHP: 5
    PHP4 SAPI: none
    PHP5 SAPI: dso
    SUEXEC: not installed
    RUID2: enabled

Congratulations, now you know how to enable DSO on your Dedicated server.

Leave a Reply