This is for my working space. So I would not concern about security on it. Just want to make it easy to do test on it.
---------------------------------------------------
[root@charlie ~]# yum install -y httpd php* mysql-server mod_ssl telnet
[root@charlie ~]# yum groupinstall "MySQL Database server"
[root@charlie ~]# yum groupinstall "MySQL Database client"
[root@charlie ~]# vim /etc/selinux/config
SELINUX=disabled
[root@charlie ~]# service iptables stop && chkconfig iptables off
[root@charlie ~]# vim /etc/httpd/conf/httpd.conf
ServerName charlie:80
#UserDir disabled
UserDir htdocs
<Directory /home/*/htdocs>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order allow,deny
Allow from all
Deny from all
</LimitExcept>
</Directory>
DirectoryIndex index.html index.html.var index.php
[root@charlie ~]# vim /etc/login.defs
UMASK 022
[root@charlie ~]# mkdir /etc/skel/htdocs/
[root@charlie ~]# vim /etc/bashrc
if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then
umask 002
else
umask 022
fi
No comments:
Post a Comment