digitalocean setup centos 6

install server

1 install virtualmin
- chmod +x install.sh
- ./install.sh
2 add repo
- rpm -Uvh remi-release-6*.rpm epel-release-6*.rpm
- yum install yum-priorities
3 chang config
- vi /etc/yum.repos.d/epel.repo
[epel]
name=Extra Packages for Enterprise Linux 6 – $basearch
failovermethod=priority
enabled=1
priority=10
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
[...]
- vi /etc/yum.repos.d/remi.repo
[remi]
name=Les RPM de remi pour Enterprise Linux $releasever – $basearch
enabled=1
priority=10
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
failovermethod=priority
[remi-test]
name=Les RPM de remi en test pour Enterprise Linux $releasever – $basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi
4 update
- yum update
6 ??? php.conf (httpd.conf)
- comment files match
- php_value_*
#<FilesMatch \.phpvi /etc/httpd/conf/httpd.confgt;
#    SetHandler application/x-httpd-php
#</FilesMatch>
install memcache
1 # yum install memcached
2 chang config
- # vi /etc/sysconfig/memcached
3 memcache start
- # chkconfig –levels 235 memcached on
- # /etc/init.d/memcached start
- # /etc/init.d/memcached restart
4 php extension
- # yum install php-pecl-memcache
5 php lib
- # yum install php-pecl-memcache
install mcrypt
mcrypt on CentOS 6.4
Install mcrypt extension
yum update
yes to all.
yum install php-mcrypt.
service httpd restart.
enable mod_rewrite
vi /etc/httpd/conf/httpd.conf
แก้ AllowOverride None เป็น AllowOverride All ในส่วนของ .htaccess
ถ้า .htaccess มี Options +FollowSymlinks ให้แก้เป็น Options +SymLinksifOwnerMatch
ใส่ไฟล์ .favicon.ico ด้วย เป็นไฟล์ icon website บน centos จะ require ถ้าไม่มี

Related posts:

This entry was posted in knowledge. Bookmark the permalink.