LAMP + epiware build a network office platform (1)

Source: Internet
Author: User

LAMP + epiwareThe steps for establishing a network office platform are as follows:

First, list your network platform conditions and Software Versions:

1: network condition: Set the IP address of a RHEL 4 version server to 10.66.77.126. A common client that is used to detect results. The IP address is 10.66.77.200.

2: Software: apache: httpd-2.2.6.tar.gz: [url] http://apache.mirror.phpchina.com/httpd/httpd-2.2.6.tar.gz#/url]

Mysql: mysql-5.0.45-linux-i686.tar.gz: [url] Connector

PHP: php-5.2.4.tar.gz: Sorry, forget. Find it by yourself.

Epiware: Epiware_4.8.4.tar.gz [url] http://downloads.sourceforge.net/epiware/epiware_4.8.4.tar.gz#/url]

Detailed installation process: (the software I downloaded is under the/usr/public/directory. Customized by each user)

1: install apache first.

[Root @ localhost public] # tar-zxvf httpd-2.2.6.tar.gz

[Root @ localhost public] # httpd-2.2.6 cd

[Root @ localhost httpd-2.2.6] #./configure -- prefix =/apache # occasionally installed under/apache

[Root @ localhost httpd-2.2.6] # make

[Root @ localhost httpd-2.2.6] # make install # OK, nothing unexpected, everything OK. In an accident, go to google.

2: Install mysql.

[Root @ localhost public] # tar-zxvf mysql-5.0.45-linux-i686.tar.gz

[Root @ localhost public] # mv mysql-5.0.45-linux-i686/usr/local/mysql

[Root @ localhost public] # cd/usr/local/mysql/

[Root @ localhost mysql] # groupadd mysql

[Root @ localhost mysql] # useradd-g mysql

[Root @ localhost mysql] # chown-R mysql.

[Root @ localhost mysql] # chgrp-R mysql.

[Root @ localhost mysql] # scripts/mysql_install_db -- user = mysql

[Root @ localhost mysql] # chown-R root.

[Root @ localhost mysql] # chown-R mysql data

[Root @ localhost mysql] # bin/mysqld_safe -- user = mysql &

# Under normal circumstances, mysql can run normally, but I encountered many problems here, so I will not say much about it. Later I went to find the problem method.

[Root @ localhost mysql] # Bin/mysqladmin-u password 1234

[Root @ localhost mysql] # cd/etc/init. d/

[Root @ localhost init. d] # cp/usr/local/mysql/support-files/mysql. server mysql

[Root @ localhost init. d] # chkconfig -- add mysql

[Root @ localhost init. d] # chkconfig mysql on

[Root @ localhost init. d] # chkconfig -- list mysql

Mysql 0: off 1: off 2: on 3: on 4: on 5: on 6: off

2: PHP is installed,

[Root @ localhost init. d] # cd/var/public/

[Root @ localhost public] # php-5.2.4 cd

[Root @ localhost php-5.2.4] #./configure -- with-mysql =/usr/local/mysql -- with-apxs2 =/apache/bin/apxs # Set it according to your own installation.

[Root @ localhost php-5.2.4] # make

[Root @ localhost php-5.2.4] # make install

# After the installation, We need to configure it in the http. conf file and add the following configurations:

[Root @ localhost php-5.2.4] # vi/apache/conf/httpd. conf

# Are you sure you have these configurations? If not, add them.

LoadModule php5_module modules/libphp5.so

AddType application/x-httpd-php. php. phtml

AddType application/x-httpd-php-source. phps

# Let's stop talking about it. Let's test it:

[Root @ localhost php-5.2.4] # vi/apache/htdocs/test. php

# Add the following project and test [url] http: // 10.66.77.126/test. php [/url] in a browser


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.