Sun is trying to create good open source platform and to integrate products like: Mysql - for database TomCat - for web container GlassFish - for java container LifeRay - for portal Ruby, Perl, Python, PHP - for programming langages OpenESB - for Enterprise Service Bus So it comes Sun GlassFish portfolio containing: Glassfish Web Stack - integrated AMP stack GlassFish Web Space Server GlassFish ESb GlassFish Enterprise Server For now I am only interested in GlassFish Web Stack (current version 1.4) that includes: - Apache HTTP Server 2.2.9 - GlassFish v2 UR2 - lighttpd 1.4.19 - memcached 1.2.5 - mod_jk 1.2.25 - mod_perl 2.0.2 - MySQL 5.0.67 - PHP 5.2.6 - Python 2.5.2 - Ruby 1.8.6 p287 - Squid 2.6.STABLE17 - Tomcat 5.5.27 Web Stack is using several network ports for regular operations: 80 - apache and lighttpd 3306 - mysql 3128 - squid 8080 - tomcat 11211 - memcashed Download webstack-all-1.4-b06-solaris-i586.tar.gz and guzip/extract it to get data streams of included packages.
gunzip -c webstack-all-1.4-b06-solaris-i586.tar.gz | tar xvf - |
/tmp> foreach i ( SUNWPython SUNWlexpt SUNWpr SUNWtls SUNWlibsasl SUNWcry SUNWpostgr-82-libs SUNWperl584core SUNWopenssl-libraries ) foreach? echo foreach? echo --- check ${i} ---- foreach? pkginfo ${i} foreach? echo foreach? echo ---- done with ${i} --- foreach? end |
# ./install -h Usage: install -?|--help or: install [amp | apache | lighttpd | memcached | mysql | php | python | ruby | squid | tomcat] |
# ./install amp WS012 The following dependencies were not resolved, sun-wsbase.pkg [SUNWjpg,SUNWfontconfig,SUNWpng,SUNWfreetype2] sun-php52.pkg [SUNWjpg,SUNWpng] |
# ./install amp sun-apache22-dtrace.pkg... sun-php52.pkg... sun-apache22-fcgid.pkg... sun-apache22-perl.pkg... sun-php52-xdebug.pkg... sun-php52-suhosin.pkg... sun-php52-apc.pkg... sun-php52-idn.pkg... sun-php52-dtrace.pkg... sun-php52-memcache.pkg... sun-php52-tcpwrap.pkg... WS104 A browser could not be invoked to display the Product Registration page. You may register the product by opening the following URL in a browser: file:///var/tmp/webstack_register.root.html Installation was successful. |
/opt/webstack> ls total 30 drwxr-xr-x 10 root bin 512 Jul 23 13:00 . drwxr-xr-x 4 root sys 512 Jul 23 12:53 .. drwxr-xr-x 3 root bin 512 Jul 23 12:59 apache2 drwxr-xr-x 3 root bin 512 Jul 23 13:00 bin drwxr-xr-x 2 root root 512 Jul 23 12:53 legal drwxr-xr-x 4 root bin 512 Jul 23 12:58 lib drwxr-xr-x 3 root bin 512 Jul 23 12:58 mysql drwxr-xr-x 3 root bin 512 Jul 23 13:00 php -r--r--r-- 1 root bin 4230 Dec 10 2008 README drwxr-xr-x 3 root bin 512 Jul 23 12:59 share drwxr-xr-x 6 root bin 512 Jul 23 12:53 wslibs |
/opt> svcs -a |grep apache disabled 12:59:49 svc:/network/http:sun-apache22 |
/opt> svcadm -v enable -r sun-apache22 svc:/network/http:sun-apache22 enabled. svc:/milestone/network:default enabled. svc:/network/loopback enabled. svc:/network/physical enabled. svc:/system/filesystem/local:default enabled. svc:/milestone/single-user enabled. svc:/system/identity:node enabled. svc:/system/filesystem/minimal enabled. svc:/system/filesystem/usr enabled. svc:/system/boot-archive enabled. svc:/system/filesystem/root enabled. svc:/system/device/local enabled. svc:/milestone/devices enabled. svc:/system/device/fc-fabric enabled. svc:/system/sysevent enabled. svc:/system/manifest-import enabled. |
# svcadm -v enable -r sun-mysql50 svc:/application/database/sun-mysql50:default enabled. svc:/milestone/network:default enabled. svc:/network/loopback enabled. svc:/network/physical enabled. svc:/system/filesystem/local:default enabled. svc:/milestone/single-user enabled. svc:/system/identity:node enabled. svc:/system/filesystem/minimal enabled. svc:/system/filesystem/usr enabled. svc:/system/boot-archive enabled. svc:/system/filesystem/root enabled. svc:/system/device/local enabled. svc:/milestone/devices enabled. svc:/system/device/fc-fabric enabled. svc:/system/sysevent enabled. svc:/system/manifest-import enabled. |
/opt/webstack/mysql/5.0/bin> ./mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.0.67 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> |
/opt/webstack/mysql/5.0/bin> ./mysqladmin -u root password qwerty |
/opt/webstack/mysql/5.0/bin> ./mysql -u root -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 13 Server version: 5.0.67 Source distribution Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> |
/etc/opt/webstack/mysql/5.0> ls total 88 drwxr-xr-x 2 root bin 512 Jul 23 12:58 . drwxr-xr-x 3 root bin 512 Jul 23 12:58 .. -r--r--r-- 1 root bin 5068 Dec 10 2008 my-huge.cnf -r--r--r-- 1 root bin 21011 Dec 10 2008 my-innodb-heavy-4G.cnf -r--r--r-- 1 root bin 5043 Dec 10 2008 my-large.cnf -r--r--r-- 1 root bin 5050 Dec 10 2008 my-medium.cnf -r--r--r-- 1 root bin 2620 Dec 10 2008 my-small.cnf -rw-r--r-- 1 root bin 2620 Dec 10 2008 my.cnf |
/etc/opt/webstack/php/5.2/conf.d> cat suhosin.ini ;Uncomment next line to enable suhosin extension in php ;extension=suhosin.so |