perloader

#wget http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm
#rpm -Uvh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm

yum update

yum install httpd

iptables -F

service httpd restart

#systemctl restart httpd.service

#sestatus

setenforce 0

ip访问 “It works!”

yum install php

yum install perl-CGI perl-libwww-perl.noarch perl-DBI perl-DBD-MySQL perl-GD perl-Cache-Memcached

添加域名,/etc/httpd/conf/httpd.conf

LimitRequestBody 10485760000

AddHandler cgi-script .cgi .py .sh .pl

<VirtualHost *:80>
ServerName ru01.jolinfile.com
DocumentRoot /var/www/html/ru01
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/html/ru01/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>

ScriptAlias /cgi-bin/ /home/wwwroot/ru01/cgi-bin/

#ScriptAlias /cgi-bin/ /var/www/html/ru01/cgi-bin/
<Directory “/home/wwwroot/ru01/cgi-bin”>
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

</VirtualHost>

 

mkdir /home/wwwroot/ru01

ln -s /home/wwwroot/ru01 /var/www/html/ru01

chown -R apache:apache /var/www/html/ru01

service httpd restart

修改XFSConfig.pm文件上传大小设置

上传

chmod 777 -R /home/wwwroot/test
chmod 666 XFSConfig.pm
chmod 755 uu.cgi api.cgi dl.cgi upload.cgi up.cgi transfer.pl
chmod 777 logs uploads temp
chmod 777 /var/www/html/test/files /var/www/html/test/i /var/www/html/test/tmp

crontab -e
* * * * * cd /var/www/cgi-bin;./transfer.pl >/dev/null 2>&1

xyz