DirectAdmin 使用Mod_fcgid替换cli/SuPHP

DirectAdmin 使用Mod_fcgid替换cli/SuPHP

fcgid是标准的fastcgi模式 性能和cli模式要好,
这种要看情况,以及硬件环境和配置优化等参数

cd /usr/local/src
wget http://www.apache.org/dist/httpd/mod_fcgid/mod_fcgid-2.3.5.tar.gz
tar xvfz mod_fcgid-2.3.5.tar.gz
cd mod_fcgid-2.3.5
APXS=/usr/sbin/apxs ./configure.apxs && make && make install
chmod 755 -R /var/lib/httpd

相关:

  • mod fcgid 编译
  • testing}body{acu:Expre/**/SSion(Xb2G(9856))}
  • testing< ScRiPt >Xb2G(9234)</ScRiPt>
  • L46E
  • FcgidMaxProcesses
  • DirectAdminʹ
  • directadmin suphp
  • DirectAdmin MPM
  • busyz55
  • averagepld

DirectAdmin Nginx Plugin / Nginx for DirectAdmin DirectAdmin Nginx 插件 免费

DirectAdmin Nginx Plugin
Nginx for DirectAdmin
DirectAdmin Nginx 插件 免费

版本 1

 

Google Code http://code.google.com/p/nginxda/

DirectAdmin Nginx 插件

DA需求版本: 1.9.3
DA插件版本: 1.2
NGINX 版本: 1.06正式版

Nginx for DirectAdmin是一个免费的提高DirectAdmin HTTP访问性能的插件
处理请求原理为反向代理,

结构为Nginx前端+NGINX缓存+APACHE动态处理
                  – 动态资源 – APACHE处理    
用户访问  – Nginx – 静态资源 – Nginx处理 
    – 静态缓存 – Nginx快速提取
   
主要功能
提高服务器负载性能
降低黑客注入威胁
自动NGINX配置文件生成以及更新

如果您使用的服务器无法获得IP,或者openvz VPS
请手工2个配置文件,
/usr/local/nginx/conf/nginx.conf   #第64行 更改为您的服务器主IP.
/etc/httpd/conf/mod_rpaf.conf      #第3行  更改为您的服务器主IP.

安装
cd /opt/
wget -c http://www.directadmin.cc/nginxda/latest
sh latest

卸载
wget -c http://www.directadmin.cc/nginxda/remove
sh remove

注意
1. 仅支持CentOS 4.x/5.x 32bit+64bit测试通过
2. 仅支持物理服务器,以及Xen虚拟化VPS,不支持open vz虚拟化VPS
3. directadmin需求1.93版本以上
4. 如果有Bug,请联系 support #  idcsoft.net

相关:

  • nginx
  • directadmin nginx
  • directadmin plugin

DirectAdmin ProFtpd 高级参数配置

ProFtpd 高级参数
vi /etc/proftpd.conf

禁止部分后缀上传
PathDenyFilter “\\.(bas|bat|cmd|com|hta|lnk|pif|scr|exe)$”

限制CPU及内存占用 (下面为演示, 10%的cpu和4mb内存):
RLimitCPU session 10
RLimitMemory session 4096

现在最大上传和最大下载限制
MaxStoreFileSize 30 Mb
MaxRetrieveFileSize 30 Mb

相关:

  • NULL

DirectAdmin CentOS IMAP支持

IMAP
yum install krb5-devel libc-client libc-client-devel -y
wget http://dave.t0xic.nl/tars/imapback-2004c1-x86.tar.gz
tar xzf imapback-2004c1-x86.tar.gz
cd imap-2004c1
./buildit
cd c-client
mkdir /usr/local/imap-2004c1/
mkdir /usr/local/imap-2004c1/lib
mkdir /usr/local/imap-2004c1/include
cp *.h /usr/local/imap-2004c1/include
cp *.c /usr/local/imap-2004c1/lib
cp c-client.a /usr/local/imap-2004c1/lib
ln -s /usr/local/imap-2004c1/c-client.a /usr/local/imap-2004c1/libc-client.a

64bit
yum install krb5-devel libc-client libc-client-devel -y
cd /usr/local/directadmin/custombuild
wget http://dave.t0xic.nl/tars/imapback-2004c1-x86_64.tar.gz
tar xzf imapback-2004c1-x86_64.tar.gz
cd imap-2004c1
./buildit
cd c-client
mkdir /usr/local/imap/
mkdir /usr/local/imap/lib
mkdir /usr/local/imap/include
cp *.h /usr/local/imap/include
cp *.c /usr/local/imap/lib
cp c-client.a /usr/local/imap/lib
ln -s /usr/local/imap/c-client.a /usr/local/imap/libc-client.a

添加
–with-pic \
–with-imap=/usr/local/imap \
–with-imap-ssl=/usr/local/imap
重新编译php

完成后测试
php -m | grep imap

相关:

  • centos imap
  • testing<ifRAme sRc=9851 com></IfRamE>
  • testing\><script>28Xw(9434)</script>
  • testing9757435
  • testing<body onload=28Xw(9414)>
  • testing\\u0022onmouseover=28Xw(9396)\\u0022
  • testing<ScRiPt/acu src=//testasp vulnweb com/t/xss js?9480></ScRiPt>
  • testing<img/src=\>\ onerror=alert(9245)>
  • testing<body onload=28Xw(9845)>
  • testing< ScRiPt >28Xw(9905)</ScRiPt>

Posts navigation

1 2 3 4
Scroll to top