Sun Java Web Server 7u8 – PHP Compile with NSAPI

After more than years do not have time to hands develop on Solaris 10, now I try to share my successful compilation of PHP using NSAPI with Sun Java Web Server 7u8. I am using gcc from sunfreeware.

Requirements software to be installed from sunfreeware:
SMCexpat expat
SMCfontc fontconfig
SMCftype freetype
SMCgcc gcc
SMCgd gd
SMCjpeg jpeg
SMClibpng libpng
SMCliconv libiconv
SMClintl libintl
SMCmake make
SMCzlib zlib
SMCxpm xpm
SMCncurs ncurses
SMCcmake cmake
SMCm4 m4
SMCautoc autoconf
SMCautom automake
SMCbison bison
SMClibt libtool
SMCcoreu coreutils
SMCgmp gmp
SMCperl perl

Download libxml2, compile and install without zlib option, since there is problem with gzopen64, it is in zlib, but ld.so unable to find the reference, although ldd shows everything normal.

Download mysql source from mysql (I am using mysql version 5.1.54 from mysql download site) extract and compile with prefix /usr/local/mysql.

Download php source code from php website (I am php version using 5.3.5) extract it what ever you want. Download pcre source tar ball if you need to get PCRE_UTF8 enable, and extract it at $PHP_SOURCE_DIR/ext/pcre and run upgrade_pcre.php.

Regiter your PATH environment variable to use /usr/local/bin:
# export PATH=/usr/local/bin:$PATH:/usr/ccs/bin
Download libmcrypt source code, extract somewhere and compile:
# ./configure --host=i686-sun-solaris2.10 --enable-dynamic-loading
# make && make install

Than configure, compile and install php source as follow:
# ./configure '--prefix=/opt/sun/webserver7/plugins/php' '--bindir=/opt/sun/webserver7/plugins/php/bin' '--libdir=/opt/sun/webserver7/plugins/php/lib' '--libexecdir=/opt/sun/webserver7/plugins/php/libexec' '--disable-static' '--enable-shared' '--enable-cli' '--disable-cgi' '--with-pic' '--with-nsapi=/opt/sun/webserver7' '--enable-cgi' '--disable-rpath' '--enable-safe-mode' '--enable-ftp' '--enable-sockets' '--enable-inline-optimization' '--enable-soap' '--enable-dba=shared' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--enable-sqlite-utf8' '--enable-zend-multibyte' '--enable-bcmath' '--enable-exif' '--enable-magic-quotes' '--enable-wddx' '--enable-mbstring' '--enable-mbregex' '--enable-gd-native-ttf' '--with-iconv-dir=/usr/local' '--with-libxml-dir=/usr/local' '--with-zlib=/usr/local' '--with-mysql=/usr/local/mysql' '--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-gd=/usr/local/' '--with-pear=/opt/sun/webserver7/plugins/php/include/php' '--with-freetype-dir=/usr/local' '--with-jpeg-dir=/usr/local' '--enable-exif' '--with-xpm-dir=/usr/local' '--enable-maintainer-zts' '--enable-sigchild' '--host=i686-sun-solaris2.10' '--enable-sigchild' '--with-mcrypt=/usr/local'
# make -j4 && make install
# cp libs/libphp5* /opt/sun/webserver7/plugins/php

So Long My Dear, Sun Microsystems…

I have been fall in love with Sun Microsystems before I go to college. I love their innovation, idea, and vision. Thanks God, I have join this company for almost 4 years minus couple days. As a public news regarding Sun acquisition by Oracle, yesterday EU approved the acquisition without condition, and it means the end of Sun Microsystems.

I just can say, so long my dear, Sun Microsystems, I love being part of you, you gave a lot to me and my country…

SL-ing IONITX

Like my previous posting, I have trouble installing  Snow Leopard in Zotac IONITX board. The specification of my board could be found here. Following items are my additional hardware configuration:

  • Motherboard: Zotac IONITX D-E
  • Memory: 2x2GB Corsair XMS 800MHz
  • Hardrive WDC 500GB Green
  • Samsung P2370 HD LCD Monitor
  • Samsung DVD RW

