Archive for August, 2010

SBDavid

Enabling or disabling SuExec in WHM

Enabling or disabling SuExec in WHM

SuExec is an Apache feature that gives users the ability to run CGI and SSI programs using user IDs that are different from the user ID of the calling web server. This effectively means that CGI and SSI programs will not have access to the root account or have root permissions.

To enable or disable SuExec:

1.Click on the Enable/Disable SuExec link in the Server Setup menu.
2.Click on the Enable button to enable SuExec or click on the Disable button to disable SuExec.

suEXEC is based on a setuid “wrapper” program that is called by the main Apache web server. This wrapper is called when an HTTP request is made for a CGI or SSI program that the administrator has designated to run as a userid other than that of the main server. When such a request is made, Apache provides the suEXEC wrapper with the program’s name and the user and group IDs under which the program is to execute.

SBDavid

Rolling back files in WHM

Rolling back files in WHM

WebHost Manager automatically saves a backup version of the following three files whenever they are changed:

*httpd.conf
*named.conf
*proftpd.conf or pure-ftpd.conf

You can revert to any of the previously saved versions whenever required. The restored version becomes the latest version, and does not delete other versions.

To roll back a file:

Please select a file to rollback:

Click on the Configuration File Rollback link in the Backup menu.

Click on the Back button button to review previous versions. As you change files, the Date field will update and the display area will update with the contents of the different file.
Click on the Restore button to roll back to the displayed version of the file.

Changing a certificate in WebHost Manager

WebHost Manager enables you to change your CPanel and WebHost Manager certificate automatically, without having to manually find and replace the certificate files.

Note: The CPanel certificate is used in the https://www.yourdomain.com:2083 address and the WebHost Manager certificate is used in the https://www.yourdomain.com:2087 address.

To change a certificate:

1.Click on the Change CPanel/WHM Certificate link in the SSL/TLS menu.
2.Enter the domain for the certificate in the Domain this CRT is for field.
3.Click on the Fetch button to paste the .key and .crt files for the domain into the available display spaces, if they are currently on your server. Otherwise, copy and paste the .key and .crt files into the available display areas.

Note: If you generated the certificate using WebHost Manager, the certificate files will be available.

SBDavid

Apache mod_userdir Tweak in WHM

Apache mod_userdir Tweak in WHM

mod_userdir Protection

Apache’s mod_userdir allows users to view their sites by entering a tilde(~) and their username as the uri on a specific host.

For example http://test.serverbuddies.com/~bud/ will bring up the user bud’s domain.

The disadvantage of this feature is that any bandwidth usage used by this site will be put on the domain it is accessed under (in this case test.serverbuddies.com). mod_userdir protection prevents this from happening.

We can disable it on specific virtual hosts (generally shared ssl hosts).

Main >> Security Center >> Apache mod_userdir Tweak
SBDavid

Repairing MySQL database form WHM

Repairing MySQL database form WHM.

You can attempt to repair MySQL databases using WebHost Manager.

Then function checks each table for errors and tempts to fix them.

To repair a database:

Click on the Repair a Database link in the MySQL menu.
Click on the database that you want to repair in the displayed list and click on the Repair Database button.

A status list is displayed, stating which tables have been checked and the result.

Next »