HOME 개발팁 [APM] Apache, PHP7, MariaDB 10.1 Install(설치) Guide

프로그램 작업하다 좋은 팁, 정보, 테스트를 기록하는 곳입니다.


웹서버 | [APM] Apache, PHP7, MariaDB 10.1 Install(설치) Guide

페이지 정보

작성자 굿스웹 작성일19-09-25 16:18 조회657회 댓글0건

본문

라이브러리 설치

1. rpm -qa libjpeg* libpng* freetype* gd-* gcc gcc-c++ gdbm-devel libtermcap-devel

2. yum install libjpeg* libpng* freetype* gd-* gcc gcc-c++ gdbm-devel libtermcap-devel

   [y]


3. 아파치(Apache 2.4) 설치

    yum install httpd

    [y]


4. 마리아(Maria DB 10.1) 설치

   1.  vi /etc/yum.repos.d/MariaDB.repo


      # MariaDB 10.1 CentOS repository list 

      # http://downloads.mariadb.org/mariadb/repositories/

      [mariadb]

      name = MariaDB

      baseurl = http://yum.mariadb.org/10.1/centos7-amd64

      gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB

      gpgcheck=1

      :wq (저장)

   2. yum install MariaDB-server MariaDB-client

      [y][y]


5.PHP 7 설치

   1. rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

   2. rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm

   3. yum install php70w

      [y][y]

   4. yum install php70w-mysql php70w-pdo php70w-pgsql php70w-odbc php70w-mbstring php70w-mcrypt php70w-gd

   5. yum install php70w-pear php70w-pdo_dblib php70w-pecl-imagick php70w-pecl-imagick-devel php70w-xml php70w-xmlrpc

      [y][y]

   6. yum search php70w


6. 마무리

   1. httpd -v

   2. php -v

   3. mysql -V


   4. vi /etc/httpd/conf/httpd.conf

       ServerName 192.168.122.128:80 

       DirectoryIndex index.html index.htm index.php


       AddType application/x-httpd-php .php .html .htm .inc 

       AddType application/x-httpd-php-source .phps  


       include /etc/httpd/conf/vhost.conf

     :wq


   5 vi /etc/httpd/conf/vhost.conf


    <Directory "/var/www/html">

      AllowOverride None

       Require all granted

    </Directory>


#<VirtualHost *:80>

#    ServerAlias []

#    ServerName []

#    DocumentRoot "/var/www/html/www"

#</VirtualHost>


  6. /etc/php.ini

short_open_tag = On

memory_limit = 256M

error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT

display_errors = On

post_max_size = 100M

upload_max_filesize = 100M

max_file_uploads = 100

sql.safe_mode = On

date.timezone = "Asia/Seoul"

expose_php = Off

session.gc_maxlifetime = 3600



7. 

    1. systemctl start httpd

    2. systemctl enable httpd 부팅후 자동 실행 설정

    3. ps -ef  |grep httpd : 구동체크


8. Maria DB 구동 및 설정

    1.  systemctl start mariadb

    2.  ps -ef | grep mysql

    3.  mysql_secure_installation

        [엔터][Y][비밀번호][Y][Y][Y][Y]


9. 방화벽열기

firewall-cmd --permanent --zone=public --add-port=80/tcp

firewall-cmd --reload

firewall-cmd --list-all [방화벽 포트오픈체크]








[주소복사] https://www.goodsweb.kr/?u=D413ZGxy
SNS 알리기
핀터레스트
텔레그램로
블로그로
카카오스토리
카톡 공유

관련 블로그
로딩중


2명  IP : 18.216.♡.214
001 66.♡.66.16 패키지몰
(/bbs/board.php?bo_table=pmall)
002 66.♡.76.195 금액 단위를 만단위부터 표시하는방법 - 개발팁
(/bbs/board.php?bo_table=tip&wr_id=5&sca=PHP)

접속자
  • 오늘 : 123
  • 어제 : 227
  • 최대 : 874
  • 전체 : 408,350

검색로봇(Robots) 최근 방문시간
  • GOOGLE : 25분 전
  • NAVER : 5시간 전
  • BING : 7시간 전
  • DAUM : 6일 전

ETH : 0x8abf3B748ab78828AE07685e4fd53d1a606f18D3



페이스북 네이버 블로그 굿스웹 쇼핑몰 네이버 카페 굿스웹 트위터 굿스웹 티스토리 Google Play