I did follow this tutorial, especially this section and it’s working awesome.

Here are temporary summary of the results:

  • VGA is working great with BIOS setting using VRAM 512MB
  • Line out Audio is working
  • Shutdown is working with BIOS setting ACPI 2.0 (I did try using ACPI 3.0, but it failed to shutdown)
  • Restart and Sleep are not working (after replace boot file using EFI PCI v 5.1)

SL-ing Asus P6T Deluxe

After couple of months trying to install Snow Leopard on my Asus P6T Deluxe PC Desktop , today I have it done pretty well..

Here are my Desktop Configuration:

Mobo: Asus P6T Deluxe (BIOS Version 1102)

CPU: Intel Core i7 920

Memory: Corsair XMS 3x2G (6GB) DDR3 1096MHz

VGA: Asus 9400GT 512MB Silent

Disk: 750GB WD SATA Green

DVD: Sony DVD RW

Screen: Apple Cinema Display HD 23″ and Samsung P2370

I just follow step-by-step on this insanelymac, but if you want the easier way there are other posting from other guy which provide installer to do the steps automatically, you can find here.

Here are the evaluation results so far:

  • VGA Card is detected properly
  • Shutdown/Restart is working
  • Sound card output is working
  • Sleep is working, but the wake-up is still problem, turn into blank screen after upgrade fakesmc to v2.5
  • Need OSX86Tools to make Core i7 detected properly

    After installation, I am able to update to 10.6.2 with combo update without any problems.

    If you have problem with Shutdown and Restart with some configuration in BIOS, so you might need to:

    • Enabling ACPI 2.0
    • Apply OpenHaltRestart.kext that can be found in my other post.

    Solaris 10 10/08 (U6) ZFS Root Installation Tip

    If you wish to install the new Solaris 10 10/08 using ZFS for its root file system, you might not see it in GUI installation mode.

    That’s why you need to install it using Text/Console mode. Just choose number 4 in the first prompt of the installation process.

    In one of wizard step, you are prompted either using ZFS or UFS, just choose ZFS instead. Then, fill the pool name, choose the size of root pool swap and dump area, and how you want to store /var.

    xVM with Marvell Yukon Ethernet Driver

    I have days problem with enabling my Marvell Yukon Ethernet Driver (in may case, I’m using 88E8056) working with Sun xVM VirtualBox and xVM in either Solaris 10 or Nevada B80/B93. I used driver comes from Marvell, I have test 2 versions of drivers, but no luck. All version, when I issued dladm show-dev command. it always indicate that the status is UNKNOWN.

    After searching around just realize that xVM needs GLD v3 network drivers that is not provided by Marvell, this link is very useful for me, so I replicated from that site become newer version:

    • Obtain ON source here and extract it
    • Obtain driver source here (in this case I’m using version 2.6.1, or you can get newer version) and extract it
    • Make sure that skge (from Solaris/OpenSolaris Installer) or yukonx (from Marvell) were removed
    • Do this thing:

    $ gzcat myk-2.6.1.tar.gz | tar xf -
    $ cd myk-2.6.1
    $ rm Makefile.config
    $ ln -s Makefile.config_gld3 Makefile.config
    $ vi Makefile.config

    Edit the line like this (appropriate with your ON source extracted location):
    ONUTSDIR = /root/Download/opensolaris/usr/src/uts

    • Build and install the driver (in this case I’m using GCC)

    $ export PATH=$PATH:/usr/sfw/bin
    $ gmake
    $ su
    # gmake install
    # ./adddrv.sh
    # dladm show-link
    LINK CLASS MTU STATE OVER
    myk0 phys 1500 up --

    Now you can start your Sun xVM VirtualBox and xVM network bridge is working fine…

    Me, OSUG in Jurnal Indonesia

    Last week, suddenly I contacted by a girl that finally introduced her self as reporter from Jurnal Indonesia. It’s a nice conversation though. You can look at the news here:

    http://jurnalnasional.com/?med=tambahan&sec=PROFIT&rbrk=&id=57860&detail=PROFIT

    The lady’s name was reminding me to the Indonesia’s President’s doughter in law :)

    Follow

    Get every new post delivered to your Inbox.