Pages

Showing posts with label Server. Show all posts
Showing posts with label Server. Show all posts

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

Thursday, November 18, 2010

Dell & Open Souce

This link might be useful if you run OSS on Dell Server:

  • http://linux.dell.com
  • http://www.delltechcenter.com/

Dell OpenManage on Centos 5.x

Dell OpenManage Server Administrator (OMSA) is a suite of tools provided by Dell for managing an individual server. Dell provides a Windows installation tool set on their support website but information pertaining to the installation on non-supported Dell operating systems (e.g. CentOS, Fedora) is a little hard to find.
If your running Dell branded servers with CentOS 5.x and need to install the current version of Dell OpenManage and OpenIPMI, the following script will automate the process.
1. Login to your server.
2. cd /usr/src
3. nano -w dellomi.sh
4. Cut and paste the following text:
#!/bin/bash
#
# Dell OpenIPMI & OpenManage Installer (m)
# Revision: 030609-1
#
HOST=`hostname`
D=`date '+%d%m%y'`
echo
echo "Dell OpenIPMI & OpenManage Automatic Installer"
echo "Revision: 030609 m"
echo
echo "Installing Dell Yum Repository..."
echo
wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash
echo
echo "Dell Repository Install Complete!"
echo
echo "Installing Dell Server Administrator..."
echo
yum -y install srvadmin-all
echo
echo "Dell Server Administrator Install Complete!"
echo
echo "Starting Dell IPMI Services..."
echo
/opt/dell/srvadmin/sbin/srvadmin-services.sh start
echo
echo "Dell OpenIPMI & Dell OpenManage Install Complete!"
echo
echo "Please go to https://$HOST:1311 in order to access Dell OpenManage."
echo
5. Save and exit nano (CTRL+X the Y to Save then exit)
6. Run the script: sh dellomi.sh
7. Once the script has complete you will be able to login to Dell OpenManage at https://your-server:1311 with your root username and password.
For more information on Dell's Open Source initiatives click here.

Wednesday, November 17, 2010

Install Centos 5.5 on Dell PowerEdge R910 Rack Server

This server is the highest specification i ever touch. Here's it:

  • Four Processor @ Eight-Core Intel Xeon
  • 112 GB Total RAM
  • Four Hardisk @ 146 GB
  • Integrated RAID Controller
  • OpenManage Dell Management Console

More on: http://www.dell.com/us/en/enterprise/servers/poweredge-r910/pd.aspx?refid=poweredge-r910&cs=555&s=biz

Although Centos 5.5 is not officially supported, i encourage myself to install it because it's brother, RHEL 5.5, is supported. Well i hope i'm lucky.

These are the steps:
  1. First thing i do is configure the BIOS.
  2. At first boot screen press F10 for Sistem Services. With this, you can find detailed information about the system, and there also menu for deploying OS, and several more.
  3. Entering OS deployment menu, i found several OS lists that supported by this system. 
  4. I choose RHEL 5.5, the system shows warning because the DVD is not match. I bypass this, and .. ups, it hangs the system.
  5. Then i rebooted and repeat steps 1-3, and choose another OS. It then rebooted the machine for manual installation.
  6. I skip the first boot menu, and after responding F1 the installation process begins. 
  7. Like ussual Centos installation, firstly it shows Centos installation option. I just enter the default one.
  8. On the partioning phase, i choose custom layout.
  9. Surprisingly the four-hardisk are joined on sda devices with its cummulative size 146 x 4 = 600 GB. I think this caused by RAID5, this machine's default setting. And there's 2G partition on vfat, i guess this is used by Dell System Services. I let it be that way for the current partition setting, and customize the rest 435 GB free space.
  10. I then created new /boot partition with 300 MB size and set to primary partition.
  11. Then i created LVM partition for the rest.
  12. I configure LVM partition with these setting: / 50 G; /home 200 G; /var 160 G; swap 5 G
  13. The format and install steps takes about 1 hour. Quite fast i assume.
  14. After rebooting with the fresh-installed Centos 5.5, i then try to install Dell OpenManage.
  15. to be continued..