Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1476107
  • 博文数量: 463
  • 博客积分: 10540
  • 博客等级: 上将
  • 技术积分: 5450
  • 用 户 组: 普通用户
  • 注册时间: 2006-11-12 08:30
文章分类

全部博文(463)

文章存档

2014年(2)

2012年(14)

2011年(42)

2010年(18)

2009年(78)

2008年(35)

2007年(182)

2006年(92)

我的朋友

分类: LINUX

2008-01-03 21:29:14

[Mysql install]
useradd -M -s /sbin/nologin mysql
./configure --prefix=/usr/local/mysql  --with-charset=gb2312 --with-extra-charset=all  --
without-innodb
make
make install
/usr/local/mysql/bin/mysql_install_db --user=mysql
chmod -R 750  /usr/local/mysql
chown -R mysql.mysql /usr/locla/mysql
cp support-files/my-medium.cnf /etc/my.cnf
#cp support-files/mysql.server /etc/init.d/mysqld
#chmod 700 /etc/init.d/mysqld
#chmod -R 750 /var/lib/mysql
#chown -R mysql.mysql /var/lib/mysql
#cd /usr/local/mysql/libexec
#cp mysqld mysqld.old
#strip mysqld
#chkconfig --add mysqld
#chkconfig --level 3 mysqld on
#vi /etc/rc.d/init.d/mysqld 启动时加上--user=mysql 查看并修改数据库路径
#service mysqld start
/usr/local/mysql/bin/mysqld_safe --user=mysql &
ln -s /usr/local/mysql/bin/mysql /sbin/mysql
ln -s /usr/local/mysql/mysqladmin /sbin/mysqladmin
GRANT ALL PRIVILEGES ON *.* TO   IDENTIFIED BY 'some_pass';
 
[Zlib install]
#./configure --prefix=/usr/local/zlib
./configure
make
make install
[Libpng install]
cp scripts/makefile.linux makefile
make
make install
[Freetype]
mkdir /usr/local/freetype
./configure --prefix=/usr/local/freetype
make
make install
[Jpegsrc]
mkdir  /usr/local/jpeg6
mkdir  /usr/local/jpeg6/bin
mkdir  /usr/local/jpeg6/lib
mkdir  /usr/local/jpeg6/include
mkdir  /usr/local/jpeg6/man
mkdir  /usr/local/jpeg6/man1
mkdir  /usr/local/jpeg6/man/man1
./configure --prefix=/usr/local/jpeg6/ --enable-shared --enable-static
make
make install
#make install-lib
[Libxml2]
./configure --prefix=/usr/local/libxml2
make
make install
cp xml2-config /usr/bin
[GD install]
./configure --prefix=/usr/local/gd --with-jpeg=/usr/local/jpeg6/ --with-png=/usr/local/lib/
--with-zlib=/usr/local/zlib --with-freetype=/usr/local/freetype/
make
make install

[apache install]
./configure --prefix=/usr/local/php --with-perl=/usr/bin/perl --with-suexec-
logfile=/usr/local/apache/logs --enable-v4-mapped --enable-user-tarck --enable-headers --
enable-deflate --enable-expires  --enable-status  --enable-http --enable-so --enable-mods-
shared=most
make
make install

[PHP]
mkdir /usr/local/php
./configure --prefix=/usr/local/php --with-mysql=/usr/local/mysql --with-
apxs2=/usr/local/apache/bin/apxs --enable-track-vars --enable-gd-native-ttf  --with-ttf --
with-gd=/usr/local/gd --with-freetype-dir=/usr/local/freetype --enable-ftp --with-jpeg --
with-png-dir=/usr/local/lib --with-gif --with-zlib --with-zlib-dir=/usr/include --enable-
sigchild  --with-iconv
make
make install
cp php.ini-dist /usr/local/php/lib/php.ini
vi /usr/local/apache/conf/httpd.conf
#AddType application/x-gzip.gz.tgz
#AddType application/x-httpd-php .php .phtml .php3 .inc
#AddType application/x-httpd-php-source .phps
#LoadModule php4_module        modules/libphp4.so
[Zend]
./install.sh
##input php.ini and apache bin path !!!
阅读(1331) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~