vim /ect/httpd/conf/httpd.conf
<VirtualHost *:80>
ServerAdmin [email protected]
ServerName kimconnect.com
ServerAlias www.kimconnect.com
DocumentRoot /home/www/kimconnect.com/
# ErrorLog /home/www/kimconnect.com/logs/error.log
# CustomLog /home/www/kimconnect.com/logs/access.log combined
</VirtualHost>
Setup FTP Server:
vim /etc/vsftpd/vsftpd.conf
# line 12: no anonymous
anonymous_enable=
NO
# line 80,81: uncomment ( allow ascii mode )
ascii_upload_enable=YES
ascii_download_enable=YES
# line 95, 96: uncomment ( enable chroot )
chroot_local_user=NO
chroot_list_enable=YES
# line 98: uncomment ( specify chroot list )
chroot_list_file=/etc/vsftpd/chroot_list
# line 104: uncomment
ls_recurse_enable=YES
# add at the last line
# specify root directory ( if don’t specify, users’ home directory become FTP home directory)
local_root=/home/www/
# use localtime
use_localtime=YES
[root@www ~]#
vim /etc/vsftpd/chroot_list
# add users you allow to move over their home directory
kim
=========== set selinux to permit ftp change directory ============
setseboll -P ftp_home_dir on
======== memcached and shit =========
yum install memcached
vim /etc/php.ini
==== add this line ====
extension=memcache.so
chkconfig –add memcached
======= phpMyAdmin ===
vim /etc/httpd/conf.d/phpMyAdmin.conf
——– allow from LAN —–
Allow from 127.0.0.1 108.224.10.118 192.168.1.0/24
Categories: