提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等
温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的
[教程] imagemagick_install.sh
#!/bin/bash# ---------------------------------------------------------------------------# Filename: imagemagick_install.sh # Date: Mar.2012 # Author: Aiminick Wong # Email: aiminick@qq.com # Website: www.openfans.org# Description: ImageMagick Auto-install script # Notes: It is a sub-part of Qlnmp# ---------------------------------------------------------------------------# Copyleft: 2012 (c) openfans.org # Version: 2.0# ---------------------------------------------------------------------------#if [ $(id -u) != "0" ]; then printf "Error: You must be root to run this script!\n" exit 1fiexport php_directory="$app_directory/php"php_bin="$php_directory/bin"php_ini="$php_directory/etc/php.ini"#Directory name listd_imagemagick=`cat $f_pkg_list | grep imagemagick | awk '{print $2}'`d_imagick=`cat $f_pkg_list | grep imagick | awk '{print $2}'`#Package name listp_imagemagick="$d_imagemagick.tar.gz"p_imagick="$d_imagick.tgz"####################################################################################################################echo "Time-$(date +%D-%H:%M:%S)-Step-#########-Install ImageMagick-#########" >>$setup_log_filetar zxvf $pkg_directory/$p_imagemagick -C $cache_directorycd $cache_directory/$d_imagemagick./configure --prefix=$app_directory/imagemagick && make && make installcd $qlnmp_idrm -rf $cache_directory/$d_imagemagicksed -i '/imagemagick*/d' $f_pkg_info_listecho "imagemagick installed $d_imagemagick">>$f_pkg_info_listecho "----- Imagemagic intall completed ! -----"echo "Time-$(date +%D-%H:%M:%S)-Step-#########-ImageMagick install completed-#########" >>$setup_log_file####################################################################################################################echo "Time-$(date +%D-%H:%M:%S)-Step-#########-Install imagick-#########" >>$setup_log_filetar zxvf $pkg_directory/$p_imagick -C $cache_directorycd $cache_directory/$d_imagickexport PKG_CONFIG_PATH="$app_directory/imagemagick/lib/pkgconfig"$php_bin/phpize./configure --with-php-config=$php_bin/php-config --with-imagick=$app_directory/imagemagickmake make installsed -i 's#;extension_imagick#extension = "imagick.so"#' $php_ini cd $qlnmp_idrm -rf $cache_directory/$d_imagickrm -rf $cache_directory/package.xmlsed -i '/imagick*/d' $f_pkg_info_listecho "imagick installed $d_imagick">>$f_pkg_info_listsed -i '/Imagick*/d' $f_pkg_status_listecho "Imagick Status Used">>$f_pkg_status_listecho "----- Imagemagic intall completed ! -----"echo "Time-$(date +%D-%H:%M:%S)-Step-#########-Imagick install completed-#########" >>$setup_log_file####################################################################################################################chmod 755 $cwphpd. $cwphpd 2>>$setup_log_filecd $qlnmp_id |