Move out Joomla installation from public_html/ folder

cd your public_html/ and create OLD_JOOMLA/ folder

mkdir OLD_JOOMLA/

This will move Joomla's files/folders into the OLD_JOOMLA/ folder

mv web.config.txt tmp/ templates/ robots.txt README.txt plugins/ modules/ media/ logs/ LICENSE.txt libraries/ layouts/ language/ index.php includes/ images/ htaccess.txt .htaccess error_log .htaccess  docs/ configuration.php
Read the rest

How to remove missed module

Probably you got error/warning The following module is missing from the file system, No such folder/file

To get list of installed modules

drush pm-list

Drupal 7 using Drush:

drush sql-query "DELETE from system where name = 'old_module1' AND type = 'module';"

Once done clear cache:

drush cc all

Drupal 8 using Drush:

drush sql-query "DELETE FROM key_value WHERE collection='system.schema'
Read the rest

How to fix RoundCube’s error: DATABASE ERROR: CONNECTION FAILED!

Mysql server and InnoDB engine must to be running!

Check mysql connection:

cat /usr/local/cpanel/base/3rdparty/roundcube/config/config.inc.php |grep mysql:
$config['db_dsnw'] = 'mysql://roundcube:[email protected](/var/lib/mysql/mysql.sock)/roundcube';
mysql -u roundcube -p
show tables;

All tables should be in place:

+---------------------+
| Tables_in_roundcube |
+---------------------+
| cache               |
| cache_index         |
| cache_messages      |
| cache_shared        |
| cache_thread        |
| contactgroupmembers |
| contactgroups       |
| contacts            |
| cp_schema_version   |
| dictionary          |
| identities          |
| searches            |
| session             |
| system              |
| users               |
+---------------------+
15 rows in set (0.00 sec)

Cpanel keeps roundcube backups here:

/var/cpanel/roundcube

Go ahead and drop broken database

mysqladmin drop roundcube

Rebuild roundcube using the following two commands:

rpm -e --nodeps cpanel-roundcubemail

/usr/local/cpanel/scripts/check_cpanel_rpms --fix

Database roundcube should be recreated automatically.
Read the rest

How to install ClamAV (clamscan) via command line

Install EPEL repos:

yum install epel-release -y

Install ClamAV packages:

yum install clamav -y

Update ClamAV's signatures:

/usr/bin/freshclam

Or

Downloading stable version from https://www.clamav.net/downloads

cd /usr/local/src
wget https://www.clamav.net/downloads/production/clamav-0.100.1.tar.gz
tar xvzf clamav-0.100.1.tar.gz
cd clamav-0.100.1
./configure --sysconfdir=/var/lib/clamav --exec_prefix=/usr/bin
make && make install
Read the rest