Install Submin2 on CentOS 5 and Apache2.4.4

Source: Internet
Author: User

One by one, we finally saw the dawn of light and successfully built it.
The installation steps are divided into four parts:

  • Install apache
  • Python Installation
  • Submin Installation
  • Apache configuration
  • Problem Summary


1 compile apache2.4.4
--------------------------------------------------------
The installation of apache involves many dependent plug-ins. Therefore, you must install apr and pcre before installing apache.
The specific installation commands are as follows:
A) apr Installation
Wget http://www.apache.org/dist/apr/apr-1.4.6.tar.gz
Tar-xzvf apr-1.4.6.tar.gz
Cd apr-1.4.6
./Configure -- prefix =/opt/apr -- enable-threads
Make
Make install
B) apr-util Installation
Wget http://www.apache.org/dist/apr/apr-util-1.5.1.tar.gz
Tar-xzvf apr-util-1.5.1.tar.gz
Cd apr-util-1.5.1
./Configure -- prefix =/opt/apr -- with-apr =/opt/apr
Make
Make install

C) install pcre
Wget http://sourceforge.net/projects/pcre/files/pcre/8.32/pcre-8.32.tar.gz/download
Tar-xzvf pcre-8.32.tar.gz
Cd pcre-8.32
./Configure -- prefix =/opt/pcre
Make
Make install

D) install apache2.4.4
Wget http://www.apache.org/dist/httpd/httpd-2.4.4.tar.gz
Tar-xzvf httpd-2.4.4.tar.gz
Cd httpd-2.4.4
. /Configure -- prefix =/opt/apache24 -- with-pcre =/opt/pcre -- with-apr =/opt/apr -- with-apr-util =/opt/apr -- enable -cgid -- enable-cgi
Make clean
Make
Make install

 

2. Install python2.7.3
-------------------------------------------------------
Because submin needs to use the sqlite3 database, install the sqlite3 module when installing python2.7.3. However, the installation script 2.7.3 contains bugs and requires the latest patch. The procedure is as follows:
Yum search sqlite3
Yum install sqlite-devel
Wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2
Tar-xvjf Python-2.7.3.tar.bz2
Cd Python-2.7.3
More README
Wget http://bugs.python.org/file25647/sqlite3_int64_v2.patch
Patch-p1 <sqlite3_int64_v2.patch
./Configure
Make
Make install

3. Install submin
---------------------------------------------------------
The process of installing submin is relatively simple, but there is a problem during Environment initialization. In the submin script, you need to set the apache startup user group, the nobody group I use, but not in the submin script, and then manually add the solution.
Wget http://supermind.nl/submin/current/submin-2.1.0-1.tar.gz
Tar-zxvf submin-2.1.0-1.tar.gz
Cd submin-2.1.0-1
Python setup. py install


Submin2-admin/var/lib/submin initenv jackey.jiao@infowarelab.com

4. Configure apache
-------------------------------------------------------
Configure apache, mainly to set the conf file of submin. In addition, dbd, authz, and cgi Modules are required. If the startup process is missing, open the configuration.
Another problem is that after the configuration is complete, access submin and report the 403 error. The result is that the submin script was developed based on apache2.2 and does not support apache2.4.4, you must set an access policy that complies with apache2.4.4.
[Root @ localhost ~] #
[Root @ localhost ~] # Tail-10f/opt/apache24/conf/httpd. conf
# BrowserMatch "MSIE 10.0;" bad_DNT
#
#
# RequestHeader unset DNT env = bad_DNT
#

Includes/var/lib/submin/conf/apache-webui-cgi.conf
Includes/var/lib/submin/conf/apache-svn.conf

  • 1
  • 2
  • Next Page

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.