Favorites

Centos 7.8 버전을 최소 설치, Apache, php, MariaDB 설치

작성자 정보

  • 관리자 작성
  • 작성일

컨텐츠 정보

본문

테스트 해볼겸 설치해본 서버에 문제가 생겨 다시 설치하게 되어 설치 가이드도 남겨 봅니다.


Q. 아미나가 뭔가요 ? 

 A. 그누보드5와 영카트5 기반의 아미나빌더로 조금더 편하게 홈페이지를 완성할수 있는 도구 입니다.


Q. 아미나와 나리야의 차이점이 뭔가요?

1. 그누보드 

아미나는 그누 5.3 까지만 사용가능

나리야는 그누 5.4 부터 사용가능

2. 테마 스킨 기능

나리야는 이제 다시 만들어 가는 과정이라서 

아미나에 비하면 구현안된 것들이 아주 많다는 정도...

3. 기능상이야 추후 나리야나 아미나나 대동소이할꺼고...

4. 디자인이나 트렌드

아미나 구식

나리야 신식


한별아빠님의 댓글을 토대로 작성하였습니다.


저는 일반 호스팅 업체가 아니라 자체 호스팅을 할 예정으로 직접 다 설치해주어야 합니다.

(홈페이지를 완성? 할수 있을지 없을지 모르고 일 방문자수가 적기 때문에 매월 고정 비용을 지불하는게 아까웠습니다. 자체 호스팅으로 하다가 향후 사용자가 많아질 경우 전문 호스팅 업체로 이동할 것입니다.)

집에서도 PC에 리눅스를 설치해서 홈페이지 구축이 가능합니다. 

하지만 유동 IP이기 때문에 실제 운영되는 사이트에서는 바람직 하지 않고

서버를 직접 관리해야하기 때문에 서버와 네트워크도 알아야 합니다.

이런 문제들로 인해 호스팅을 사용하는게 시간과 비용이 절약되기도 합니다.

테스트 용도로는 가정에서도 구축하는데 문제가 없습니다.


전문 호스팅 업체에서는 OS와 웹서버 구축에 필요한 기본 세팅을해서 제공해줄겁니다.

호스팅 업체에 맡기는 경우엔 이글을 안보셔도 상관 없습니다.


Centos 7.8 버전을 최소 설치 하였습니다. 그 이후 설정 방법 입니다. 

https://www.centos.org/download/



목차

1. CentOS7 네트워크 설정 및 방화벽 해제

고정 IP 설정

방화벽 해제(하드웨어 방화벽이 별도로 존재함)


2. 웹서비스

APM 설치 - Apache, php, MariaDB 설치

Apache 부팅 시 자동 시작 설정

MariaDB 부팅 시 자동 시작 설정 

Apache 시작 

Maria DB시작 

Maria DB 기본 설정하기 


3. 그누보드 + 영카트 필수 라이브러리 설치




1. CentOS7 네트워크 설정 및 방화벽 해제 


고정 IP 설정 

네트워크 설정파일 열기

네트워크 설정 파일은 /etc/sysconfig/network-scripts/ifcfg-enp192 입니다. (파일이름은 다를 수도 있습니다.)

설정 파일을 에디터로 열어서 수정합니다.


DHCP 설정 주석처리 및 IP 추가 빨간색이 수정 사항입니다. 

[root@localhost]# vi /etc/sysconfig/network-scripts/ifcfg-enp192


TYPE="Ethernet" 

PROXY_METHOD="none"

BROWSER_ONLY="no"

#BOOTPROTO="dhcp"

DEFROUTE="yes"

IPV4_FAILURE_FATAL="no"

IPV6INIT="yes"

IPV6_AUTOCONF="yes"

IPV6_DEFROUTE="yes"

IPV6_FAILURE_FATAL="no"

IPV6_ADDR_GEN_MODE="stable-privacy"

NAME="enp0s3"

UUID="91af51db-7cf0-4069-9433-77d356b31bca"

DEVICE="enp0s3"

ONBOOT="yes"


BOOTPROTO="static"

IPADDR="192.168.0.123"

NETMASK="255.255.255.0"

GATEWAY="192.168.0.1"

DNS1="168.126.63.1"

DNS2="168.126.63.2"


저장하려면 shift + : 을 하고

wr를 하면 저장됩니다.


네트워크 재시작하기

