Pages

Monday, October 3, 2011

Install PHP 4 - Apache on Ubuntu 11.04

1. gunzip apache_xxx.tar.gz
2. tar -xvf apache_xxx.tar
3. gunzip php-xxx.tar.gz
4. tar -xvf php-xxx.tar
5. cd apache_xxx
6. ./configure --prefix=/www --enable-module=so
7. make
8. make install
9. cd ../php-xxx

apt-get install flex

apt-get install zlib1g-dev

apt-get install libjpeg8-dev

apt-get install libpq-dev

root@aslam-VGN-SZ79GN-C:~/Downloads/php-4.4.9# ./configure --with-apxs2=/opt/httpd-2.0.64/bin/apxs --with-pgsql=/usr/lib64/postgresql/8.4/bin --with-gd2 --with-jpeg-dir --with-zlib-dir --with-png-dir

12. make
(you should now have an httpd binary which you can copy to your Apache bin d
ir if
it is your first install then you need to "make install" as well)

13. cd ../php-5.x.y
14. cp php.ini-dist /usr/local/lib/php.ini

15. You can edit /usr/local/lib/php.ini file to set PHP options.
Edit your httpd.conf or srm.conf file and add:
AddType application/x-httpd-php .php

Example 2-3. Example commands for restarting Apache
1. Several Linux and SysV variants:
/etc/rc.d/init.d/httpd restart

2. Using apachectl scripts:
/path/to/apachectl stop
/path/to/apachectl start

3. httpdctl and httpsdctl (Using OpenSSL), similar to apachectl:
/path/to/httpsdctl stop
/path/to/httpsdctl start

4. Using mod_ssl, or another SSL server, you may want to manually
stop and start:
/path/to/apachectl stop
/path/to/apachectl startssl

Wednesday, September 28, 2011

Force shutdown of one Linux guest xenserver 5.6

Webmaster@dawnet.net wrote:

===================
I've found the resolution through my other thread. Here's what you need to do.

1 - "xe vm-list" to get the uuid of the VM that is hung

2 - "list_domains" to list the domain uuid's so you can determine
the domain # of the VM above by matching the uuids from this output with
the uuid for your VM from the previous command.

3 - "/opt/xensource/debug/destroy_domain -domid XX" where XX is the domain number from the previous command

4 - "xe vm-reboot uuid=XXXX --force" where XXXX is the uuid from the first vm-list command for your VM. (name-label may work but didn't work this time for me so I used the uuid)

Your VM will be back up running now in most cases. (I use this for my HVMs that hang so I don't have to reboot the host server)
=====================

Friday, September 23, 2011

Set ZTE AC2726 modem on Ubuntu

Mainly there are two files to download, one for the modem driver and the other is the application interface.

Go: http://www.ztemt.com/ennewzte/service/ziliao.action

And these links are for further reading:
http://gadgetz4all.blogspot.com/2010/11/modem-usb-zte-ac2726-smart-pada-ubuntu.html
http://mopheatid.blogspot.com/2010/08/modem-zte-ac2726-untuk-mandriva-fedora.html
http://yanname.blogspot.com/2010/03/aplikasi-modem-smart-evdo-zte-ac2726-di.html?showComment=1316785849604#c8170839067319597998

Monday, August 22, 2011

How to check Memory Utilization by each process

If you use top in batch mode you get a list of all processes:
top -b -n 1 > list_of_processes

Before that, if you want the output sorted by memory usage you can do the following:
top
M (this sorts the output on the screen by memory usage)
W (this writes the sort settings to a configuration file ~/.toprc; this settings are used when you then start top in batch mode as described above)



http://www.unix.com/suse/112679-how-check-memory-utilization-each-process.html

Perkembangan Aplikasi Web dan Mobile saat ini

World Wide Web (Web) adalah sebuah teknologi yang memungkinkan setiap orang yang terhubungan dengan jaringan internet untuk dapat saling bertukar informasi.

Aplikasi web adalah aplikasi yang berjalan di web. Pada generasi awalnya, web hanyalah berfungsi sebagai halaman informasi yang bersifat statis dan satu arah. Namun perkembangan teknologi web membuat aplikasi yang tadinya hanya bisa dijalankan pada desktop, kini dapat dijakankan pula via web. Saat ini orang sudah bisa menyimpan data, melihat video, mendengarkan radio bahkan menonton tv via web streaming. Google misalnya, telah menciptakan aplikasi web, seperti: maps, excel, dan word dengan fungsi yang nyaris mendekati aplikasi desktop aslinya.

Dengan adanya aplikasi-aplikasi web yang semakin berkembang ini seiring dengan perkembangan infrastrukturnya yang amat cepat, diprediksi suatu saat dunia akan beralih dari aplikasi desktop yang banyak memakan resource di client ke aplikasi web yang cukup diakses dengan menggunakan browser dan dukungan jaringan yang memadai.

Aplikasi mobile adalah aplikasi yang berjalan pada perangkat mobile, seperti handphone dan tablet. Aplikasi ini biasanya didesain untuk penggunaan yang mengoptimalkan potensi dibalik keterbatasan yang ada pada perangkat mobile, biasanya dengan ukuran layar yang relatif kecil (dibawah 10") dan dilengkapi dengan fasilitas multi-touch screen.

Seiring dengan maraknya penggunaan perangkat mobile, tentu permintaan pembuatan aplikasi mobile terus meningkat. Mulai dari aplikasi office, PIM, multimedia, sampai game. Satu lagi aplikasi yang saat ini lagi nge-trend adalah aplikasi yang menggabungkan teknologi web dengan teknologi mobile. Seperti facebook, twitter, gmaps, dll.

Perkembangan teknologi yang pesat ini semakin memberikan tantangan pagi para pengembang aplikasi web & mobile untuk terus mengupdate teknologi, dan menyesuaikan diri dengan perkembangan yang ada. Saat ini banyak tools yang mempermudah pengambangan aplikasi web dan mobile. Bila digunakan dengan optimal, tools tersebut tidak hanya dapat mempercantik aplikasi, namun juga dapat semakin mempercepat learning curve pengembangnya dan mempermudah maintenance-nya.