CentOS5 to CentOS7 MySQL to MariaDB Apache localectl list-locales | grep ko localectl set-locale "LANG=ko_KR.UTF-8" ln -fs /usr/share/zoneinfo/Asia/Seoul /etc/localtime cat >> .bash_profile export LANG=ko_KR.eucKR alias mysql='mysql -uroot -pxxxx --default-character-set=euckr' firewall-cmd --zone=public --add-port=80/tcp --permanent firewall-cmd --reload yum -y install httpd yum -y install php yum -y install '*/modules/mod_ldap.so' systemctl enable httpd.service systemctl enable mariadb.service systemctl stop mariadb tar cf /var/lib/mysql.tar /var/lib/mysql systemctl start mariadb mysql -uroot -prxxxx < /backup/mysql.full.20220622.sql > mysql.imp.log 2>&1 groupadd -g 508 web useradd -u 507 -g web web cd / tar xf /backup/usr.local.apache.20220622.tar systemctl stop httpd.service cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.old vi /etc/httpd/conf/httpd.conf ## ================================================================= ## AddDefaultCharset UTF-8 [ ÇÑ±Û ±úÁü ÁÖ¼® ó¸® ] DocumentRoot "/usr/local/apache/htdocs" <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory "/usr/local/apache/htdocs"> Options Indexes FollowSymLinks AllowOverride None Require all granted </Directory> ## ================================================================= systemctl restart httpd.service httpd -t ¿¡·¯ È®ÀÎ mv /etc/httpd/modules /etc/httpd/modules.old ln -s /usr/lib64/httpd/modules /etc/httpd/modules systemctl restart mariadb systemctl restart httpd.service