일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 명령어
- JavaScript
- CentOS
- fstab
- Laravel
- Subversion
- vsftpd
- xampp
- Trac
- nateon
- Network
- VirtualBox
- Linux
- exception
- APM
- 라라벨
- GlusterFS
- MySQL
- httpd.conf
- tw_cli
- php
- php5
- ftp
- VMware
- Fedora
- ubuntu
- BIND
- AIR
- redmine
- MOUNT
- Today
- Total
어제와 똑같이 살면서 다른 미래를 기대하지 말자
[CentOS7] PHP 5.6.x to PHP 7.1 업그레이드 본문
1. 기존 PHP 삭제
# yum remove php-*
2. remi repo 설치
// CentOS 7
# yum install -y epel-release
or
# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# rpm -ivh http://rpms.remirepo.net/enterprise/remi-release-7.rpm
or
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
// CentOS 6
# yum install -y epel-release
or
# rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
# rpm -ivh http://rpms.remirepo.net/enterprise/remi-release-6.rpm
or
# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
# yum --enablerepo=remi update remi-release
3. PHP 7.1 재설치
# yum --enablerepo=remi-php71 install php php-common php-cli php-fpm php-mysqlnd php-gd php-mbstring php-mcrypt php-opcache php-pear php-xml php-xmlrpc php-embedded php-bcmath php-imap php-pdo php-pecl-imagick php-soap php-devel php-ldap php-intl php-pecl-apcu php-snmp php-tidy php-dba php-zip
4. php.ini 수정
# vi /etc/php.ini
; This directive determines whether or not PHP will recognize code between
; <? and ?> tags as PHP source which should be processed as such. It is
; generally recommended that <?php and ?> should be used and that this feature
; should be disabled, as enabling it may result in issues when generating XML
; documents, however this remains supported for backward compatibility reasons.
; Note that this directive does not control the <?= shorthand tag, which can be
; used regardless of this directive.
; Default Value: On
; Development Value: Off
; Production Value: Off
; http://php.net/short-open-tag
; short_open_tag = On
; Maximum amount of memory a script may consume (128MB)
; http://php.net/memory-limit
; memory_limit = 128M
; Maximum size of POST data that PHP will accept.
; Its value may be 0 to disable the limit. It is ignored if POST data reading
; is disabled through enable_post_data_reading.
; http://php.net/post-max-size
; post_max_size = 8M
; Maximum allowed size for uploaded files.
; http://php.net/upload-max-filesize
; upload_max_filesize = 2M
upload_max_filesize = 100M
; Maximum number of files that can be uploaded via a single request
; max_file_uploads = 20
max_file_uploads = 100
'IT관심분야 > PHP' 카테고리의 다른 글
[PHP] imagick 관련 에러 (0) | 2016.12.21 |
---|---|
[PHP] AJAX 크로스 도메인 통신 ACCESS-CONTROL-ALLOW-ORIGIN 문제해결 (0) | 2016.07.07 |
php useragent get_browser() 함수 설정 (0) | 2016.05.03 |
eclipse aptana studio 3 feature (0) | 2015.11.03 |
[PHP] ImageMagick (imagick) 설치 (0) | 2013.06.21 |