Pages

Welcome to My Blog

This is to share my IT experience with friends all around the world.
I have been working in Linux Fedora Systems for more than 8 years. Its fun to share knowledge and learn..
As everyone knows when a problem arises in your systems "googling" is the way that many depend on..

All the posts here are my working experiences during my working life.. So you can count on it..

I have added the references where I got help in solving IT issues


Friday, August 8, 2014

Issue with Roundcube when sending Mails

Today we encountered a strange issue after reboot the server running roundcube webmail application. I was able to login to the webmail application over the network, read mails (I received mails) BUT was not able to send mails. The message says nothing but

'could not send mail. Please wait 76531921 seconds'.

I was clueless as the server had no issue with connecting to sendmail server, web server. No issues were detected in SELinux/iptables/network etc.All the services were OK.

Finally we checked the date and time of the server and found the date had reset to past data in 2012... This had confused the webmail service when the users try to send mails.

After reset the data to current settings, all went OK.

ntpdate -u <ntpserverip>

Moral:
There could be a totally strange reason for an issue. You need to check all possibilities without get panic.

Friday, May 16, 2014

Display Time in Horde IMP

I have faced the issue of displaying date/time in Horde IMP mail client in several occasions. I have rectified those issues but failed to post it in my blog.

OK, today I had the same issue with Horde Groupware 5.1.4 IMP mail client. It displayed a wrong time for the mail arrival time.


As Horde uses PHP functions for time variable settings, the time zone setting in php.ini should be corrected according to your standard time zone.

[Date]
; Defines the default timezone used by the date functions
; http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone
date.timezone ="Asia/Colombo"

Replace "Asia/Colombo" with your preferred time zone, and horde will display the correct mail arrival times accordingly.

Thursday, October 3, 2013

PHP Warning: date(): It is not safe - PHP Warning

I got this warning whenever my site was accessed. It is just a warning but error log is filled.I searched in the Internet and identified it can be simply rectified by changing the configurations at php.ini

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
;date.timezone =

By default it was commented and I have set to my time zone as follows

date.timezone = Asia/Colombo

The correct time zone values relevant to your location are listed here
http://www.php.net/manual/en/timezones.php

Good Reference
http://www.php.net/manual/en/timezones.php