directadmin

你可以通过运行来检查Apache的当前版本 /usr/sbin/httpd -v CustomBuild - 当前 如果您正在使用custombuild(因为大多数新盒子都是),请运行以下命令 cd /usr/local/directadmin/custombuild ./build update ./b

更新Apache到最新版本

来源:梦飞科技 作者:梦飞 浏览量:136 更新:2018-04-18
你可以通过运行来检查Apache的当前版本

/usr/sbin/httpd -v





CustomBuild - 当前

如果您正在使用custombuild(因为大多数新盒子都是),请运行以下命令

cd /usr/local/directadmin/custombuild
./build update
./build apache
./build php n
./build rewrite_confs





CustomApache
 
如果您最近使用的是带有1.3版apache的customapache,请运行以下命令:

cd /usr/local/directadmin/customapache
./build clean
./build update
./build apache_mod_ssl

如果您使用的是Apache 2.x,请使用“./build apache_2”而不是apache_mod_ssl。
这应该将配置选项和apache的版本更新为最新版本。 更新完成后,您需要重新启动apache:

RedHat:

/sbin/service httpd restart


FreeBSD:

/usr/local/etc/rc.d/httpd restart

 
部分文章来源与网络,若有侵权请联系站长删除!