NYCPHP Meetup

NYPHP.org

[nycphp-talk] PHP on Solaris

Daniel Krook danielk at us.ibm.com
Wed May 26 13:43:44 EDT 2004





> Does any one has comments regarding shifting an APM solution to Solaris?

Rafi,

I currently run my AMP setup on Solaris 9 SPARC, and built everything from
source (I have a quick and dirty set of instructions here:
http://krook.net/os/lamp-install.txt).

I've also put AMP binaries on Solaris 9 x86 via pkg-get, which is similar
to RPM or apt-get on a Linux system (pkg-get is available for both SPARC
and x86 though).  Both environments run fairly smooth and were simple
enough to set up, but I only run them on my home network - not in an
enterprise environment.  However, I've heard rumors that the Apache/Solaris
combo has the highest average uptime among production web servers, but I
haven't seen a recent set of stats to confirm that.

On either a SPARC or x86 machine, you would need to make sure that your
Solaris installation had the standard set of GNU developer tools, and that
where possible they are in your PATH when building instead of the Solaris
versions.  For example, Solaris tar is not able to untar the MySQL binary
tarball, and you would need a copy of gcc to compile Apache and PHP anyway,
as Solaris does not come with a C compiler.  The commercial version that
Sun sells goes for a hefty price if I recall correctly.   I believe I've
also had problems using the stock unzip instead of gunzip.

All the standard GNU tools in package form are available at
http://sunfreeware.com/, which is where pkg-get gets its binaries.  Other
resources to check out are:

Everything Solaris
http://everythingsolaris.org/

The home of pkg-get (CSW - Community Software Packages for The Solaris
Operating Environment):
http://blastwave.org/

Sun's Big Admin site is also full of resources on AMP tools and Linux
migration / dual boot etc.:
http://sun.com/bigadmin/
http://sun.com/bigadmin/faq/
http://sun.com/bigadmin/resources/

Solaris Resources at Kempston:
http://www.kempston.net/solaris/contents.html


I picked Solaris for reasons other than to run AMP tools on it, and if I
had to do it all over again using what I use now, I probably would have
picked a Linux distribution.  That said, it's still a solid and proven
platform for AMP.

What's your motivation for exploring alternatives to Linux or AIX?









Daniel Krook, Application Developer
WW Web Production Services North 2, ibm.com
1133 Westchester Avenue, White Plains, NY 10604

Personal: http://info.krook.org/
Persona: http://w3.ibm.com/eworkplace/persona_bp_finder.jsp?CNUM=C-0M7P897





More information about the talk mailing list