h1

Apache Web Server on Solaris 10

October 21, 2008

I downloaded Apache Web Server 2.2.9 from apache’s website and tried to compile it. At first the installer could not find cc or gcc in my path and complained (thanks to Sun, most paths don’t get added to a user’s profile when he is first created). I thought that gcc was just not there and downloaded it from sunfreeware.com and installed it. The gcc installer did not go very smoothly and i did see some errors. Either ways, I decided to proceed with the installation of Apache with the path to gcc just installed. This time the installer complained about “gcc cannot create executables”. I googled it a lot and in the end I found out that gcc DID come installed with Solaris at /usr/sfw/bin and when changing the PATH variable to point to that location, the apache installer did not complain and everything went fine with the installation.

However, the default installation does not install ssl and other modules. To do that you have to give the option –-enable-modules=”all” and  –-enable-mods-shared=”all” (in  place of “all” you can specify module names too). However, when I gave the option, it did not recognize them. I thought something wrong with my configuration. On doing some more research, I found out that this version of apache had a bug and it is not parsing the command line options properly. I am not sure if it is only on solaris or on other platforms also. Anyways, I decided to give apache version 2.2.8 a try, unzipped it and everything went smoothly with ssl and all other modules.

On enabling SSL on Apache, if you get an error from httpd-ssl.conf about “255.255.255.255″ not being able to reolve, I think it is a bug in Solaris which has perhaps been fixed in some later versions of Solaris. But for the time being, just go ahead and change the  to and Apache should be able to start properly.

One comment

  1. There is more of Apache Solaris 10 issue here http://www.unixadmintalk.com/apache/



Leave a Comment