Random Shouts from the Engine Room Neal Pollack's Weblog

Sunday Sep 17, 2006

Solaris, Apache2, Mysql5, PHP5 (SAMP) just keeps getting better.    As pointed out by Shanti in a comment below, the
Sun PAE group decided to compile and benchmark highly optimized versions of the SAMP packages and post them for
download.   If you don't enjoy compiling software, or prefer to use optimized high-performing binary packages,
take a look at this web page;  http://cooltools.sunsource.net/coolstack/
Source is also provided for those who are curious about the options and methods used.

To quote from CoolStack features;
" Cool Stack includes several Sun Solaris OS packages, so you can install just the ones you need. Some of the applications in Cool Stack already ship with Sun Solaris OS 10, but these are either older versions and/or not built with full optimization. Cool Stack is built using Sun Studio (TM) 11 Compiler using the -xO4 option for high levels of optimization. This results in anywhere between 30-200% performance improvement (depending on workload/application) over standard compilations performed using gcc."

The group is currently working on an x86 version of CoolStack and hopes to release this in several weeks.
The new Studio-11 compilers are both amazing  and free.  Download and try here;
http://developers.sun.com/prodtech/cc/index.jsp

Comments:

I hope that Sun will compile the already in Solaris 10 included Open Source Packages like apache, mysql, perl with these options in future, too. And maybe, Sun will also put PHP into the supported Solaris distro in the future, like all Linux vendors do. http://www.wiik.de/blog/2006/08/23/cooltools-for-coolthreads-are-coolstack/

Posted by Thorleif Wiik on September 17, 2006 at 01:23 PM PDT #

Dear Neal Pollack,

Thanks for your wonderful and useful article on SAMP (Solaris, Apache 2, MySQL 5, and PHP 5) for Solaris 10.

http://www.sun.com/bigadmin/features/articles/samp_setup.jsp

I did everything you mentioned in your article and everything is working perfectly except for 1 Mysql related problem.

Solaris Version: SunOS solarisbox 5.10 Generic_118855-33 i86pc i386 i86pc

Mysql Ver 14.12 Distrib 5.0.41, for pc-solaris2.8 (i386)

PHP version is: 5.2.5

Apache Version:
Server version: Apache/2.0.58
Server built: Sep 5 2006 07:20:21

I created the file "simple-test.php" to test the MySql connectivity. However, I get the following error:

Fatal error: Call to undefined function mysql_connect() in /var/apache2/htdocs/simple-test.php on line 8

Can you please shed some light on this?

Sorry if this problem is very obvious and I am missing something very fundamental here!

Thanks a lot.

Solaris Rocks!!!

Posted by Tek Bahadur Limbu on November 22, 2007 at 03:39 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed