LAMP

--------------------------
mysql 安装
--------------------------
安装包:mysql-5.0.22.tar.gz 路径:/home/admin
# useradd mysql
# groupadd mysql
# cd /home/admin
# tar -zxvf mysql-5.0.22.tar.gz 得到mysql-5.0.22
# mv mysql-5.0.22 /usr/local/src/
# cd /usr/local/src/mysql-5.0.22
# ./configure --prefix=/usr/local/mysql
# make
# make install
# cp ./support-files/my-medium.cnf /etc/my.cnf
# cd /usr/local/mysql
# ./bin/mysql_mysql_install_db --user=mysql
# chown -R root .
# chown -R mysql var
# chown -R mysql .
# ./bin/mysqld_safe --user=mysql &

--------------------------
webmin 的安装和设定
--------------------------
安装包:webmin-1.270-1.noarch.rpm   路径:/home/admin
# cd /home/admin
# rpm -ivh webmin-1.270-1.noarch.rpm
注释:在您的浏览器输入:http://192.168.1.31:10000/
设定数据库的bin路径和打开方式:/usr/local/mysql/bin/mysqld_safe --user=mysql &


--------------------------
apache 的安装和设定
--------------------------
安装包:httpd-2.0.58.tar.gz    路径:/home/admin
# tar -zxvf httpd-2.0.58.tar.gz
# mv httpd-2.0.58 /usr/local/src/httpd-2.0.58
# cd /usr/local/src/httpd-2.0.58
# ./configure --prefix=/etc/httpd --enable-so --enable-module=shared --enable-mods-shared=all
# make && make install
# cp /etc/httpd/bin/apachectl /usr/sbin/httpd
# cp /etc/httpd/bin/apachectl /etc/rc.d/init.d/httpd
# vi ./conf/httpd.conf
修改ServerName 192.168.1.31:80
# /etc/rc.d/init.d/httpd -k start


--------------------------
jpeg包的安装和设定
--------------------------
安装包:jpegsrc.v6b.tar.gz 路径:/home/admin
# tar -zxvf jpegsrc.v6b.tar.gz
# mv jpeg-6b /usr/local/src/
# cd /usr/local/src/jpeg-6b
# ./configure
# make
# mkdir -p /usr/local/man/man1
# make install
# make install-lib


--------------------------
ttf包的安装和设定
--------------------------
安装包:freetype-2.2.1.tar.gz 路径:/home/admin
# tar -zxvf freetype-2.2.1.tar.gz
# mv freetype-2.2.1 /usr/local/src/
# cd /usr/local/src/freetype-2.2.1
# ./configure
# make && make install

--------------------------
zlib包的安装和设定
--------------------------
安装包:zlib-1.2.3.tar.gz
# tar -zxvf zlib-1.2.3.tar.gz
# mv zlib-1.2.3 /usr/local/src/zlib-1.2.3
# ./configure
# make && make install

--------------------------
libpng包的安装和设定
--------------------------
安装包:libpng-1.2.10.tar.gz
# tar -zxvf libpng-1.2.10.tar.gz
# mv libpng-1.2.10 /usr/local/src/libpng-1.2.10
# cd /usr/local/src/libpng-1.2.10
# cp ./scripts/makefile.gcmmx makefile
# make && make install


--------------------------
gd包的安装和设定
--------------------------
安装包:gd-2.0.33.tar.gz
# tar -zxvf gd-2.0.33.tar.gz
# mv gd-2.0.33 /usr/local/src/
# cd /usr/local/src/gd-2.0.33
# ./configure && make && make install
# cp gd.h /usr/local/lib/

--------------------------
xml包的安装和设定
--------------------------
安装包:libxml2-2.6.11.tar.gz
# tar -zxvf libxml2-2.6.11.tar.gz
# mv libxml2-2.6.11 /usr/local/src/
# cd /usr/local/src/libxml2-2.6.11
# ./configure
# make && make install

--------------------------
php5的安装和设定
--------------------------
安装包:php-5.0.1.tar.gz
# tar -zxvf php-5.0.1.tar.gz
# mv php-5.0.1 /usr/local/src/
# cd /usr/local/src/php-5.0.1
# ./configure --prefix=/usr/local/php --with-apxs2=/etc/httpd/bin/apxs --with-gd --with-jpeg-dir --with-ttf --with-zlib-dir --with-png-dir --with-mysql --enable-track-vars (--enable-mbstring //this is for phpmyadmin)
# make
# make test
# make install
# libtool --finish /usr/local/src/php-5.0.1/
# chmod 755 /etc/httpd/modules/libphp5.so
# cp php.ini-dist /usr/local/php/lib/php.ini

--------------------------
zend的安装和设定
--------------------------
安装包:ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz
# tar -zxvf ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gz
# cp ZendOptimizer-2.6.2 /usr/local/src/
# cd /usr/local/src/ZendOptimizer-2.6.2
# install.sh


--------------------------
apache配置文件的配置httpd.conf
--------------------------
# vi /etc/httpd/conf/httpd.conf
AddType application/x-httpd-php .php   //添加
AddType application/x-httpd-php-source .phps //添加
Load Module php5-module modules/libphp5.so
DirectoryIndex index.html index.html.var index.php //添加index.php

# /etc/rc.d/init.d/httpd restart


--------------------------
phpmyadmin的安装和设定
--------------------------
安装包:phpMyAdmin-2.8.1.tar.gz
# tar -zxvf phpMyAdmin-2.8.1
# mv phpMyAdmin-2.8.1 /etc/httpd/htdocs/phpmyadmin
# cd /etc/httpd/htdocs/phpmyadmin
# cp ./libraries/config.default.php ../config.inc.php
# vi config.inc.php   //修改成如下:
$cfg['Servers'][$i]['host']          = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port']          = '3306';          // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket']        = '';          // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['extension']     = 'mysql';     // The php MySQL extension to use ('mysql' or 'mysqli')
$cfg['Servers'][$i]['compress']      = FALSE;       // Use compressed protocol for the MySQL connection
                                                    // (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser']   = 'root';          // MySQL control user settings
                                                    // (this user must have read-only
$cfg['Servers'][$i]['controlpass']   = 'linuxx';          // access to the "mysql/user"
                                                    // and "mysql/db" tables).
                                                    // The controluser is also
                                                    // used for all relational
                                                    // features (pmadb)
$cfg['Servers'][$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = 'root';      // MySQL user
$cfg['Servers'][$i]['password']      = 'linuxx';          // MySQL password (only needed
                                                    // with 'config' auth_type)
$cfg['Servers'][$i]['only_db']       = '';          // If set to a db-name, only
                                                    // this db is displayed in l

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值