Solaris 10 consolidates Apache and PHP processes and error handling

Source: Internet
Author: User
Tags error handling

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 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.