Install lamp and discuz under Redhat Linux AS4

Source: Internet
Author: User
Tags linux

The simplest configuration of lamp

Do this thing, just start to feel very difficult, do not want to try, later friends said to get a forum to try, so the first try. I was going to learn iptables first. Now first learn the basics of lamp.

Read the online introduction and bird Brother's things, the installation process is basically as follows:

The software is as follows:

Mysql:mysql-4.0.21.tar.gz (just started to install the RPM, but can not find the configuration of the file, and so on their own compilation)

Php:php-4.4.2.tar.gz

apache:httpd-2.2.0.tar.bz2

Discuz!_4.1.0_sc_gbk.zip (all of which are contained in CU)

First, install MySQL

mkdir /usr/local/mysql
groupadd mysql
useradd -g mysql mysql
tar -zxvf mysql4.0.21.tar.gz -C /usr/local/src
cd /usr/local/src/mysql4.0.21
./configure --prefix=/usr/local/mysql --with-charset='gbk'

#这里后来看到很多相关的, there will be GBK errors when installing discuz!, plus--with-charset= ' GBK ' can

Make

Make install

CP SUPPORT-FILES/MY-MEDIUM.CNF/ETC/MY.CNF

# (this folder is in the original compiled directory) asks if you want to overwrite, enter "Y"

Cd/usr/local/mysql

CD bin

./mysql_install_db--user=mysql

#这儿的user一定是mysql

Chown-r Root.

Chown-r mysql var

Chown-r MySQL.

Bin/mysqld_safe--user=mysql &

#也要用mysql用户运行

#如果这里没什么问题的话, it should be OK, installed.

And then add MySQL to boot:

#鸟哥是这样讲的:

Start the machine immediately!

# vi/etc/rc.d/rc.local

# Add the bottom line to this file.

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.