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.