NixUser

NixUser.com | Unix User | Linux User | NixUser

July, 2017

force https 301 redirect using htaccess

  To force your website with SSL using htaccess and mod_rewrite, use the following rule in the website’s .htaccess. RewriteEngine On RewriteCond %{HTTP_HOST} ^yourwebsite\.com [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://yourwebsite.com/$1 [R=301,L] If it’s a subdomain, use this. RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} sub RewriteRule ^(.*)$ https://yourwebsite.com/sub/$1 [R=301,L] Note: Replace yourwebsite.com with the More

cPanel backup error mysqldump: Got error: 1049: Unknown database when selecting the database

  Sometimes cPanel full backup fails with the following error. Storing mysql dbs…mydatabase……… /usr/bin/mysqlcheck: Got error: 1049: Unknown database ‘mydatabase’ when selecting the database (755 bytes) mydatabase_db(1031138 bytes) mydatabase_tab Check in cPanel that if you have any 0kb or empty database by the database name in error message. If you have it, delete it from More

Install fann PHP extension

To install fann extension in php, make sure that libfann (development version) is installed on your system. If it is not installed, you can install it using yum or apt-get depending on your distro. $ yum install fann-devel Or in Ubnuntu: $ sudo apt-get install libfann-dev This extension is available on PECL. The installation is More

How to Archive Emails in Roundcube

You can make use of the Archive plugin in Roundcube to archive old emails. If Roundcube has the Archive plugin installed, a button labelled Archive will appear in the toolbar. This button moves the selected message(s) to the archive folder with one single click. You can configure how the archive folder is organized and divided More