最新活动:电脑PC端+手机端+微网站+自适应网页多模板选择-建站388元起价!!!
当前位置:主页 > 网站建设 > Centos6 - VestaCP面板以及suphp模块安装建站文章

Centos6 - VestaCP面板以及suphp模块安装建站文章

时间:2023-05-28 20:05:28 阅读: 文章分类: 网站建设 作者: 网络小编

导读:建站文章建站文章 vesta面板基于LANMP环境,简洁开源非常不错,以下代码仅限Centos6有效,已在https://www.kvmla.com/cheap.html的VP网站建设多少钱网站建设教程。

网站建设多少钱网站建设教程

vesta面板基于LANMP环境,简洁开源非常不错,

以下代码仅限Centos6有效,已在https://www.kvmla.com/cheap.html的VPS上进行测试安装并使用。 安装vesta

yum remove httpd* bind* -y rm -rf /etc/httpd wget http://vestacp.com/pub/vst-install.sh bash vst-install.sh -f -n -e youmail@yourmail.com #换成你的邮箱

安装设置suphp

wget http://down.kvm.la/vesta/cn.txt -O /usr/local/vesta/web/inc/i18n/cn.php wget http://down.kvm.la/vesta/conf_templates/apache_suphp.tpl -O /usr/local/vesta/data/templates/web/httpd/suphp.tpl wget http://down.kvm.la/vesta/conf_templates/apache_suphp.stpl -O /usr/local/vesta/data/templates/web/httpd/suphp.stpl wget http://down.kvm.la/vesta/conf_templates/nginx_suphp.tpl -O /usr/local/vesta/data/templates/web/nginx/suphp.tpl wget http://down.kvm.la/vesta/conf_templates/nginx_suphp.stpl -O /usr/local/vesta/data/templates/web/nginxsuphp.stpl wget http://down.kvm.la/vesta/packages/suphp.pkg -O /usr/local/vesta/data/packages/suphp.pkg chattr -i /home/admin/conf mv /home/admin/conf /usr/local/vesta/data/users/admin/ sed -i 's#AddDefaultCharset UTF-8#AddDefaultCharset OFF#g' /etc/httpd/conf/httpd.conf sed -i 's#\$HOMEDIR/\$user/conf/web/ssl.#\$USER_DATA/\$user/ssl/#g' /usr/local/vesta/func/* sed -i 's#\$HOMEDIR/\$user/conf/#\$VESTA/data/users/\$user/conf/#g' /usr/local/vesta/bin/* sed -i 's#/home#/usr/local/vesta/data/users#g' /etc/httpd/conf.d/vesta.conf /usr/local/vesta/data/users/*/conf/web/*.conf sed -i 's#%home%#/usr/local/vesta/data/users#g' /usr/local/vesta/data/templates/web/httpd/* /usr/local/vesta/data/templates/web/nginx/* sed -i 's#%/\$HOMEDIR/$user/conf/web/ssl\.#\$USER_DATA/ssl/#g' /usr/local/vesta/* sed -i 's#en#cn#g' /usr/local/vesta/data/users/*/user.conf /usr/local/vesta/conf/vesta.conf sed -i "s/PACKAGE='default'/PACKAGE='suphp'/g" /usr/local/vesta/data/users/*/user.conf sed -i "s/WEB_TEMPLATE='default'/WEB_TEMPLATE='suphp'/g" /usr/local/vesta/data/users/*/user.conf sed -i "s#mkdir \$HOMEDIR/\$user/conf#\#mkdir \$HOMEDIR/\$user/conf#g" /usr/local/vesta/bin/v-add-user sed -i "s#chmod a+x \$HOMEDIR/\$user#\#chmod a+x \$HOMEDIR/\$user#g" /usr/local/vesta/bin/v-add-user sed -i "s#chattr +i \$HOMEDIR/\$user/conf#\#chattr +i \$HOMEDIR/\$user/conf#g" /usr/local/vesta/bin/v-add-user sed -i "s#chattr -i \$HOMEDIR/\$user/conf#\#chattr -i \$HOMEDIR/\$user/conf#g" /usr/local/vesta/bin/v-delete-user yum -y --skip-broken install gcc gcc-c++ libtool-libs libtool autoconf subversion zip unzip wget crontabs iptables file bison patch mlocate flex diffutils automake imake make cmake kernel-devel cpp vim-minimal yum -y --skip-broken install httpd-devel cd /tmp wget -c http://www.suphp.org/download/suphp-0.7.1.tar.gz tar -xzf suphp-0.7.1.tar.gz cd suphp-0.7.1 ./configure --quiet --prefix=/usr --sysconfdir=/etc --with-apr=/usr/bin/apr-1-config --with-apxs=/usr/sbin/apxs --with-apache-user=apache --with-setid-mode=paranoid --with-php=/usr/bin/php-cgi --with-logfile=/var/log/httpd/suphp_log --enable-SUPHP_USE_USERGROUP=yes make -j12 && make install wget http://down.kvm.la/conf/suphp.conf -O /etc/suphp.conf sed -i 's#;x-httpd-php54="php:/opt/php54/bin/php-cgi"#x-httpd-php54="php:/usr/bin/php-cgi"#g' /etc/sseo网站排名优化软件uphp.conf if [ `uname -m` == "x86_64" ]; then archlib="lib64"; else archlib="lib"; fi cat>/etc/httpd/conf.d/php.conf

关键词标签: VestaCP

声明: 本文由我的SEOUC技术文章主页发布于:2023-05-28 ,文章Centos6 - VestaCP面板以及suphp模块安装建站文章主要讲述VestaCP网站建设源码以及服务器配置搭建相关技术文章。转载请保留链接: https://www.seouc.com/article/web_12036.html

我的IDC 网站建设技术SEOUC.COM
专注网站建设,SEO优化,小程序设计制作搭建开发定制网站等,数千家网站定制开发案例,网站推广技术服务。
  • 5000+合作客服
  • 8年从业经验
  • 150+覆盖行业
  • 最新热门源码技术文章