Create an Apache Virtual root environment for Linux and Solaris

Source: Internet
Author: User
Create an Apache Virtual root environment for Linux and Solaris-Linux Enterprise Application-Linux server application information. See the following for details. [Introduction] installing a virtual root-Environment Apache directory tree on Linux is quite simple. This example uses Red Hat 6. * and Apache 1.3.12. It also contains PHP4 (as an Apache module) and perl5 installation on the virtual root environment directory tree. In addition, mod-ssl and mod-perl are installed.

Introduction

I used CERN httpd to install and use a Web server in a virtual root environment. Creating a virtual root environment for Web servers has various advantages and disadvantages. In the early stages of Web development, this technology also provides additional valuable security mechanisms. However, in this apache field, this technology does not seem very useful, but it is still very interesting.

I provide an example of installing a virtual root environment for apache in linux and soloris. It can be used for standard editing (marked as non-DSO when necessary) or edit the dynamic shared object (it will be marked as DSO if necessary ). The Solaris example with the option DSO is not documented, so I didn't test it (I plan to use Solaris 8 during the test ).

Installing a virtual root-Environment Apache directory tree on Linux is quite simple. This example uses Red Hat 6. * and Apache 1.3.12. It also contains PHP4 (as an Apache module) and perl5 installation on the virtual root environment directory tree. In addition, mod-ssl and mod-perl are installed.

This example also assumes that the installation of Red Hat is complete (that is, there are enough files, libraries and development tools ). Note: If you use the develm (prefered) configuration and select the development option when installing Red Hat, or you use the server configuration, you will all have a complete development environment.

Mysql3.22.27 is not installed in the directory tree that implements the virtual root environment, but we include it here for integrity.

Statement

I am not an expert :), especially in terms of encryption (openssl, mod-ssl, and company), my level is even more limited. I am also an ordinary person and will make mistakes. Therefore, if you find anything or have any constructive comments, please let me know.

I am writing this article just hoping that you can learn something and get some help. I can also provide some RPMs frequently, but if you know that you can create your own modern Web site from a sketch, it will be more interesting. However, on the current Internet, it is up to you to learn and understand various problems and risks related to running a Web site.

Solaris example

Solaris, which implements virtual root environment for the Web directory tree, is similar to Linux. Of course, if you have not installed the GNU development environment, the solaris example cannot be as easy as the Linux example.

The Solaris example document is on another web page.

Additional comments

Use the tool ldd to discover necessary shared libraries.

In this example, the user prompts:
CODE: root user:
ROOT #
Ordinary user:
$

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.