Posts

Showing posts from August, 2018

Postfix mail server! How to send a test mail to test Postfix mail server?

Image
First install postfix dependencies required to send mail #apt-get install mailutils To send a test mail use following command #echo "This is the TEST mail." | mail -s "TEST MAIL - Please IGNORE" learn_share@gmail.com If Postfix configuration is correct, then you will receive a mail in your inbox. Sample screenshot.

Zebra Server in Koha failed! OPAC search always says "No results found" is the result of Zebra Server issue. Zebra Server in Koha failed to start the you cannot search for items in Koha System.

Image
First thing to look for during troubleshooting is: Go to About Koha and check if there is error message as shown in the image below. It means your Zebra Server is not running. To start the Zebra Server: 1. # koha-stop-zebra library          Note: library is the koha instance name 2. # koha-start-zebra library It should solve the OPAC search issue.

Solution to Moodle Error: Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. Either failed to read, or failed to write.

Image
Did you ever come across the following error when you try to access Moodle, "Coding error detected, it must be fixed by a programmer: Failed to unserialise data from file. Either failed to read, or failed to write." This usually happens when cache files are corrupted, one probable cause can be improper shutdown of Moodle system. Here is the solution to fix the issue. 1. Go to Moodle root directory     #cd /var/www/html/moodle   2. Run the command      #php admin/cli/purge_caches.php 3. Go to moodledata/cache directory   #cd /var/moodledata/cache    4. Remove the cache store directory, DO NOT remove of change the core_component.php file    # rm -rf cachestore_file/ 5. Refresh the Moodle Page. Its should work.

Max key length is 767! Getting ERROR 1071 (42000) at line 1127: Specified key was too long; max key length is 767 bytes while restoring mysql dump file?

This usually happens with Mariadb databases. To solve the issue create database with default utf i.e with  DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci. Then login into mysql: #mysql -u username -p And set the following settings: MariaDB [(none)]> SET GLOBAL innodb_file_format=Barracuda; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> SET GLOBAL innodb_large_prefix=on; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> SET GLOBAL innodb_file_per_table=on; Query OK, 0 rows affected (0.00 sec) MariaDB [(none)]> exit This should solve your issue.

Wordpress Admin Login! How to easily change the Wordpress default admin login URL ?

Image
We can achieve this by WP Hide & Security Enhance plugin. 1. Download and install WP Hide & Security Enhance plugin and activate it 2. Click on WP Hide -> Admin on you dashboard 3. In the wp-login.php tab, change the default wp-login.php to your choice file name e.g yoururlhere.php. Click YES to block the default url and Save the setting. 4. Next on the Admin URL tab, change the wp-admin to your dashboard. Then click YES to block the default and save it to block the default admin URL. 5. Now you can login with new admin login URL. 6. You are done.

Password Reset Link in Koha! How to enable Password Reset Link in Koha 17.11 and reset password via email in the OPAC ?

Image
Here is how you can enable the password reset link on Koha OPAC. All the patron must have a valid email address in the Koha system. Go to Administration -> Global System Preferences -> OPAC  -> Features and set   'OpacResetPassword' to 'allowed'   'OpacPasswordChange' to 'Allow' Refresh front page,  a 'Forgot your password?' link should show on the OPAC page. 3. Password_Reset Notice must be enable in the Notices and Slip Section. To do this go to:        Tools -> Notices and tools   and enable the PASSWORD_RESET notice 4. Now try the "Forgot your password?" by providing either the username or valid email addresses. If everything is set up correctly the you will receive a password reset link in your email inbox. 5. Click on the link to reset your password. Troubleshooting:  Invalid URL :  /cgi-bin/koha/opac-password-recovery.pl?uniqueKey=$JnesolaYk854oKESsoLya If you...