A few days ago, I consolidated Apache and PHP on Solaris 10, where I encountered some problems and representativeness, documenting the processes and processes involved, in the hope of helping.
Unlike Solaris 9, Solaris 10 has been installed by default the GNU development tool (Gcc,make, and so on). However, the default environment variable does not set the relevant path in-see if the path is set, as long as you execute a command with no options and parameters gcc knows-search for files make and GCC with find, and then write the path into file/etc/profile, my system's/etc/ The profile path setting looks like this:
export PATH=$PATH:/usr/ccs/bin:/usr/sfw/bin
After the completion of the implementation of Source/etc/profile can be. Since the Solaris 10 is not very handy with tar, the process of replacing it with GNU Tar is as follows:
gunzip -d tar-1.16.tar.gz
tar xvf tar-1.16.tar
cd tar-1.16
./configure -prefix=/usr/local/gnutar //指定目录,否则可能报错
make
make install //把包安装在目录/usr/local/gnutar了
mv /usr/sbin/tar /usr/sbin/tar.orig //把系统自带的vi移动到一边,
以便万一发生意外能够恢复回来//
ln –s /usr/local/gnutar/bin/tar /usr/sbin/tar
Next, you install Apache, which is as follows:
cd /root
tar zxvf httpd-2.2.0.tar.gz
cd httpd-2.2.0
./configure –prefix=/usr/local/apache2 –enable-so
make
make instal