Could not connect db error…[cPanel]

1. Goto cpanel of the account—>phpMyAdmin

2. Add New User

3. Add User To Database

4. Goto to the path mentioned in the error link.

5. root@true [/home/testuser/public_html]# grep -ilr “testuser_” *

Admin/error_log
Admin/includes/dbconfiguration.php
assurance/error_log
communications/error_log
company/error_log
contact/error_log
error_log
home/error_log
marine/error_log
supply/error_log

root@true [/home/testuser/public_html]# cd Admin/includes/
root@true [/home/testuser/public_html/Admin/includes]# ll

6. root@true [/home/testuser/public_html/Admin/includes]# vi dbconfiguration.php

Change them to the ones you created in cpanel
$host = 'localhost';
$username = 'testuser_admin';
$password = 'admin12';

7. root@true [/home/testuser/public_html/Admin/includes]# scp dbconfiguration.php old_db

8. Try now.

Can’t execute command ‘/usr/local/cpanel/bin/sendmail_cpanel -i -t -f in squirrelmail

SquirrelMail is a standards-based webmail package written in PHP. It includes built-in pure PHP support for the IMAP and SMTP protocols, and all pages render in pure HTML 4.0 (with no JavaScript required) for maximum compatibility across browsers. It has very few requirements and is very easy to configure and install.
A cPanel offers SquirrelMail by default but sometimes you get following error while accessing SquirrelMail.

Can't execute command '/usr/local/cpanel/bin/sendmail_cpanel -i -t -f in squirrelmail

First SSH into your server and run :-

/scripts/fixeverything
/scripts/upcp --force
/scripts/eximup --force

if that does not fix the issue run the following commands:-

cd /usr/sbin
mv sendmail sendmail.157979
ln -s /usr/sbin/exim /usr/sbin/sendmail
mv /etc/eximmailtrap /etc/eximmailtrap.157979

/scripts/eximup --force
/scripts/mailscannerupdate --force
/scripts/buildeximconf
service exim restart

Awstat icon not displaying in cPanel.

AWStats is an acronym for Advanced Web Statistics. It displays traffic statistics to your website in other words who is accessing your website, from what part, how many visits exactly similar to google analytics. The information is displayed in graphs and tables, and divided into monthly, daily, and hourly averages.

In order to access AWStats from the cPanel, you are provided with an icon in your cPanel interface.

But sometimes what happens an icon for the awstat is missing from your cPanel. This problem can not be fixed right from your cPanel interface and you need to have a root access to the server to execute following command.

/scripts/runweblogs username

1 72 73 74 75 76