[root@localhost]# systemctl restart network 


방화벽 해제

네트워크 방화벽이 별도로 존재하기 때문에 리눅스 방화벽을 비활성화 하였습니다.


방화벽 정지하기

[root@localhost]# systemctl stop firewalld


재시작시 방화벽 자동 시작 끄기

[root@localhost]# systemctl disable firewalld 



2. 웹서비스 

APM 설치 - 아파치, php, MariaDB 설치 


[root@localhost]# yum install httpd php mariadb-server php-mysql

명령어를 입력고 y를 눌러 다음으로 계속 진행하면 됩니다.


Apache 부팅 시 자동 시작 설정

[root@localhost ~]# systemctl enable httpd.service

Created symlink from /etc/systemd/system/multi-user.target.wants/httpd.service to /usr/lib/systemd/system/httpd.service.

MariaDB 부팅 시 자동 시작 설정

[root@localhost ~]# systemctl enable mariadb.service

Created symlink from /etc/systemd/system/multi-user.target.wants/mariadb.service to /usr/lib/systemd/system/mariadb.service.

Apache 시작

[root@localhost ~]# systemctl start httpd.service

MariaDB시작

[root@localhost ~]# systemctl start mariadb.service

[root@localhost ~]#


MariaDB 기본 설정하기

[root@localhost ~]# mysql_secure_installation 

NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB

      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!


In order to log into MariaDB to secure it, we'll need the current

password for the root user.  If you've just installed MariaDB, and

you haven't set the root password yet, the password will be blank,

so you should just press enter here.


Enter current password for root (enter for none):

루트 비밀번호가 설정되지 않았으므로 Enter를 눌러 다음으로 진행 

OK, successfully used password, moving on...


Setting the root password ensures that nobody can log into the MariaDB

root user without the proper authorisation.


Set root password? [Y/n] Y

새 루트 비밀번호 설정

New password:

Re-enter new password:

Password updated successfully!

Reloading privilege tables..

 ... Success!


By default, a MariaDB installation has an anonymous user, allowing anyone

to log into MariaDB without having to have a user account created for

them.  This is intended only for testing, and to make the installation

go a bit smoother.  You should remove them before moving into a

production environment.


Remove anonymous users? [Y/n] Y.

익명 사용자 제거

 ... Success!


Normally, root should only be allowed to connect from 'localhost'.  This

ensures that someone cannot guess at the root password from the network.


Disallow root login remotely? [Y/n] Y

원격 루트 로그인 불가 설정

 ... Success!


By default, MariaDB comes with a database named 'test' that anyone can

access.  This is also intended only for testing, and should be removed

before moving into a production environment.


Remove test database and access to it? [Y/n] Y

테스트 데이터 베이스 제거 (이후에 테스트 데이터 베이스를 만들어도 되니까 삭제)

 - Dropping test database...

 ... Success!

 - Removing privileges on test database...

 ... Success!


Reloading the privilege tables will ensure that all changes made so far

will take effect immediately.


Reload privilege tables now? [Y/n] Y

지금 테이블 권한을 다시 로드

 ... Success!


Cleaning up...


All done!  If you've completed all of the above steps, your MariaDB

installation should now be secure.


Thanks for using MariaDB!



설치가 완료된후에 서버 IP 를 입력해서 아파치 테스트 화면이 나오면 정상적으로 설치가 된 것 입니다.

66b9cdf46543681e2b277f87e4dddbd1_1593627635_3894.png 

3. 그누보드 + 영카트 필수 라이브러리 설치  

그누보드5를 설치하기 위해서는 아래 조건을 만족해야 합니다.  

  • PHP 5.0 이상 (PHP 5.3 이상 권장)
  • MySQL 5.0 이상 or MySQL 5.0 이상의 기능을 만족하는 MariaDB
  • 리눅스 호환 OS
  • 필수 라이브러리
    • GD Library 2.0 이상
    • iconv


영카트5를 설치하기 위해서는 아래 조건을 만족해야 합니다. 

  • PHP 5.0 이상 (PHP 5.3 이상 권장)
  • MySQL 5.0 이상 or MySQL 5.0 이상의 기능을 만족하는 MariaDB

관련자료

댓글 0
등록된 댓글이 없습니다.
전체 141 / 1 페이지
번호
제목
연결

Favorites


최근글


새댓글


  • 댓글이 없습니다.
알림 0