#!/bin/bash
lamp的脚本
原创magicdafan ©著作权
©著作权归作者所有:来自51CTO博客作者magicdafan的原创作品,请联系作者获取转载授权,否则将追究法律责任
#install apache#
tar -jvxf httpd-2.2.16.tar.bz2
cd httpd-2.2.16
./configure --prefix=/usr/local/http --enable-so --enable-rewrite --with-mpm=worker
make && make install
/usr/local/http/bin/apachectl start
#mysql install#
tar -gvxf mysql-5.1.44.tar.gz
mount /dev/cdrom /mnt
cd /mnt/Server/
rpm -ivh ncurses-devel
./configure --prefix=/usr/local/mysql --with-extra-charsets=gbk,gb2312,utf8 --with-mysqld-user=mysql --enable-thread-safe-client
make && make install
chown -R mysql mysql
./mysqld_safe &
/usr/local/mysql/bin/mysqladmin -u root password "123456"
#install jpeg#
tar -jvxf libpng-1.4.4.tar.bz2
yum -y install zlib-devel
./configure --prefix=/usr/local/libpng
make && make install
#install jpeg#
tar -zvxf jpegsrc.v8b.tar.gz
./configure --prefix=/usr/local/jpeg
make && make install
#install freetype#
tar -zvxf freetype-2.1.10.tar.gz
./configure --prefix=/usr/local/freetype
make && make install
#install gd#
tar -zvxf gd-2.0.36RC1.tar.gz
./configure --prefix=/usr/local/gd --with-png=/usr/local/libpng --with-jpeg=/usr/local/jpeg --with-freetype=/usr/local/freetype
#install php#
tar -jvxf php-5.2.5.tar.bz2
./configure --prefix=/usr/local/php --enable-mbstring --with-apxs2=/usr/local/http/bin/apxs --with-mysql=/usr/local/mysql --with-config-file-path=/usr/local/php --with-libxml-dir=/usr/local/libxml2 --with-jpeg-dir=/usr/local/jpeg --with-png-dir=/usr/local/libpng --with-freetype-dir=/usr/local/freetype --with-gd=/usr/local/gd --enable-soap --enable-gd-native-ttf --enable-ftp --enable-exif --enable-xml --enable-sockets --enable-ucd-snmp-hack
vim /usr/local/http/conf/httpd.conf
AddType application/x-httpd-php .php
DirectoryIndex index.php index.html
echo "<? phpinfo(); ?>" > /usr/local/http/htdocs/index.php
service httpd stop
service httpd start
上一篇:samba客户端访问配置
下一篇:2013-1-29lamp作业

提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
lamp的shell脚本
lamp
lamp -
lamp的shell脚本优化
shell
shell -
LAMP 脚本配置安装
LAMP 完全安装 Mysql 基本设置解决Mysql 数据库导入数据中文是乱码 不识别gbk编码
配置 职场 休闲 LAMP 解决Mysql数据库导入数据中文是乱码 -
shell脚本的使用---if变量编写lamp管理脚本
shell脚本的使用---if变量编写lamp管理脚本
mysql 脚本 shell