Linux LAMP service rpm package installation and configuration basic tutorial

  

1.apache (httpd) where the CD package apr-xxx.rpm (b) postgresql-libs-xxx.rpm (b) apr-util-xxx.rpm (2) http-xxx.rpm (2)

2.mysql (2) Packing perl-DBI-xxx.rpm (2) mysql-xxx.rpm (2)

3 .mysqlserver package perl-DBD-mysql-xxx.rpm (two) mysql-server-xxx.rpm (two)

4.PHP
package gmp-xxx.rpm (two ) php-common-xxx.rpm (b) php-cli-xxx.rpm (b) php-xx.rpm (b)

5.php-devel

imake-xxx. Rpm (2) autoconf-xxx.rpm (2) automake-xxx.rpm (2) php-devel-xxx.rpm (3)

6.Php-mysql

php-pdo -xxx.rpm (2) (php-common-rpm) php-mysql-xxx.rpm (3)

Start mysql

mysqllodmin -u root password 1234mysql -u root -p # Modify mysql password

Create mysql user and modify its password mysql>show databases; #View there are several databases mysql>create database shujuku; #新建database mysql>exit; #退databaseNote: Must execute the command must To add “;” Otherwise the system will automatically execute

/Etc/httpd/conf/httpd.confModify AddDefaultcharset GB2313 #Change the language to Simplified Chinese

/var/www/html/# touch phpinfo.php The content is as follows: <?phpphpinfo();?>

/var/www/html/#mkdir bbs

Unzip the forum site and put bbs and give it permission 777

Test client access http://server /bbs(forums)/install.php

OVER……

Copyright © Windows knowledge All Rights Reserved