下載phpmyadmin
wget https://files.phpmyadmin.net/phpMyAdmin/4.4.15.4/phpMyAdm
in-4.4.15.5-all-languages.zip
解壓縮phpmyadmin
unzip /var/www/html/phpMyAdmin-4.4.15.5-all-languages.zip
更名phpmyadmin
mv phpMyAdmin-4.4.15.5-all-languages phpMyAdmin-3Cats
-------------------------------------------------
Enable EPEL repository
yum install phpmyadmin –y
vim /etc/httpd/conf.d/phpMyAdmin.conf
Allow from X.X.X.X
2016年3月10日 星期四
Install SFS3
cd /var/www/html
wget http://sfscvs.tc.edu.tw/sfs_stable5.tar.gz
tar zxvf sfs_stable5.tar.gz
ls -al
vim /etc/locale.conf
LANG="zh_TW.Big5"
vim /etc/httpd/conf/httpd.conf
Options Indexes FollowSymLinks --> Options FollowSymLinks
AddDefaultCharset UTF-8 --> AddDefaultCharset big5
vim /etc/my.cnf
[mysqld]
default-storage-engine=MyISAM
vim /etc/php.ini
error_reporting = E_ALL & ~E_NOTICE
date.timezone = "Asia/Taipei"
short_open_tag = On
max_execution_time = 300
upload_max_filesize = 20M
post_max_size = 20M
yum install php-pear php-bcmath -y
pear -d preferred_state=beta install Crypt_DiffieHellman
pear install Crypt_CBC
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-releaselatest-7.noarch.rpm
yum install php-mcrypt -y
systemctl restart httpd.service
cd /var/www/html
sh setup.sh
--------------------------------------------------
WEB Install
http://x.x.x.x/sfs3/install.php -------------------------------------------------
vim /etc/httpd/conf/httpd.conf
chmod 644 /var/www/html/sfs3/include/config.php
rm -f /var/www/html/sfs3/install.php
systemctl restart httpd.service
wget http://sfscvs.tc.edu.tw/sfs_stable5.tar.gz
tar zxvf sfs_stable5.tar.gz
ls -al
vim /etc/locale.conf
LANG="zh_TW.Big5"
vim /etc/httpd/conf/httpd.conf
Options Indexes FollowSymLinks --> Options FollowSymLinks
AddDefaultCharset UTF-8 --> AddDefaultCharset big5
vim /etc/my.cnf
[mysqld]
default-storage-engine=MyISAM
vim /etc/php.ini
error_reporting = E_ALL & ~E_NOTICE
date.timezone = "Asia/Taipei"
short_open_tag = On
max_execution_time = 300
upload_max_filesize = 20M
post_max_size = 20M
yum install php-pear php-bcmath -y
pear -d preferred_state=beta install Crypt_DiffieHellman
pear install Crypt_CBC
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-releaselatest-7.noarch.rpm
yum install php-mcrypt -y
systemctl restart httpd.service
cd /var/www/html
sh setup.sh
--------------------------------------------------
WEB Install
http://x.x.x.x/sfs3/install.php -------------------------------------------------
vim /etc/httpd/conf/httpd.conf
Alias /sfs3/data/ '/var/www/html/sfs3/data/'
<Directory '/var/www/html/sfs3/data/'>
Options None
AllowOverride None
Order allow,deny
Allow from all
</Directory>
----------------------------------------------------------------------------
rm -f /var/www/html/sfs3/install.php
systemctl restart httpd.service
2016年3月1日 星期二
yum install httpd mariadb -y
setenforce 0
yum install mlocate wget zip unzip ntpdate firewalld httpd mariadb-server mariadb -y
ntpdate time.stdtime.gov.tw | hwclock -w
systemctl restart httpd.service
systemctl enable httpd.service
systemctl restart mariadb.service
systemctl enable mariadb.service
systemctl restart firewalld
systemctl enable firewalld
mysql_secure_installation
#######################################################
yum install php php-gd php-mbstring php-mysql php-pear php-bcmath php-mcrypt -y
########################################################
單獨執行
pear -d preferred_state=beta install Crypt_DiffieHellman
pear install Crypt_CBC
#####################################################
systemctl restart httpd.service
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
########################################################
yum install mlocate wget zip unzip ntpdate firewalld httpd mariadb-server mariadb -y
ntpdate time.stdtime.gov.tw | hwclock -w
systemctl restart httpd.service
systemctl enable httpd.service
systemctl restart mariadb.service
systemctl enable mariadb.service
systemctl restart firewalld
systemctl enable firewalld
mysql_secure_installation
#######################################################
yum install php php-gd php-mbstring php-mysql php-pear php-bcmath php-mcrypt -y
########################################################
單獨執行
pear -d preferred_state=beta install Crypt_DiffieHellman
pear install Crypt_CBC
#####################################################
systemctl restart httpd.service
firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload
########################################################
訂閱:
文章 (Atom)