웹마스터 팁
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
XE 1.8 대응 apache 2.2 / php 5.5 / MariaDB 10 설치
2015.04.19 01:32
#1. EPEL,REMI 레포지터리 RPM 설치
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
#2. 레포지터리 파일 수정
# vi /etc/yum.repos.d/remi.repo
[remi]
enabled=1
# vi /etc/yum.repos.d/MariaDB.repo
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey = https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
#3. CentOS 패키지 업데이트 & 패키지 삭제
# yum remove httpd mysql php
# yum update
# yum update
#4. 패키지 설치
# yum --enablerepo=remi,remi-php55 install install ntsysv httpd httpd-devel php php-devel vsftpd* mbstring MariaDB-server MariaDB-client libjpeg-devel libpng-devel freetype-devel gd-devel libtermcap-devel ncurses-devel libxml2-devel libc-client-devel bzip2-devel libmcrypt libmcrypt-devel libmhash libmhash-devel libtool-ltdl-devel vsftpd vsftpd-devel mrtg* net-snmp* php-mysql php-mcrypt
* 필요 한 것이 있으면 더 추가 하도록 한다.
* 필요 한 것이 있으면 더 추가 하도록 한다.
* 본인은 VSFTPD 서버와 MRTG, SNMP 를 사용할 것이기 때문에 위와 같이 설치하였음.
#5. Chkconfig 설정 및 데몬 시작
# chkconfig --level 235 httpd on
# chkconfig --level 235 mysql on
# chkconfig --level 235 vsftpd on
# chkconfig --level 235 snmpd on
# /etc/init.d/httpd start && /etc/init.d/mysql start && /etc/init.d/vsftpd start
# chkconfig --level 235 mysql on
# chkconfig --level 235 vsftpd on
# chkconfig --level 235 snmpd on
# /etc/init.d/httpd start && /etc/init.d/mysql start && /etc/init.d/vsftpd start
#6. 아파치 SERVERNAME 설정
# vi /etc/httpd/conf/httpd.conf
ServerName 127.0.0.1
:wq
# /etc/init.d/httpd reload
ServerName 127.0.0.1
:wq
# /etc/init.d/httpd reload
#7. php 설정
# vi /etc/httpd/conf.d/php.conf
* PHP Extension Type 추가
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
* DirectoryIndex 추가
DirectoryIndex index.html index.html.var index.php index.phtml
* php.ini 에서 업로드 용량 수정
# vi /etc/php.ini
upload_max_filesize = 100M
default_socket_timeout = 3000
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume
short_open_tag = On // XE 가 제대로 작동 안될때 사용.
# php.ini 에서 사용 금지할 명령어 추가
disable_functions = exec, shell
* PHP 연동 확인을 위해 /var/www/html 에 index.php 파일을 만든다.
# vi /var/www/html/index.php
<?php phpinfo() ?>
* PHP Extension Type 추가
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
* DirectoryIndex 추가
DirectoryIndex index.html index.html.var index.php index.phtml
* php.ini 에서 업로드 용량 수정
# vi /etc/php.ini
upload_max_filesize = 100M
default_socket_timeout = 3000
max_execution_time = 30 ; Maximum execution time of each script, in seconds
max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
memory_limit = 128M ; Maximum amount of memory a script may consume
short_open_tag = On // XE 가 제대로 작동 안될때 사용.
# php.ini 에서 사용 금지할 명령어 추가
disable_functions = exec, shell
* PHP 연동 확인을 위해 /var/www/html 에 index.php 파일을 만든다.
# vi /var/www/html/index.php
<?php phpinfo() ?>
#8. MYSQL 설정
# /usr/bin/mysql -u root mysql
UPDATE `mysql`.`user` SET `Password` = PASSWORD('패스워드 설정') WHERE `User` = 'root';
FLUSH PRIVILEGES;
# vi /etc/my.cnf
[client]
default-character-set=utf8
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
init_connect="SET collation_connection = utf8_general_ci"
init_connect="SET NAMES utf8"
default-character-set=utf8 // 이 옵션은 안먹으니 삭제!
character-set-server=utf8
collation-server=utf8_general_ci
[mysqldump]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
UPDATE `mysql`.`user` SET `Password` = PASSWORD('패스워드 설정') WHERE `User` = 'root';
FLUSH PRIVILEGES;
# vi /etc/my.cnf
[client]
default-character-set=utf8
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
init_connect="SET collation_connection = utf8_general_ci"
init_connect="SET NAMES utf8"
default-character-set=utf8 // 이 옵션은 안먹으니 삭제!
character-set-server=utf8
collation-server=utf8_general_ci
[mysqldump]
default-character-set=utf8
[mysql]
default-character-set=utf8
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
태그 연관 글
- [2023/03/07] 묻고답하기 서버이전 후 오류.. ㅠ *1
- [2022/09/13] 묻고답하기 이 애러문구 혹시 해결 가능할지... *1
댓글 11
제목 | 글쓴이 | 날짜 |
---|---|---|
XE 템플릿 문법 : 조건부 class 작성하기 | AJKJ | 2015.05.23 |
레이어형 로그인 사용시에 SSL 적용방법 (선택적 사용시) [1] | 불금 | 2015.05.20 |
확장 컴포넌트 밖으로 뺀 후 완전한 버튼화
[1]
![]() | 키스미베이베 | 2015.05.20 |
플렛모바일 네이버로 로그인하기 버튼
![]() | LI-NA | 2015.05.17 |
저같은 초보분들이 궁금해 하실것같아서요
[3]
![]() | 착한동구 | 2015.05.08 |
모바일 이미지축소모드 | kdp | 2015.05.07 |
모바일 이미지 제거모드 | kdp | 2015.05.07 |
오늘 작성된 게시글수
[2]
![]() | kdp | 2015.05.07 |
게시판의 MP3파일 갯수 표시하기
![]() | kdp | 2015.05.07 |
인기글 [1] | kdp | 2015.05.07 |
[서버운영] 웹 재요청 방지 및 트래픽 감소를 위한 방법 | 마루디자인 | 2015.05.06 |
member 모듈 업데이트가 계속 나오는 경우 | 고니고니 | 2015.05.06 |
속도관련 나노팁. [5] | 1052 | 2015.05.04 |
CKEditor 이용시 몇가지 유용한 설정 [11] | prologos | 2015.05.02 |
xe설치시 퍼미션 문제나 DB엑세스 문제 해결하기 | 길가던분 | 2015.05.01 |
리스트에 스크랩 버튼을 뺴는 코드입니다. [3] | 착한악마 | 2015.04.30 |
PC에서 모바일화면 보는방법 [2] | 빅스타 | 2015.04.29 |
폰갭과 웹앱 그리고 XE... [6] | onTrust | 2015.04.23 |
간편 css 압축 | Ansi™ | 2015.04.21 |
XE 1.8 대응 apache 2.2 / php 5.5 / MariaDB 10 설치 [11] | 간장게장같은남자 | 2015.04.19 |