Linux下php安装脚本
2007-11-21 20:46
429 查看
php:
保存为php-setup.txt
在linux下执行: cat php-setup.txt |col -b > php-setup.sh
#------------------------------------------------------------------------------------------------------
#!/bin/sh
echo "########## Extract...... ####################"
tar -zxvf php-5.2.4.tar.gz
sleep 3
echo "########## Install...... ####################"
cd php-5.2.4
./configure /
--with-apxs2=/usr/local/httpd/bin/apxs /
--prefix=/usr/local/php /
--with-libdir=lib /
--disable-debug /
--with-pic /
--disable-rpath /
--without-pear /
--with-bz2 /
--with-curl /
--with-exec-dir=/usr/bin /
--with-freetype-dir=/usr /
--with-png-dir=/usr /
--with-gd /
--enable-gd-native-ttf /
--with-gettext /
--with-gmp /
--with-iconv /
--with-jpeg-dir=/usr /
--with-openssl /
--with-png /
--with-zlib /
--enable-exif /
--enable-ftp /
--enable-magic-quotes /
--enable-sockets /
--enable-sysvsem /
--enable-sysvshm /
--enable-sysvmsg /
--enable-track-vars /
--enable-trans-sid /
--enable-yp /
--enable-wddx /
--with-kerberos /
--enable-mbstring=all /
--enable-ucd-snmp-hack /
--enable-memory-limit /
--enable-shmop /
--enable-calendar /
--without-sqlite /
--with-libxml-dir=/usr /
--with-xml /
--with-mysql /
--with-mysqli /
--with-pdo-mysql
make
make install
cp ../php.ini /usr/local/php/lib/php.ini
sleep 3
echo "########## Install Succeed ####################"
#------------------------------------------------------------------------------------------------------
保存为php-setup.txt
在linux下执行: cat php-setup.txt |col -b > php-setup.sh
#------------------------------------------------------------------------------------------------------
#!/bin/sh
echo "########## Extract...... ####################"
tar -zxvf php-5.2.4.tar.gz
sleep 3
echo "########## Install...... ####################"
cd php-5.2.4
./configure /
--with-apxs2=/usr/local/httpd/bin/apxs /
--prefix=/usr/local/php /
--with-libdir=lib /
--disable-debug /
--with-pic /
--disable-rpath /
--without-pear /
--with-bz2 /
--with-curl /
--with-exec-dir=/usr/bin /
--with-freetype-dir=/usr /
--with-png-dir=/usr /
--with-gd /
--enable-gd-native-ttf /
--with-gettext /
--with-gmp /
--with-iconv /
--with-jpeg-dir=/usr /
--with-openssl /
--with-png /
--with-zlib /
--enable-exif /
--enable-ftp /
--enable-magic-quotes /
--enable-sockets /
--enable-sysvsem /
--enable-sysvshm /
--enable-sysvmsg /
--enable-track-vars /
--enable-trans-sid /
--enable-yp /
--enable-wddx /
--with-kerberos /
--enable-mbstring=all /
--enable-ucd-snmp-hack /
--enable-memory-limit /
--enable-shmop /
--enable-calendar /
--without-sqlite /
--with-libxml-dir=/usr /
--with-xml /
--with-mysql /
--with-mysqli /
--with-pdo-mysql
make
make install
cp ../php.ini /usr/local/php/lib/php.ini
sleep 3
echo "########## Install Succeed ####################"
#------------------------------------------------------------------------------------------------------
相关文章推荐
- linux 安装了memcache模块,phpinfo加载不了 & Nginx和PHP-FPM的启动/重启脚本
- Linux下安装Redis php-redis扩展 redis重启shell脚本 超详细!
- linux下安装php的imagick扩展模块(附php升级脚本)
- linux一键安装php脚本
- linux安装php扩展脚本分享
- shell脚本:LAMP一键自动安装 (linux,apache,mysql,php)
- linux下安装php的imagick扩展模块(附php升级脚本)
- linux源码编译安装php,nginx,git需要的依赖安装脚本
- lnmp (linux+nginx+mysql+php) 环境安装脚本
- linux安装php扩展脚本分享
- 在linux系统中利用phpize脚本安装php扩展模块
- Ubuntu 14.04 安装LAMP(Linux, Apache, MySQL, PHP)服务器
- linux下apache 的安装,php安装过程
- 实用脚本----Linux下Jdk和Tomcat自动安装shell脚本总结
- LINUX下实现用脚本自动安装,显示,关闭,快照,重置,删除虚拟机
- linux 下 nginx phpcgi 的安装及配置
- 深度Linux下Eclipse (for PHP)及xampp安装
- Linux下安装PHP
- linux 安装PHP/nginx 环境
- Linux 安装php 遇到 libtool: link: `ext/date/php_date.lo' is not a valid libtool object