Archive for December 2009

solved IPN link issue in virtuemart on GoDaddy shared linux hosting

December 14, 2009

Whenever seller accepts a payment, IPN link was not updating the status of the order in virtuemart.

The project is hosted on Godaddy’s shared linux hosting.

Shared linux hosting gives us php.ini file.

In that “set allow_url_fopen = on “.

By default it is off.

Advertisements

solved cron job setting on GoDaddy shared linux hosting

December 14, 2009

I was struggling with setting the cron job for php script on GoDaddy hosting server.

The example which GoDaddy gives to set the path of the cron job script is as follows:

/web/cgi-bin/php5 “$HOME/html/cron/yourscript.php”

But unfortunately, the above example does not work.

To make it work, remove “5” from php5 and remove the double quotes as follows:

/web/cgi-bin/php $HOME/html/cron/yourscript.php

Co-Founder of WordPress

December 9, 2009

Thanks to Matt Mullenweg, Co-Founder WordPress, for providing wordpress blogging patform.

How to display wordpress posts in Facebook

December 7, 2009

I came across 2 ways for displaying wordpress posts in the wall section of facebook.

A) 1) Displaying posts in wall of Profile section:

go to Settings > Application Settings

Click on Notes

Click on Import Blog link in Notes settings on Right side

Enter a website or RSS/Atom feed address in Web URL field

Click on Start Importing

Click on Confirm Import

The posts from the wordpress will be displayed on wall section in face book.

2) Displaying posts  in wall of a particular page

Click on Edit Page

Click on Edit link in Notes

Click on Import Blog link in Notes settings on Right side

Enter a website or RSS/Atom feed address in  Web URL field

Click on Start Importing

Click on Confirm Import

B) Add an application named Social RSS

Using this application, you can pull the wordpress posts to the wall and boxes section.

Path of the important configuration files in Linux

December 2, 2009

Apache:

/etc/httpd/conf/httpd.conf – apache configuration file

/var/log/httpd/error_log – apache error log file

/etc/hosts – host configuration file of apache

PHP

/etc/php.ini – php configuration file

MYSQL

/etc/my.cnf – mysql database server configuration file

Nginx

/etc/nginx/nginx.conf

/var/log/nginx/error.log

How to start MYSQL database server in Linux

December 2, 2009

/etc/init.d/mysqld start – starts the mysql database server

/etc/init.d/mysqld stop – stops the mysql database server

/etc/init.d/mysqld restart – restarts  the mysql database server

How to start Apache server in Linux

December 2, 2009

Linux commands :

Apache:

/etc/init.d/httpd start – starts the apache server

/etc/init.d/httpd stop – stops the apache server

/etc/init.d/httpd restart – restarts  the apache server

solved : “max_allowed_packet” issue in MYSQL

December 2, 2009

I came across this problem when uploading an attachment greater than 1 MB.

I am storing the uploaded file in database table having column datatype as blob.

I have solved this problem as follows:

1) open my.cnf file

in linux, it is placed /etc/my.cnf

2) add  max_allowed_paclet = 256M under [mysqld]

e.g.,

[mysqld]
max_allowed_packet=256M

You can specify whatever packet size as per your need. “M” indicates MB

3) Restart the mysql server.