Aug
02
2010

PHP: ‘Fatal error: Allowed memory size of 8388608 bytes exhausted’

Reason why you see this message is due to PHP memory leakage. PHP is trying to load a large image or file into memory and is not finding enough space for it to load.

If you think, that you will need the necessary feature to upload large files then there are two ways by which you can enable this feature.

i) Edit the physical file and have the line
ini_set(“memory_limit”,”20M”);

ii) Edit php.ini and add the following line. You need to restart the apache/IIS server once php.ini file is modified.
memory_limit=32M

  • Share/Save/Bookmark

Jul
20
2010

Any Video Converter: Free Software

Available for FREE, Any Video Converter converts almost all file formats in short period of time. It makes the video available for view in PSP, smart phones and MP4 player

You can download the free version at http://www.any-video-converter.com/products/for_video_free/

Input formats:
avi, asf, mov, rm, rmvb, flv, mkv, mpg, 3gp, m4v, vob, YouTube videos

Output formats:
avi, mp4, wmv, swf, flv, mkv, MPEG-1 and MPEG-2, mpg (PAL or NTSC), mp3, wma, ogg, aac, wave, m4a

  • Share/Save/Bookmark


Jun
05
2010

Beginner: Why there are many Linux Distributions?

There are different variants of Linux in the market like RedHat, Debian, CentOS, Ubuntu, Mandrake, Suse and a Linux beginner often ponder why they call Linux distributions by various names. The kernel or the heart of all the distributions is Linux and in bringing it to different market usage different community or vendors have adopted the kernel to serve that purpose.
(Read more…)

  • Share/Save/Bookmark

May
20
2010

MySQL GUI tool for Data Management

HeidiSQL - a comprehensive tool for MySQL management which is available for Free.

Manage data tables, export/import databases, synchronise tables between databases, integrity check, database backup service management, edit database content and many more features packaged as a solution for ALL your MySQL needs.

This runs on windows platforms – WinXP/XP7 and you can download HeidiSQL from Download link
(Read more…)

  • Share/Save/Bookmark

May
16
2010

Asterisk for Beginner: IAX Server configuration settings

In the first article on Asterisk, we have seen the Asterisk installation steps and on the environment setup. In this article, we have give the configuration settings for two files iax.conf and extensions.conf which will be used to direct/receive calls from/to iax2 soft clients
(Read more…)

  • Share/Save/Bookmark

May
14
2010

Asterisk Error messages

Asterisk Error: Failed to open dev dahdi transcode
> Edit /etc/asterisk/modules.conf and add the line “noload => codec_dahdi.so”

Asterisk Error: No music on hold classes configured disabling music on hold
> Edit /etc/asterisk/modules.conf and make changes not to include res_musiconhold.c by setting “noload => res_musiconhold”

  • Share/Save/Bookmark

May
12
2010

Unable to connect to remote asterisk (check if /var/run/asterisk/asterisk.ctl exist?)

- Check if asterisk.ctl exists
$ touch /var/run/asterisk/asterisk.ctl
$ chmod 777 asterisk.ctl

- Check if asterisk is running
$ /etc/init.d/asterisk restart
$ asterisk -r

  • Share/Save/Bookmark

May
10
2010

ASTERISK Configuration: for beginners

This will be a simple step by step tutorial to help beginners catch up with ASTERISK – an open source tool for voice communication. It is a software installation of PBX connecting even the PSTN and VOIP networks.

Originally developed for Linux, Asterisk now runs on a variety of operating systems including Solaris, Windows and MacOS.

Environment setup

(Read more…)

  • Share/Save/Bookmark

May
05
2010

How to move the SSL certificates?

Migrating SSL certificates: CPanel, WHM

Possible Scenarios
i) Server load balancing
ii) Moving web sites between servers

Find where the SSL certificates, private keys are installed in the old server and gzip the certs
$ tar -zxcf /tmp/crt.tar.gz /etc/ssl/certs
$ tar -zxcf /tmp/priv.tar.gz /etc/ssl/private

In the new server, extract the certificates and keys to its respective folder location. Edit httpd.conf file and add the following lines

SSLEngine on
SSLCertificateFile /etc/ssl/certs/example.com.crt
SSLCertificateKeyFile /etc/ssl/private/example.com.key
SSLCACertificateFile /etc/ssl/certs/example.com.cabundle
CustomLog /usr/local/apache/domlogs/exampleuser-ssl_log combined

Sample virtual host configuration setting

<VirtualHost xxx.xxx.xxx.xxx:443>
    ServerName subdomain.example.com
    ServerAlias www.subdomain.example.com
    DocumentRoot /home/emaple/public_html
    ScriptAlias /cgi-bin/ /home/example/public_html/cgi-bin/
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/example.com.crt
    SSLCertificateKeyFile /etc/ssl/private/example.com.key
   SSLCACertificateFile /etc/ssl/certs/example.com.cabundle
  CustomLog /usr/local/apache/domlogs/exampleuser-ssl_log combined
    SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
    <Directory "/home/example.com/public_html/cgi-bin">
        SSLOptions +StdEnvVars
    </Directory>

    # To customize this VirtualHost use an include file at the following location
    # Include "/usr/local/apache/conf/userdata/ssl/2/exampleuser/example.com/*.conf"
</VirtualHost>

Restart apache
$ /etc/init.d/httpd restart
(or)
$ /sbin/service httpd restart

Note: Once moving the SSL certificates to the new server, you can also use WHM or CPanel to configure the certs.

  • Share/Save/Bookmark