Sunday, November 25, 2012

I was getting the following error while loading Front Accounting :
"OpenSSL PHP extension have to be enabled to use extension repository system."
Nothing I tried seemed to work and yes, the openssl line in php.ini was uncommented.
If I put phpinfo() in a test.php and ran it, it showed me : OpenSSL support + disabled (install ext/openssl)

Finally I copied all the lib*.dll files from PHP folder to the \windows\system32 folder on my Win XP PC. That did the trick!

Friday, November 23, 2012

Cannot send session cache limiter - headers already sent

If you are getting an error which looks like :

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at
or an error which looks like this :

Cannot modify header information - headers already sent by (output started at
do the following:
Open php.ini from your php folder and change
output_buffering=off to output_buffering=4096
Then restart your Apache server.

The problem gets eliminated.

Wednesday, March 7, 2012

Automating Task on Linux

If you have been looking for a way to Automate a task on Linux, then this is the place for you. We used this in a bid to Automate SquirrelMail Backup on Ubuntu 9.04

Open /etc/crontab and add the following line in it:
50 08 * * * root /bak
This indicates that the executabe file named bak in / will run everyday at 08:50 am
we created the /bak file to backup IMAP folders in SquirrelMail on Ubuntu 9.04

To learn how to schedule a task in Windows, click here.

Schedule a task on Windows

If you are looking to Schedule a task on Windows or automate a task on Windows then you have indeed come to the right place. Read on...
We tried this on Windows XP with SP2:

Click on Start button
Click on All Programs
Click on Accessories
Click on System Tools
Click on Scheduled Tasks
Click on File
Click on New
Click on Scheduled Task
Name it what you want to.
Double click on it.
Click on Browse and select the program yo would like to run; in our case it was the batch file that we created here to copy a file from Linux to Windows.
Click on the Schedule tab and schedule task as per your needs.
I used Daily. Set the start time as per your requirement.
This will automatically carry out the task for you at the predefined time. This way I am able to automatically get the file copied from Ubuntu 9.04 to Windows. Only make sure the WIN XP is on at the predefined time.
If you might be interested in learning how to copy a file from Windows to Linux, read about it here.


I found this solution in a bid to Backup SquirrelMail on Ubuntu 9.04. If you want to learn how to automate a task on Linux, check it out here.

Automating SquirrelMail Backup on Ubuntu 9.04

If you are looking to automate SquirrelMail Backup on Ubuntu 9.04 or on any other flavor of Linux for that matter, read on...

Create a file called bak with the following contents and chmod 744 bak to make it executable.
rm  /backup/*.zip
rm -rf /backup/user_name
/usr/local/imap_tools/imapdump.pl  -f /backup/user_name -S localhost/user_name@your_domain/user_password
zip -r /backup/user_name_`date '+%d%m%Y'` /backup/user_name/.


The first line will delete any zipped files existing in the backup folder called backup in this case.

The second line will delete the backup of the IMAP folders that already exist from last time's backup. This is important since if the user had 20 emails in the last backup and he has thereafter deleted 5 emails that he does not require, the numbers get moved up and he will have 15 emails backed up numbering from 1 to 15 which will overwrite the emails numbered 1 to 15 from the previous backup. But the numbers 16 to 20 will still exist giving the user emails that he did not want and had deleted in case you want to restore SquirrelMail backup. Hence the deletion of the entire tree structure. The command rm -rf foldername removes the entire directory tree with all its files and subfolders and files.It is the Linux equivalent of deltree on DOS.

The third line backs up the IMAP folders of user user_name with password user_password on domain your_domain, storing it in folder /backup/user_name.

The fourth line zips the folder contents with subfolders and files creating a file with the username followed by date in DDMMYY format.

Learn how to copy a file from Linux to Windows here.