sparky wrote:
chase wrote:
and switching from Solaris x86 to Linux.
For the love of God why?
Two reasons.
Package/Software management. Here is installing PHP on Solaris. First in the global zone..
Code:
#!/bin/bash
PATH=$PATH:/usr/sfw/bin:/usr/ccs/bin
export PATH
echo "GETTING PHP SUPPORT STUFF"
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/openssl-0.9.8d-sol10-x86-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libiconv-1.8-sol10-intel-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libxml2-2.6.16-sol10-x86-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libgcc-3.3-sol10-intel-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/jpeg-6b-sol10-intel-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/expat-1.95.5-sol10-intel-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libpng-1.2.12-sol10-x86-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/fontconfig-2.2.98-sol10-intel-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/zlib-1.2.3-sol10-x86-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/freetype-2.2.1-sol10-x86-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/xpm-3.4k-sol10-intel-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/gd-2.0.33-sol10-intel-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/autoconf-2.59-sol10-intel-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/automake-1.9-sol10-intel-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/perl-5.8.7-sol10-x86-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/m4-1.4.2-sol10-intel-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/readline-5.1-sol10-x86-local.gz
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/curl-7.15.4-sol10-x86-local.gz
echo "UNCOMPRESSING STUFF"
gunzip openssl-0.9.8d-sol10-x86-local.gz
gunzip libiconv-1.8-sol10-intel-local.gz
gunzip libxml2-2.6.16-sol10-x86-local.gz
gunzip libgcc-3.3-sol10-intel-local.gz
gunzip jpeg-6b-sol10-intel-local.gz
gunzip expat-1.95.5-sol10-intel-local.gz
gunzip libpng-1.2.12-sol10-x86-local.gz
gunzip fontconfig-2.2.98-sol10-intel-local.gz
gunzip zlib-1.2.3-sol10-x86-local.gz
gunzip freetype-2.2.1-sol10-x86-local.gz
gunzip xpm-3.4k-sol10-intel-local.gz
gunzip gd-2.0.33-sol10-intel-local.gz
gunzip autoconf-2.59-sol10-intel-local.gz
gunzip automake-1.9-sol10-intel-local.gz
gunzip perl-5.8.7-sol10-x86-local.gz
gunzip m4-1.4.2-sol10-intel-local.gz
gunzip readline-5.1-sol10-x86-local.gz
gunzip curl-7.15.4-sol10-x86-local.gz
echo "INSTALLING..."
pkgadd -d openssl-0.9.8d-sol10-x86-local all
pkgadd -d libiconv-1.8-sol10-intel-local all
pkgadd -d libxml2-2.6.16-sol10-x86-local all
pkgadd -d libgcc-3.3-sol10-intel-local all
pkgadd -d jpeg-6b-sol10-intel-local all
pkgadd -d expat-1.95.5-sol10-intel-local all
pkgadd -d libpng-1.2.12-sol10-x86-local all
pkgadd -d fontconfig-2.2.98-sol10-intel-local all
pkgadd -d zlib-1.2.3-sol10-x86-local all
pkgadd -d freetype-2.2.1-sol10-x86-local all
pkgadd -d xpm-3.4k-sol10-intel-local all
pkgadd -d gd-2.0.33-sol10-intel-local all
pkgadd -d autoconf-2.59-sol10-intel-local all
pkgadd -d automake-1.9-sol10-intel-local all
pkgadd -d perl-5.8.7-sol10-x86-local all
pkgadd -d m4-1.4.2-sol10-intel-local all
pkgadd -d readline-5.1-sol10-x86-local all
pkgadd -d curl-7.15.4-sol10-x86-local all
And then in the zone itself...
Code:
#!/bin/bash
PATH=$PATH:/usr/sfw/bin:/usr/ccs/bin
export PATH
echo "GETTING PHP 5.1.4"
wget http://www.php.net/distributions/php-5.1.4.tar.bz2
echo "UNCOMPRESSING PHP"
bunzip2 php-5.1.4.tar.bz2
tar -xvf php-5.1.4.tar
cd php-5.1.4
echo "BUILDING PHP"
./configure --prefix=/opt/php --with-apxs2=/opt/httpd/bin/apxs --with-openssl=/usr/local/ssl --with-mysql=/usr/sfw
make
make install
cp php.ini-recommended /opt/php/lib/php.ini
echo "UPDATING APACHE CONFIGURATION"
echo "<IfModule php5_module>" >> /opt/httpd/conf/httpd.conf
echo " AddType application/x-httpd-php .php .phtml" >> /opt/httpd/conf/httpd.conf
echo "</IfModule>" >> /opt/httpd/conf/httpd.conf
And php doesn't build fast. Installing on Linux (Redhat type distro) is:
Code:
yum install php
Solaris software management kinda sucks. Solaris rocks if you don't change anything, it's stable as hell and performs great. With a public web server with all sorts of software you have to keep updating and changing software. The other thing is ext3 seems to handle power failures a little better than UFS w/logging. As cool as ZFS is it's not bootable yet. Even though the data center has power generators I've still lost power a couple of times. There are a couple of other reasons but those are the big ones.
I didn't have a chance to get to the data center last night so it'll probably be tonight that I take it offline for a little bit.