Chinaunix首页 | 论坛 | 博客
  • 博客访问: 262956
  • 博文数量: 47
  • 博客积分: 1516
  • 博客等级: 上尉
  • 技术积分: 507
  • 用 户 组: 普通用户
  • 注册时间: 2005-04-29 09:23
文章分类

全部博文(47)

文章存档

2009年(1)

2008年(3)

2007年(1)

2006年(36)

2005年(6)

分类: LINUX

2005-04-29 09:23:58

mysql+httpd+gd+php+zend的安装

安装mysql

     shell> groupadd mysql
     shell> useradd -g mysql mysql
     shell> cd /usr/local
     shell> gunzip < /PATH/TO/MYSQL-VERSION-OS.tar.gz | tar xvf -
     shell> ln -s FULL-PATH-TO-MYSQL-VERSION-OS mysql
     shell> cd mysql
     shell> scripts/mysql_install_db --user=mysql
     shell> chown -R root  .
     shell> chown -R mysql data
     shell> chgrp -R mysql .
     shell> bin/mysqld_safe --user=mysql &

 

修改MYSQL口令

#如果是5。0以上版本的mysqlpassword要修改为old_password(如果PHP的版本较低)
mysql>set password for
);

修改mysql 连接权限
GRANT ALL PRIVILEGES ON *.* TO
IDENTIFIED BY '1123456' WITH GRANT OPTION;

cp /etc/my.cnf /var/lib/my.cnf

安装httpd
tar zxvf httpd-2.0.52.tar.gz
cd httpd-2.0.52
./configure --prefix=/var/server/apache --enable-module=so --enable-shared=max --enable-so
make
make install
cd ..

安装libjpeg

tar zxvf libjpeg-6b.tar.gz
cd jpeg-6b
mkdir -p /usr/man/man1
./configure --enable-static --enable-shared --prefix=/usr
make
make install

安装linpng

tar xvf libpng-1.2.5.tar
cd libpng-1.2.5
cp scripts/makefile.std makefile
make
make install

安装GD

tar zxvf gd-2.0.28.tar.gz
cd gd-2.0.28
make
make install

安装PHP
tar zxvf php-4.3.9.tar.gz
cd php-4.3.9
./configure --with-mysql --with-apxs2=/var/server/apache/bin/apxs --with-gd --with-zlib --enable-versioning --with-jpeg-dir=/var/server --disable-debug --enable-track-vars
make
make install
cp php.ini-dist /usr/local/lib/php.ini
cd ..

 

在htttpd.conf加
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php3

加入默认首页
DirectoryIndex index.php

加入默认中文
AddDefaultCharset gb2312

安装zend

tar zxvf ZendOptimizer-2.5.5-linux-glibc21-i386.tar.gz
cd ZendOptimizer-2.5.5-linux-glibc21-i386
./install.sh

阅读(1881) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:mysql的最大连接数默认是100

给主人留下些什么吧!~~