The lamp environment configuration process of LinuxRehatas4
Source: Internet
Author: User
The lamp environment configuration process of LinuxRehatas4-Linux Enterprise Application-Linux server application information. See the following for details. After installing Redhat, you must install the development tools on the system disk, because the basic GCC compilation is required.
Download MYSQL: wget (find it on the official website)
Decompression: tar zxvf mysql-5.0.33.tar.tgz
Cd mysql-5.0.33
./Configure -- prefix =/usr/local/mysql
Make
Make install
/Usr/local/mysql/bin/mysql_install_db
Useradd mysql
Cd/usr/local/mysql
Chgrp-R mysql ./*
Cd./var
Chgrp-R mysql ./*
Chown-R mysql ./*
Chmod 777/usr/local/mysql/var
Chgrp-R mysql/usr/local/mysql
Chmod 777/usr/local/mysql/lib/mysql/libmysqlclient.
Start after Configuration
/Usr/local/mysql/bin/mysqld_safe -- user = mysql &
Run the TOP command to check whether there is a MYSQL process. I can check whether there is any problem. If you fail, you can find an error in/usr/loval/mysql/var/xxxx. err. It is usually a permission error. If you do more chown and chgrp, it will be OK.
Go to mysql
/Usr/local/mysql/bin/mysql
Download APACHE: wget (find your own site), decompress: tar zxvf httpd-2.2.4.tar.gz
Httpd-2.2.4/cd
Set the maximum number of threads for modifying apache
Vi/include/httpd. h
Set # define DYNAMIC_MODULE_LIMIT 128
Change to # define DYNAMIC_MODULE_LIMIT 2560
./Configure -- prefix =/usr/local/apache -- enable-module = so -- enable-module = rewrite
Make
Make install
Start after installation
/Usr/local/apache/bin/apachectl start
After the startup is successful, enter the IP address in the browser to view the default page!
Download php: wget (find your own site) unzip: tar zxvf php-4.4.6.tar.gz
./Configure -- prefix =/usr/local/php -- with-apxs2 =/usr/local/apache/bin/apxs -- with-mysql =/usr/local/mysql
Make & make install
Open httpd. conf in apache and add PHP suffix file parsing.
Vi/usr/local/apache/conf/httpd. conf
Insert AddType application/x-httpd-php. php
Save it. Start APACHE
/Usr/local/apache/bin/apachectl start
All of the above are my configuration processes. Hope someone can use them!
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.