- [남군]빛고을한량
- 0
- 73
- 0
- 0
- 2020-02-04 08:58:09
- 관련링크
- https://www.tecmint.com/install-php-on-centos-8/ 0
- https://downloads.mariadb.org/mariadb/repositories/#distro=CentOS&distro_release=centos8-amd64--centos8&mirror=ulakbim&version=10.4 0
- 제목 : APM on CentOS8
1.apache
# dnf install httpd
# systemctl enable httpd
#systemctl start httpd
# firewall-cmd --permanent --zone=public --add-service=http
# firewall-cmd --permanent --zone=public --add-service=https
# firewall-cmd --reload
2.php7.4
# dnf module list php //원하는 목록이 있으면 아래는 생략
# dnf install dnf-utils http://rpms.remirepo.net/enterprise/remi-release-8.rpm ????
# dnf module enable php:remi-7.4
# dnf install php php-cli php-common
# dnf install php php-cli php-fpm php-mysqlnd php-zip php-gd php-mbstring php-curl php-xml php-pear php-bcmath php-json
# sed -i 's/display_errors = Off/display_errors = On/' /etc/php.ini
# sed -i 's/post_max_size = 8M/post_max_size = 100M/' /etc/php.ini
# sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 100M/' /etc/php.ini
# sed -i 's/;date.timezone =/date.timezone = "Asia\/Seoul"/' /etc/php.ini
# sed -i 's/session.gc_maxlifetime = 1440/session.gc_maxlifetime = 86400/' /etc/php.ini
3.MariaDB
# https://downloads.mariadb.org/mariadb/repositories/#mirror=kaist&distro=CentOS&distro_release=centos7-amd64--centos7&version=10.1
# dnf install MariaDB-server MariaDB-client
# systemctl enable mysql
# systemctl start mysql
# mysql_secure_installation
# sed -i 's/\[client\]/\[client\]\ndefault-character-set = utf8/' /etc/my.cnf
# sed -i 's/\[mysqld\]/\[mysqld\]\ncharacter-set-client-handshake = FALSE\ninit_connect = \"SET collation_connection = utf8_general_ci\"\ninit_connect = \"SET NAMES utf8\"\ncharacter-set-server = utf8\ncollation-server = utf8_general_ci/' /etc/my.cnf
# sed -i 's/\[mysqldump\]/\[mysqldump\]\ndefault-character-set = utf8/' /etc/my.cnf
# sed -i 's/\[mysql\]/\[mysql\]\ndefault-character-set = utf8/' /etc/my.cnf
- 첨부파일
- 댓글