Tag Archives: Solaris

Fix freezing Solaris kernel on boot

During an attempt to install Solaris on a real machine, I found a strange bug that caused Solaris kernel to freeze on the first boot.

This affected all post-skylake systems regardless of drive type so I originally suspected it to be related to the xHCI handoff bug with hackintosh setups, but it was actually something different.

With -v option, the last debug message shown was

root on /ramdisk:a fstype ufs

No other mentions of such bug were found on any solaris forums, but hopefully I found a similar issue on SmartOS, a solaris baed bare-metal OS: https://github.com/joyent/smartos-live/issues/727

For me, disabling both C7 states and Intel SpeedStep in BIOS setup fixed the issue, and Solaris kernel could boot up again like normal.


Installing PHP 5.4 on Solaris 11

$ wget -O php.tar.bz2 http://link/to/the/php/file
$ tar xvjf php.tar.bz2
$ cd php-5.4.*
$ ./configure –with-apxs2=/usr/apache2/2.2/bin/apxs –prefix=/usr/php/5.4
$ gsed -ibak ‘s,\-mt,,’ Makefile
$ gsed -i.bak ‘s,\-i \-a \-n php5 libphp5\.la,-i -n php5 libphp5.la,’ Makefile
$ gmake -j16

make a copy of php/php5.3.conf and rename it to php5.4.conf

Replace in the file: 5.3 with 5.4
and replace the original module with: LoadModule php5_module libexec/libphp5.so

then change php.conf and redirect the includes to the new php5.4.conf file