Just as I suspected, reformatted the server, install Jaunty Server, and within 30 minutes had PHP5/Apache2/Mysql5/FreeTDS 0.8.2/and the MSSQL.so extension working.
Just affirming my idea that Solaris is overly difficult for absolutely no reason. It reminds me of the old school linux versus RedHat when that came out. All the fun of Linux with none of your files where you'd expect them.
Only issue that I ran into during the installation was the fact that Jaunty has no package for the MSSQL/php system. Easy to build by using this post..
http://ubuntuforums.org/archive/index.php/t-986689.html
Just in case anyone needs to know.
Simply build as specified in the post, cp the libtds.a from the hidden directory to (Where you d/l FreeTDS)/lib
Give php's ./configure --with-mssql=/(location where you d/l FreeTDS)
example ./configure --with-mssql=/home/user/freetds-0.8.2
# make && make install
Easy as that!
Sunday, May 31, 2009
Solaris..... shit
Since my workplace decided that all systems running Linux must move to Solaris containers, I decided to finally take the plunge and get all dirty with Sun's baby. Started with Solaris 10, installed without much of a hitch and seemed to operate fine. Java Desktop was a bit strange, but that comes with time I suppose, that is until I hit the "Get Updates" option and realized the $$ that comes with it.
Downloaded OpenSolaris, seemed to be similar enough to "real" Solaris. Installed even easier that Solaris, which should have been the first clue. All seemed to be going to plan. Fired up the Package Manager (being from Ubuntu, liked the apt-get-y-ness of it all), installed the gcc/gcc-dev, and amp packages. Wouldn't you know it, the blasted thing actually worked! I had in 45 minutes a working PHP/Apache 2.2/Mysql 5 box up and running. I felt like a Sun God! Then came the phpinfo(); Some of the configuration options were a bit off, needed tweaking, plus FreeTDS was still looming out there waiting to be installed (Yes, I know it's dirty, but IMHO asp/IIS is way too vulnerable to be used in prodcution.) I was able to download and install FreeTDS fairly simply, I downloaded php 5.2.9 from the web and fired up ./configure.............
1 Hour Later..........
After much tweaking and swearing, I finally had all the strange installation locations for MySQL/Apache figured out and set correctly. Also set the options needed for FreeTDS/OpenSSL to work correctly. ./configure, success! sudo make time, complete failure. For some reason autoconf was placing a "-mt" as one of the libtool configs during compilation, so of course that not being a vaild sun/gcc option it errored out each time. Searching PHP's site / Google, no resolution. I found many people with the same problem, but no solution. nano'ed the Makefile, and removed the ambiguous -mt. Success! Perfectly compiled, after a quick make install and restart of apache (which btw, apachectl is not in the $PATH, thanks sun!) php 5.2.9 is up and running with MSSQL support, but no longer has MySQL support!
I take a look at the make output and see that it couldn't actually find MySQL during configuration.... but it exited 0... Ok, reconfigure php with the actuall path to MySQL 5. Re-Make/install/restart... same output.. no MySQL...
Back to the drawing board.
I kill the amp package, download Apache and MySQL source and decide to go it the "old fashioned" way. Configure apache with the support and locations required. Well, Hello "-mt" my old friend! Looking closer at these packages from OpenSolaris.org I notice a common theme. They appear to be built from a strange location, and installed to a virtual filesystem that for some reason, when installed via package works fine, but if you try to build any projects using them willgive you nothing but trouble.
fdisk is out and handy.... Ubuntu is going back on my server, and Solaris can be kept for the Java Heads....
Downloaded OpenSolaris, seemed to be similar enough to "real" Solaris. Installed even easier that Solaris, which should have been the first clue. All seemed to be going to plan. Fired up the Package Manager (being from Ubuntu, liked the apt-get-y-ness of it all), installed the gcc/gcc-dev, and amp packages. Wouldn't you know it, the blasted thing actually worked! I had in 45 minutes a working PHP/Apache 2.2/Mysql 5 box up and running. I felt like a Sun God! Then came the phpinfo(); Some of the configuration options were a bit off, needed tweaking, plus FreeTDS was still looming out there waiting to be installed (Yes, I know it's dirty, but IMHO asp/IIS is way too vulnerable to be used in prodcution.) I was able to download and install FreeTDS fairly simply, I downloaded php 5.2.9 from the web and fired up ./configure.............
1 Hour Later..........
After much tweaking and swearing, I finally had all the strange installation locations for MySQL/Apache figured out and set correctly. Also set the options needed for FreeTDS/OpenSSL to work correctly. ./configure, success! sudo make time, complete failure. For some reason autoconf was placing a "-mt" as one of the libtool configs during compilation, so of course that not being a vaild sun/gcc option it errored out each time. Searching PHP's site / Google, no resolution. I found many people with the same problem, but no solution. nano'ed the Makefile, and removed the ambiguous -mt. Success! Perfectly compiled, after a quick make install and restart of apache (which btw, apachectl is not in the $PATH, thanks sun!) php 5.2.9 is up and running with MSSQL support, but no longer has MySQL support!
I take a look at the make output and see that it couldn't actually find MySQL during configuration.... but it exited 0... Ok, reconfigure php with the actuall path to MySQL 5. Re-Make/install/restart... same output.. no MySQL...
Back to the drawing board.
I kill the amp package, download Apache and MySQL source and decide to go it the "old fashioned" way. Configure apache with the support and locations required. Well, Hello "-mt" my old friend! Looking closer at these packages from OpenSolaris.org I notice a common theme. They appear to be built from a strange location, and installed to a virtual filesystem that for some reason, when installed via package works fine, but if you try to build any projects using them willgive you nothing but trouble.
fdisk is out and handy.... Ubuntu is going back on my server, and Solaris can be kept for the Java Heads....
Subscribe to:
Posts (Atom)