- How To Upgrade to PHP 7 on Ubuntu 14.04
- Running PHP7-FPM Nightly Build on Ubuntu 14.04
- INSTALL PHP 7 ON CENTOS, UBUNTU AND DEBIAN
- UPGRADE VESTACP TO PHP 7 (UBUNTU)
- Enable PHP 5.5 Opcache on Ubuntu 14.04 with Nginx and PHP-FPM
- 2016/03/31 - [OS/Ubuntu] - php7 ppa.launchpad.net/ondrej/php-7.0/ubuntu
- Host Multiple Websites with different PHP Versions on Ubuntu 18.04 VPS
Nginx, Mysql, Mariadb
apt-get install nginx mysql-server -y
# apt-get install nginx mariadb-server -y
systemctl start nginx
systemctl start mysql
# systemctl start mariadb
systemctl enable nginx
systemctl enable mariadb
# systemctl start mysql
PHP7 설치
최신버전의 CI(CodeIgniter)를 사용한다면 php7.0-mcrypt는 필수 설치.
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php5.6 php5.6-fpm php5.6-mysql php5.6-mcrypt php5.6-gd
# sudo apt-get install php5.6 php5.6-fpm php5.6-mysql php5.6-mcrypt php5.6-gd php5.6-cli php5.6-common php5.6-curl php5.6-dev php5.6-json php5.6-odbc php5.6-opcache php5.6-tidy
# sudo apt-get install php5.6-common php5.6-cgi php5.6-cli php5.6-phpdbg php5.6-fpm libphp5.6-embed php5.6-dev php5.6-curl php5.6-gd php5.6-imap php5.6-interbase php5.6-intl php5.6-ldap php5.6-mcrypt php5.6-readline php5.6-odbc php5.6-pgsql php5.6-pspell php5.6-recode php5.6-tidy php5.6-xmlrpc php5.6 php5.6-json php-all-dev php5.6-sybase php5.6-sqlite3 php5.6-mysql php5.6-opcache php5.6-bz2
# sudo apt-get install php7.0 php7.0-fpm
# /etc/php/7.0 에 설치 된다.
sudo apt-get install php7.0 php7.0-fpm php7.0-mysql php7.0-mcrypt php7.0-gd
# sudo apt-get install php7.0 php7.0-fpm php7.0-mysql php7.0-mcrypt php7.0-gd php7.0-cli php7.0-common php7.0-curl php7.0-dev php7.0-json php7.0-odbc php7.0-opcache php7.0-tidy
# sudo apt-get install php7.0-common php7.0-cgi php7.0-cli php7.0-phpdbg php7.0-fpm libphp7.0-embed php7.0-dev php7.0-curl php7.0-gd php7.0-imap php7.0-interbase php7.0-intl php7.0-ldap php7.0-mcrypt php7.0-readline php7.0-odbc php7.0-pgsql php7.0-pspell php7.0-recode php7.0-tidy php7.0-xmlrpc php7.0 php7.0-json php-all-dev php7.0-sybase php7.0-sqlite3 php7.0-mysql php7.0-opcache php7.0-bz2
sudo apt-get install php7.4 php7.4-fpm php7.4-mysql php7.4-mcrypt php7.4-gd
# sudo apt-get install php7.4 php7.4-fpm php7.4-mysql php7.4-mcrypt php7.4-gd php7.4-cli php7.4-common php7.4-curl php7.4-dev php7.4-json php7.4-odbc php7.4-opcache php7.4-tidy
# sudo apt-get install php7.4-common php7.4-cgi php7.4-cli php7.4-phpdbg php7.4-fpm libphp7.4-embed php7.4-dev php7.4-curl php7.4-gd php7.4-imap php7.4-interbase php7.4-intl php7.4-ldap php7.4-mcrypt php7.4-readline php7.4-odbc php7.4-pgsql php7.4-pspell php7.4-tidy php7.4-xmlrpc php7.4 php7.4-json php-all-dev php7.4-sybase php7.4-sqlite3 php7.4-mysql php7.4-opcache php7.4-bz2
sudo apt-get install php8.1 php8.1-fpm php8.1-mysql php8.1-mcrypt php8.1-gd
# sudo apt-get install php8.1 php8.1-fpm php8.1-mysql php8.1-mcrypt php8.1-gd php8.1-cli php8.1-common php8.1-curl php8.1-dev php8.1-json php8.1-odbc php8.1-opcache php8.1-tidy
# sudo apt-get install php8.1 php8.1-amqp php8.1-ast php8.1-bcmath php8.1-bz2 php8.1-cgi php8.1-cli php8.1-common php8.1-curl php8.1-dba php8.1-decimal php8.1-dev php8.1-ds php8.1-enchant php8.1-fpm php8.1-gd php8.1-gearman php8.1-gmp php8.1-gnupg php8.1-grpc php8.1-http php8.1-igbinary php8.1-imagick php8.1-imap php8.1-inotify php8.1-interbase php8.1-intl php8.1-ldap php8.1-lz4 php8.1-mailparse php8.1-maxminddb php8.1-mbstring php8.1-mcrypt php8.1-memcache php8.1-memcached php8.1-mongodb php8.1-msgpack php8.1-mysql php8.1-oauth php8.1-odbc php8.1-opcache php8.1-pcov php8.1-pgsql php8.1-phpdbg php8.1-protobuf php8.1-ps php8.1-pspell php8.1-psr php8.1-raphf php8.1-readline php8.1-redis php8.1-rrd php8.1-smbclient php8.1-snmp php8.1-soap php8.1-solr php8.1-sqlite3 php8.1-ssh2 php8.1-swoole php8.1-sybase php8.1-tidy php8.1-uopz php8.1-uploadprogress php8.1-uuid php8.1-vips php8.1-xdebug php8.1-xhprof php8.1-xml php8.1-xmlrpc php8.1-xsl php8.1-yaml php8.1-zip php8.1-zmq php8.1-zstd
설정값 수정
vi /etc/php/7.0/fpm/pool.d/www.conf
vi /etc/nginx/site-available/default.conf
- PHP-FPM 소켓 PATH 설정
; listen = /run/php/php7.0-fpm.sock listen = /dev/shm/php7.0-fpm.sock ; 또는 listen = /var/run/shm/php7.0-fpm.sock
- NGINX PHP-FPM 소켓 설정
# /etc/nginx/sites-available/site1.example.com.conf server { listen 80; root /var/www/html/site1.example.com/; index index.php; server_name site1.example.com; location / { try_files $uri $uri/ =404; } location ~ \.php$ { try_files $uri =404; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_pass unix:/var/run/php/php7.0-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
PHP 설정
sudo vi /etc/php/7.0/fpm/php.ini
# OpCache 적용
[opcache]
opcache.enable=1
opcache.enable_cli=1
opcache.memory_consumption=128
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
# 타임존 설정
date.timezone = Asia/Seoul
서비스 시작
sudo service php7.0-fpm start
sudo service nginx restart
sudo systemctl start php7.0-fpm start
sudo systemctl restart nginx
apt-get php5 list
php5
php5-gmp
php5-mongo
php5-rrd php5-adodb
php5-gnupg
php5-msgpack
php5-sasl php5-apcu
php5-imagick
php5-mysql
php5-snmp php5-cgi
php5-imap
php5-mysqlnd
php5-sqlite php5-cli
php5-interbase
php5-mysqlnd-ms
php5-stomp
php5-common
php5-intl
php5-oauth
php5-svn php5-curl
php5-json
php5-odbc
php5-sybase
php5-dbg
php5-lasso
php5-pgsql
php5-tidy
php5-dev
php5-ldap
php5-pinba
php5-tokyo-tyrant
php5-enchant
php5-librdf
php5-ps
php5-vtkgdcm
php5-exactimage
php5-mapscript
php5-pspell
php5-xcache php5-fpm
php5-mcrypt
php5-radius
php5-xdebug
php5-gd
php5-memcache
php5-readline
php5-xhprof
php5-gdcm
php5-memcached
php5-recode
php5-xmlrpc
php5-gearman
php5-midgard2
php5-redis
php5-xsl
php5-geoip
php5-ming
php5-remctl
apt-cache search php7.0 list 2016.01.14
php7.0
php7.0-fpm
php7.0-modules-source
php7.0-snmp
php7.0-bz2
php7.0-gd
php7.0-mysql
php7.0-sqlite3
php7.0-cgi
php7.0-gmp
php7.0-odbc
php7.0-sybase
php7.0-cli
php7.0-imap
php7.0-opcache
php7.0-tidy
php7.0-common
php7.0-interbase
php7.0-pgsql
php7.0-xmlrpc
php7.0-curl
php7.0-intl
php7.0-phpdbg
php7.0-xsl
php7.0-dbg
php7.0-json
php7.0-pspell
php7.0-dev
php7.0-ldap
php7.0-readline
php7.0-enchant
php7.0-mcrypt
php7.0-recode
apt-cache search php8.1
sudo apt-cache search php8.1
libapache2-mod-php8.1 - server-side, HTML-embedded scripting language (Apache 2 module)
libphp8.1-embed - HTML-embedded scripting language (Embedded SAPI library)
php8.1 - server-side, HTML-embedded scripting language (metapackage)
php8.1-amqp - AMQP extension for PHP
php8.1-apcu - APC User Cache for PHP
php8.1-ast - AST extension for PHP 7
php8.1-bcmath - Bcmath module for PHP
php8.1-bz2 - bzip2 module for PHP
php8.1-cgi - server-side, HTML-embedded scripting language (CGI binary)
php8.1-cli - command-line interpreter for the PHP scripting language
php8.1-common - documentation, examples and common module for PHP
php8.1-curl - CURL module for PHP
php8.1-dba - DBA module for PHP
php8.1-decimal - Arbitrary precision floating-point decimal for PHP
php8.1-dev - Files for PHP8.1 module development
php8.1-ds - PHP extension providing efficient data structures for PHP 7
php8.1-enchant - Enchant module for PHP
php8.1-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)
php8.1-gd - GD module for PHP
php8.1-gearman - PHP wrapper to libgearman
php8.1-gmagick - Provides a wrapper to the GraphicsMagick library
php8.1-gmp - GMP module for PHP
php8.1-gnupg - PHP wrapper around the gpgme library
php8.1-grpc - High performance, open source, general RPC framework for PHP
php8.1-http - PECL HTTP module for PHP Extended HTTP Support
php8.1-igbinary - igbinary PHP serializer
php8.1-imagick - Provides a wrapper to the ImageMagick library
php8.1-imap - IMAP module for PHP
php8.1-inotify - Inotify bindings for PHP
php8.1-interbase - Interbase module for PHP
php8.1-intl - Internationalisation module for PHP
php8.1-ldap - LDAP module for PHP
php8.1-lz4 - LZ4 Extension for PHP
php8.1-mailparse - Email message manipulation for PHP
php8.1-maxminddb - Reader for the MaxMind DB file format for PHP
php8.1-mbstring - MBSTRING module for PHP
php8.1-mcrypt - PHP bindings for the libmcrypt library
php8.1-memcache - memcache extension module for PHP
php8.1-memcached - memcached extension module for PHP, uses libmemcached
php8.1-mongodb - MongoDB driver for PHP
php8.1-msgpack - PHP extension for interfacing with MessagePack
php8.1-mysql - MySQL module for PHP
php8.1-oauth - OAuth 1.0 consumer and provider extension
php8.1-odbc - ODBC module for PHP
php8.1-opcache - Zend OpCache module for PHP
php8.1-pcov - Code coverage driver
php8.1-pgsql - PostgreSQL module for PHP
php8.1-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary)
php8.1-protobuf - Protocol buffers bindings for PHP
php8.1-ps - ps module for PHP
php8.1-pspell - pspell module for PHP
php8.1-psr - PSR interfaces for PHP
php8.1-raphf - raphf module for PHP
php8.1-readline - readline module for PHP
php8.1-redis - PHP extension for interfacing with Redis
php8.1-rrd - PHP bindings to rrd tool system
php8.1-smbclient - PHP wrapper for libsmbclient
php8.1-snmp - SNMP module for PHP
php8.1-soap - SOAP module for PHP
php8.1-solr - PHP extension for communicating with Apache Solr server
php8.1-sqlite3 - SQLite3 module for PHP
php8.1-ssh2 - Bindings for the libssh2 library
php8.1-swoole - Swoole Coroutine Fiber Async Programming Framework for PHP
php8.1-sybase - Sybase module for PHP
php8.1-tidy - tidy module for PHP
php8.1-uopz - UOPZ extension for PHP 7
php8.1-uploadprogress - file upload progress tracking extension for PHP
php8.1-uuid - PHP UUID extension
php8.1-vips - PHP extension for interfacing with libvips
php8.1-xdebug - Xdebug Module for PHP
php8.1-xhprof - Hierarchical Profiler for PHP 5.x
php8.1-xml - DOM, SimpleXML, XML, and XSL module for PHP
php8.1-xmlrpc - XML-RPC servers and clients functions for PHP
php8.1-xsl - XSL module for PHP (dummy)
php8.1-yac - YAC (Yet Another Cache) for PHP
php8.1-yaml - YAML-1.1 parser and emitter for PHP
php8.1-zip - Zip module for PHP
php8.1-zmq - ZeroMQ messaging bindings for PHP
php8.1-zstd - Zstandard extension for PHP
apt-cache search php7.4
sudo apt-cache search php7.4
libapache2-mod-php7.4 - server-side, HTML-embedded scripting language (Apache 2 module)
php7.4 - 서버사이드, HTML 내장 스크립팅 언어 (메타패키지)
php7.4-cgi - server-side, HTML-embedded scripting language (CGI binary)
php7.4-cli - command-line interpreter for the PHP scripting language
php7.4-common - documentation, examples and common module for PHP
php7.4-curl - CURL module for PHP
php7.4-dev - Files for PHP7.4 module development
php7.4-gd - GD module for PHP
php7.4-gmp - GMP module for PHP
php7.4-json - JSON module for PHP
php7.4-ldap - LDAP module for PHP
php7.4-mysql - MySQL module for PHP
php7.4-odbc - ODBC module for PHP
php7.4-opcache - Zend OpCache module for PHP
php7.4-pgsql - PostgreSQL module for PHP
php7.4-pspell - pspell module for PHP
php7.4-readline - readline module for PHP
php7.4-snmp - SNMP module for PHP
php7.4-sqlite3 - SQLite3 module for PHP
php7.4-tidy - tidy module for PHP
php7.4-xml - DOM, SimpleXML, XML, and XSL module for PHP
php7.4-xmlrpc - XMLRPC-EPI module for PHP
libphp7.4-embed - HTML-embedded scripting language (Embedded SAPI library)
php7.4-bcmath - Bcmath module for PHP
php7.4-bz2 - bzip2 module for PHP
php7.4-dba - DBA module for PHP
php7.4-enchant - Enchant module for PHP
php7.4-fpm - server-side, HTML-embedded scripting language (FPM-CGI binary)
php7.4-imap - IMAP module for PHP
php7.4-interbase - Interbase module for PHP
php7.4-intl - Internationalisation module for PHP
php7.4-mbstring - MBSTRING module for PHP
php7.4-phpdbg - server-side, HTML-embedded scripting language (PHPDBG binary)
php7.4-soap - SOAP module for PHP
php7.4-sybase - Sybase module for PHP
php7.4-zip - Zip module for PHP
php-amqp - AMQP extension for PHP
php-apcu - APC User Cache for PHP
php-apcu-bc - APCu Backwards Compatibility Module
php-ds - PHP extension providing efficient data structures for PHP 7
php-gearman - PHP wrapper to libgearman
php-geoip - GeoIP module for PHP
php-gmagick - Provides a wrapper to the GraphicsMagick library
php-gnupg - PHP wrapper around the gpgme library
php-http - PECL HTTP module for PHP Extended HTTP Support
php-igbinary - igbinary PHP serializer
php-lua - PHP Embedded lua interpreter
php-mailparse - Email message manipulation for PHP
php-memcache - memcache extension module for PHP
php-memcached - memcached extension module for PHP, uses libmemcached
php-mongodb - MongoDB driver for PHP
php-msgpack - PHP extension for interfacing with MessagePack
php-oauth - OAuth 1.0 consumer and provider extension
php-pcov - Code coverage driver
php-pinba - Pinba module for PHP
php-propro - propro module for PHP
php-ps - ps module for PHP
php-psr - PSR interfaces for PHP
php-radius - radius client library for PHP
php-redis - PHP extension for interfacing with Redis
php-rrd - PHP bindings to rrd tool system
php-sass - PHP bindings to libsass - fast, native Sass parsing in PHP
php-solr - PHP extension for communicating with Apache Solr server
php-ssh2 - Bindings for the libssh2 library
php-stomp - Streaming Text Oriented Messaging Protocol (STOMP) client module for PHP
php-tideways - Tideways PHP Profiler Extension
php-uploadprogress - file upload progress tracking extension for PHP
php-uuid - PHP UUID extension
php-yac - YAC (Yet Another Cache) for PHP
php-yaml - YAML-1.1 parser and emitter for PHP
php-zmq - ZeroMQ messaging bindings for PHP
php7.4-xsl - XSL module for PHP (dummy)
php-imagick - Provides a wrapper to the ImageMagick library
php-raphf - raphf module for PHP
php-xdebug - Xdebug Module for PHP
php7.4-amqp - AMQP extension for PHP
php7.4-apcu - APC User Cache for PHP
php7.4-apcu-bc - APCu Backwards Compatibility Module
php7.4-ast - AST extension for PHP 7
php7.4-decimal - Arbitrary precision floating-point decimal for PHP
php7.4-ds - PHP extension providing efficient data structures for PHP 7
php7.4-facedetect - Detect faces with PHP
php7.4-gearman - PHP wrapper to libgearman
php7.4-geoip - GeoIP module for PHP
php7.4-gmagick - Provides a wrapper to the GraphicsMagick library
php7.4-gnupg - PHP wrapper around the gpgme library
php7.4-grpc - High performance, open source, general RPC framework for PHP
php7.4-http - PECL HTTP module for PHP Extended HTTP Support
php7.4-igbinary - igbinary PHP serializer
php7.4-imagick - Provides a wrapper to the ImageMagick library
php7.4-inotify - Inotify bindings for PHP
php7.4-lua - PHP Embedded lua interpreter
php7.4-lz4 - LZ4 Extension for PHP
php7.4-mailparse - Email message manipulation for PHP
php7.4-maxminddb - Reader for the MaxMind DB file format for PHP
php7.4-mcrypt - PHP bindings for the libmcrypt library
php7.4-memcache - memcache extension module for PHP
php7.4-memcached - memcached extension module for PHP, uses libmemcached
php7.4-mongodb - MongoDB driver for PHP
php7.4-msgpack - PHP extension for interfacing with MessagePack
php7.4-oauth - OAuth 1.0 consumer and provider extension
php7.4-pcov - Code coverage driver
php7.4-phalcon4 - full-stack PHP framework delivered as a C-extension
php7.4-pinba - Pinba module for PHP
php7.4-propro - propro module for PHP
php7.4-protobuf - Protocol buffers bindings for PHP
php7.4-ps - ps module for PHP
php7.4-psr - PSR interfaces for PHP
php7.4-radius - radius client library for PHP
php7.4-raphf - raphf module for PHP
php7.4-redis - PHP extension for interfacing with Redis
php7.4-rrd - PHP bindings to rrd tool system
php7.4-smbclient - PHP wrapper for libsmbclient
php7.4-solr - PHP extension for communicating with Apache Solr server
php7.4-ssh2 - Bindings for the libssh2 library
php7.4-stomp - Streaming Text Oriented Messaging Protocol (STOMP) client module for PHP
php7.4-swoole - Swoole Coroutine Fiber Async Programming Framework for PHP
php7.4-tideways - Tideways PHP Profiler Extension
php7.4-uopz - UOPZ extension for PHP 7
php7.4-uploadprogress - file upload progress tracking extension for PHP
php7.4-uuid - PHP UUID extension
php7.4-vips - PHP extension for interfacing with libvips
php7.4-xdebug - Xdebug Module for PHP
php7.4-xhprof - Hierarchical Profiler for PHP 5.x
php7.4-yac - YAC (Yet Another Cache) for PHP
php7.4-yaml - YAML-1.1 parser and emitter for PHP
php7.4-zmq - ZeroMQ messaging bindings for PHP
php7.4-zstd - Zstandard extension for PHP
libpcre2-posix2 덮어쓰기 오류
Preparing to unpack .../libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb ...
Unpacking libpcre2-posix2:amd64 (10.39-2+ubuntu21.10.1+deb.sury.org+1) ...
dpkg: error processing archive /var/cache/apt/archives/libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb (--unpack):
'/usr/lib/x86_64-linux-gnu/libpcre2-posix.so.3'의 덮어쓰기를 시도합니다. 이 파일은 libpcre2-posix3:amd64 10.37-0ubuntu2 패키지에도 들어있습니다
처리하는데 오류가 발생했습니다:
/var/cache/apt/archives/libpcre2-posix2_10.39-2+ubuntu21.10.1+deb.sury.org+1_amd64.deb
E: Sub-process /usr/bin/dpkg returned an error code (1)
덮어쓴 후 강제 설치 후 업그레이드 한다.
sudo apt -o Dpkg::Options::="--force-overwrite" install libpcre2-posix2
sudo apt update
sudo apt install -f
sudo apt upgrade
반응형
'os > Ubuntu' 카테고리의 다른 글
php7 ppa.launchpad.net/ondrej/php-7.0/ubuntu (0) | 2016.03.31 |
---|---|
add-apt-repository not found (0) | 2016.01.13 |
Paper 테마 (0) | 2016.01.07 |
ubuntu linux-image install 의존성 문제 (0) | 2015.10.27 |
일괄 이미지 변환툴 (0) | 2015.09.06 |