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