cPanel HTTP Error 401 Fix

Hey,

From a long time i seen this kind of errors with many customers who are having cPanel installed .

So i thought to share its solution with everyone so that they can sort it out themselves .

1 . Login via root using putty or terminal .
2 . Follow the steps :-

[code]mv /usr/local/cpanel/base/3rdparty/Logaholic /usr/local/cpanel/base/3rdparty/Logaholic.bk[/code]

[code]/usr/local/cpanel/bin/update-logaholic –force[/code]

 

3 . Restart cPanel :-

 

[code]service cpanel restart[/code]

 

I hope the above will fix these HTTP 401 errors . Let me know if anyone need any assistance

Install NGINX on cPanel

If your looking for a free way to speed up for web server I’d suggest giving nginxcp a try. It acts as a super fast web server to serve up static content such as images and static html but passes php and other dynamic content back to Apache. This will speed up content and lower processor usage on your server.

This application adds all the correct settings into WHM and also adds an application into the WHM control panel so you can stop or start the service and also make configuration changes without having to drop to command line.

[code]cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller install[/code]

 

Note:
You may needed to run pythonfix script if you are installing it in first time.
As Its a major release so if you have previously installed the any version of the nginx, please uninstall and then perform the installation.

Uninstall Instructions:

 

[code]cd /usr/local/src
wget http://nginxcp.com/latest/nginxadmin.tar
tar xf nginxadmin.tar
cd publicnginx
./nginxinstaller uninstall
[/code]

Enable “Update now” link in AwStats on cPanel server

To enable the manual statistics update (“Update now” link) in Awstats, you should edit the following configuration file:

1. Open the following file:

tmp/awstats/awstats.yourdomain.com.conf (substitute yourdomain.com with your actual domain name)

2. Look for the following line:

AllowToUpdateStatsFromBrowser=0

Change the above value to 1:

AllowToUpdateStatsFromBrowser=1

3. Save your configuration file.

Enable Gzip compression on cPanel server

To enable gzip compression on cPanel server, mod_gzip.c or mod_deflate.c module should be installed on the server. You can check the loaded module via SSH. Login to you server and use the following command to check the loaded Apache modules:

/usr/local/apache/bin/httpd -l

If one of the module is installed on the server, you can enable gzip compression for an account by adding required code in .htaccess file. You need to add the following code into the .htaccess file to enable the gzip compression for the domain.

#compress all text & html:
AddOutputFilterByType DEFLATE text/html text/plain text/xml
<Files *.html>
SetOutputFilter DEFLATE
</Files>
Once you add above code, you can verify it from the following link:
http://www.gidnetwork.com/tools/gzip-test.php
The test result should show as follow:
Web page compressed? Yes
Compression type? gzip