免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1000 | 回复: 0
打印 上一主题 下一主题

lamp---安装 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-11-03 21:18 |只看该作者 |倒序浏览
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

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/52542/showart_413990.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP