Author Archive

Horde session issue

There is a very common  issue where Horde prevents access to webmail by repeatedly redirecting viewers to Language Selection screen. The following commands, executed as root, will solve these issues: root@server[~]#/usr/local/cpanel/bin/checkperlmodules root@server[~]#/scripts/fullhordereset root@server[~]#myisamchk -r /var/lib/mysql/horde/horde_sessionhandler.MYI If still you have problem then check the ownership for session directory present in/var/cpanel/userhomes/cpanelhorde directory. root@server[~]#ll /var/cpanel/userhomes/cpanelhorde drwx–x–x 4 cpanelhorde cpanelhorde […]

How to set E-mail size in exim?

First Method :- You can set the E-mail size limit from your WHM. First login into WHM Second select “Exim Configuration Editor”  present unde ” Service Configuration” section. Third scroll down and  click on  “Advanced Editor” optoin. You will see  the empty box (remember select first empty box) where you can type  (right underneath where […]

SERVICE CURRENTLY NOT AVAILABLE Error No. [0x01F4] – RoundCube

Mostly we received following error aftre browsing RoundCube SERVICE CURRENTLY NOT AVAILABLE Error No. [0x01F4] – RoundCube As well as RoundCube error logs showing following logs [06-Oct-2008 08:34:56 -0400] DB Error: _doQuery: [Error message: Could not execute statement] [Last executed query: PREPARE MDB2_STATEMENT_mysql_8c77e0752a8db2da365c3c7a19fe8842c84663aa7 FROM ‘INSERT INTO messages\n         (user_id, del, cache_key, created, idx, uid, subject, […]

Critical: exim security update

To resolve exim vulnerability issue exim upgraded to latest version but its throwing following error message aftre restarting exim service. root@server [/tmp]# /etc/init.d/exim restart Shutting down exim:                                        [  OK  ] Shutting down spamd:                                       [FAILED] Starting exim:                                             [  OK  ] Starting exim alt spool: exim: -D is not available in this Exim binary [FAILED] To resolve above […]

Send an E-mail from server.

Basically to send an E-mail from the Linux server shell, the mailx module is required. First install the mailx module by usiung the yum installed. Login in to the server as a root user and follow the following steps one by one root@server[~]# yum install mailx Once mailx installed on the server, you cna use […]

Redirect code from http to https by using .htaccess?

Your can redirect all http (Non-secure) URL to https by using following code in .htaccess file. RewriteEngine on Options +FollowSymLinks RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R]  

How to parse php pages in html page?

You can use following code in .htaccess file to parse php pages in html pages RemoveHandler .html .htm AddType application/x-httpd-php .php .htm .html To can check above code is working ir not? by creating one test page with following code root@gunjan[~]#pico test.html < html> < head> < body> < h1> < ?php echo “WORKING FINE!”; […]

How to stop forum get injected from hackers?

n now a days its very easy to inject any forum.You can secure your forum by using following code in your .htaccess #spam bots SetEnvIfNoCase User-Agent “^EmailSiphon” bad_bot SetEnvIfNoCase User-Agent “^EmailWolf” bad_bot SetEnvIfNoCase User-Agent “^ExtractorPro” bad_bot SetEnvIfNoCase User-Agent “^CherryPicker” bad_bot SetEnvIfNoCase User-Agent “^NICErsPRO” bad_bot SetEnvIfNoCase User-Agent “^Teleport” bad_bot SetEnvIfNoCase User-Agent “^EmailCollector” bad_bot #plagarism bot SetEnvIfNoCase […]

DNS cache problem on local machine

DNS cache is most common problem in now a days and largely its create difficulty to web developer and technician who are working to solve the web issue.You can clear the cache from your local machine bu using following commands on your local machine as per your local machine operating system. 1) For Windows – […]

Maximum file limit reach while starting Apache?

Maximum file limit reach error is occur while we are starting the Apache server at that time you can fix the issue by using root login details. root@gunjan[~]#pico /etc/sysctl.conf Add following line as fs.file-max = 22992 Save and exit from the file. You need to run following command from shell to active changes. root@gunjan[~]#sysctl -p […]