MYSQL server has gone away

Its very rare case when I see message : “MYSQL server has gone away” , a few things to consider are : * Check variable max_timeout * Check variable max_allowed_packet These setting available in my.ini or my.cf file, edit the value and restart mysql daemon. Example : max_allowed_packet=16M max_timeout=28800 Try again to import database using …

More

Hide your plurk karma using css

I forgot the source of css code I get from browsing activity, this code can hide your plurk karma and other attribute. Here’s the code : #dash-stats h3{ opacity:0.0;filter:alpha(opacity=0); height:0; margin:0; padding:0; font-size:0; } #dash-stats a.link_arrow { opacity:0.0;filter:alpha(opacity=0);height:0;margin:0;padding:0;font-size:0; } Just drop a comment for the source and I’ll update this post Basically I like this …

More

101 nginx tutorial and articles

I’m bit lazy to read manual and prefer to read it as a case. Nginx is my favourite now, by collecting related tutorial, blog posting and articles I hope I can learn nginx more. Links I found so far : Reverse proxy in depth tutorial Step by step install Engine X (nginx) and php-fpm in …

More

undefined function imagecreatefromjpeg()

Call to undefined function imagecreatefromjpeg() in /home/materi/prog/cms_study/admin/pageuploadadd.php on line 88   Yes, that message show up when my friend try to access web based application. I think thats my fault Doing preliminary check : edp# pkg_info | grep php5-gd edit /etc/make.conf PERL_VER=5.8.8 PERL_VERSION=5.8.8 WITHOUT_X11=yes save. edp# whereis php5-gd php5-gd: /usr/ports/graphics/php5-gd edp# cd /usr/ports/graphics/php5-gd && make …

More

Detect more than one device for gammu

Another device for sms gateway has arrived, its Nokia 6070 I have connect it to server and need to configure : Steps taken to do that using gammu are : 1. Edit gammurc file, for example : [gammu] port = /dev/ttyUSB0 connection = at115200 [gammu1] port = /dev/ttyUSB1 connection = at115200 2. Detect it using …

More

Relaying mail in postfix

We have new server configured, the problem is the ISP. They not allow port 25 for sending mail. Fortunately we have another existing postfix server . After edit main.cf in new server, we can send email through existing server. The only change to do is : Edit main.cf, find relayhost line and add existing server …

More

Unknown SMSD service type (“MYSQL”)

That message show up when I install gammu from source in Ubuntu server 8.04 : root@dns:/home/edpteam# gammu –smsd MYSQL smsdrc Unknown SMSD service type (“MYSQL”) After dig in mailing list I have clue to install mysql library : apt-get install libmysqlclient15-dev apt-get install libmysqlclient15-dev Reading package lists… Done Building dependency tree Reading state information… Done …

More

Testing dns server using nslookup

DNS take important part in internet world as resolver for domain. The problem came when we think something wrong with it. Need to examine which server is in trouble. From this picture : There is two dns servers : 202.146.178.4 208.67.222.222 In windows we can check which dns server that work well using nslookup. Steps …

More

mod_unique_id: unable to gethostbyname

Yes, that message display when I try to start apache inside my jail box.  [Thu Jul 10 13:23:41 2008] [alert] mod_unique_id: unable to gethostbyname(”mailserver”) To resolve this problem, just edit /etc/hosts add record for ‘mailserver’ entry, like : ::1                     localhost localhost.my.domain 127.0.0.1               localhost localhost.my.domain 172.88.1.5              email.rasyid.com mailserver Restart apache and test it yourself.