{"id":263,"date":"2021-01-23T20:24:39","date_gmt":"2021-01-23T11:24:39","guid":{"rendered":"https:\/\/manvscloud.com\/?p=263"},"modified":"2021-03-06T04:01:44","modified_gmt":"2021-03-05T19:01:44","slug":"php8-0-1-%ec%bb%b4%ed%8c%8c%ec%9d%bc-%ec%84%a4%ec%b9%98-apmwordpress","status":"publish","type":"post","link":"https:\/\/manvscloud.com\/?p=263","title":{"rendered":"PHP8.0.1 \ucef4\ud30c\uc77c \uc124\uce58 (APM+wordpress)"},"content":{"rendered":"\n<p>\uc548\ub155\ud558\uc138\uc694. ManVSCloud \uae40\uc218\ud604\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n<p>\uc624\ub298\uc740 2021-01-07\uc5d0 \ub098\uc628 PHP 8.0.1 \ubc84\uc804\uc744 \ucef4\ud30c\uc77c \uc124\uce58\ud574\ubcf4\ub824\uace0 \ud569\ub2c8\ub2e4.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"358\" src=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23122626\/8.0.1-1024x358.png\" alt=\"\" class=\"wp-image-302\" srcset=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23122626\/8.0.1-1024x358.png 1024w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23122626\/8.0.1-300x105.png 300w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23122626\/8.0.1-768x268.png 768w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23122626\/8.0.1-1080x377.png 1080w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23122626\/8.0.1.png 1392w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\ud14c\uc2a4\ud2b8\ub294 WordPress\uae4c\uc9c0 \uc5f0\ub3d9\ud558\uc5ec \uc815\uc0c1\uc801\uc73c\ub85c \ud50c\ub7ec\uadf8\uc778 \uc124\uce58 \ubc0f \uae00\uc4f0\uae30\uac00 \ub418\ub294\uc9c0\uae4c\uc9c0 \ud655\uc778\ud560 \uac83\uc785\ub2c8\ub2e4.<br><\/p>\n\n\n\n<h2 class=\"has-white-color has-vivid-cyan-blue-background-color has-text-color has-background wp-block-heading\">    Environment<\/h2>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">CentOS Linux release 7.7.1908 (Core) x86_64<br>CPU : Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz  (4core)<br>Memory : 16G<br><span class=\"has-inline-color has-vivid-red-color\">(PHP \ucef4\ud30c\uc77c \uc2dc out of memory \ubc1c\uc0dd\ud558\uc5ec \uc778\uc2a4\ud134\uc2a4 \ud06c\uae30\ub97c m4.xlarge\ub85c \ud558\uc5ec \ud14c\uc2a4\ud2b8 \ud588\uc2b5\ub2c8\ub2e4.)<\/span><br>Apache : httpd-2.4.6-97.el7.centos.x86_64<br>PHP : PHP 8.0.1 (cli)<br>MariaDB : MariaDB-server-10.4.17-1.el7.centos.x86_64<br>WordPress : 5.6<\/p>\n\n\n\n<p>Apache\uc640 MariaDB\ub294 RPM\uc73c\ub85c \uc124\uce58\ud558\uc600\uc2b5\ub2c8\ub2e4.<br><\/p>\n\n\n\n<h2 class=\"has-white-color has-luminous-vivid-amber-background-color has-text-color has-background wp-block-heading\">Basic Install &amp; Setting<\/h2>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"944\" height=\"571\" src=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23140406\/selinux.png\" alt=\"\" class=\"wp-image-303\" srcset=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23140406\/selinux.png 944w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23140406\/selinux-300x181.png 300w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23140406\/selinux-768x465.png 768w\" sizes=\"(max-width: 944px) 100vw, 944px\" \/><\/figure>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">1  cat -n \/etc\/selinux\/config\n2  sed -i '7s\/enforcing\/disabled\/g' \/etc\/selinux\/config\n3  yum install gcc gcc* make cmake libtool wget zip unzip autoconf automake libjpeg-devel libpng-devel freetype-devel libxml2-devel libicu* hspell libvoikko enchant-devel libffi-devel libcurl-devel libldap* sqlite-devel \"Image*\" *imap-devel pam-devel openssl-devel firebird-devel aspell-devel readline-devel net-snmp-devel libsodium-devel yum install libtidy libtidy-devel libxslt-devel git bzip2-devel \n\n#(\uc704\uc5d0\uc11c \uc124\uce58\uac00 \uc548\ub420 \uc218\ub3c4 \uc788\uc2b5\ub2c8\ub2e4. \uc774\ud6c4 epel \ucd94\uac00 \ud6c4 \uc7ac\uc124\uce58\ud558\uba74 \ub098\uba38\uc9c0\uac00 \uc124\uce58\ub429\ub2c8\ub2e4.)\n\n4  init 6<\/pre>\n\n\n\n<p>\uc6d0\ud65c\ud55c \uc124\uce58\ub97c\uc704\ud574 selinux \uae30\ub2a5\uc744 \uaebc\uc8fc\uace0 \uae30\ubcf8 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub4e4\uc744 \uc124\uce58\ud574\uc900 \ub4a4 <br>\uc7ac\uc2dc\uc791\uc744 \ud574\uc90d\ub2c8\ub2e4.<br>(\uae30\ubcf8 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub294 \uc0ac\uc6a9\ud558\uc2e4 \ubd80\ubd84\ub9cc \uace8\ub77c\uc11c \uc124\uce58\ud558\uc154\ub3c4 \ub429\ub2c8\ub2e4.)<br><\/p>\n\n\n\n<h2 class=\"has-white-color has-vivid-green-cyan-background-color has-text-color has-background wp-block-heading\">    Apache &amp; MariaDB Install<\/h2>\n\n\n\n<h4 class=\"has-black-color has-text-color wp-block-heading\"><strong>[Apache]<\/strong><\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">yum install httpd httpd-devel -y\ncp -avp \/etc\/httpd\/conf\/httpd.conf \/etc\/httpd\/conf\/httpd.conf_org\n\n#[root@ip-10-0-1-238 conf]# cat -n \/etc\/httpd\/conf\/httpd.conf | grep Indexes\n#135 # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews\n#144 Options Indexes FollowSymLinks\n\nsed -i '144s\/Indexes\/\/g' \/etc\/httpd\/conf\/httpd.conf\n#(144\ubc88\uc904\uc5d0 \uc788\ub294 Indexes\ub97c \uc81c\uac70\ud574\uc8fc\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4.)\n\n#[root@ip-10-0-1-238 ~]# cat -n \/etc\/httpd\/conf\/httpd.conf | grep -A 3 \"Directory \/\"\n#102 &lt;Directory \/>\n#103 AllowOverride none\n#104 Require all denied\n#105 &lt;\/Directory>\n\nperl -p -i -e '$.==104 and print \" Require all granted\\n\"' \/etc\/httpd\/conf\/httpd.conf\nsed -i '105s\/ Require all denied\/#&amp;\/' \/etc\/httpd\/conf\/httpd.conf\n#(104 \ubc88\uc904\uc5d0 \uc811\uadfc \ud5c8\uc6a9 \uc124\uc815 \ubc0f denied \ubd80\ubd84\uc740 \uc8fc\uc11d \ucc98\ub9ac\ud574\uc8fc\uaca0\uc2b5\ub2c8\ub2e4.)\n\n#[root@ip-10-0-1-238 ~]# cat -n \/etc\/httpd\/conf\/httpd.conf | grep -A 4 \"Directory \/\"\n#102 &lt;Directory \/>\n#103 AllowOverride none\n#104 Require all granted\n#105 # Require all denied\n#106 &lt;\/Directory>\n\ncat &lt;&lt; EOF >> \/etc\/httpd\/conf\/httpd.conf\nServerTokens Prod\nServerSignature Off\n&lt;IfModule mpm_prefork_module>\nStartServers 40 \nMinSpareServers 25 \nMaxSpareServers 100 \nServerLimit 1024 \nMaxRequestWorkers 1024 \nMaxConnectionsPerChild 0\n&lt;\/IfModule>\nIndexIgnore *\nEOF\n\ncat \/etc\/httpd\/conf\/httpd.conf | tail -n 11\n#\uc704 \uba85\ub839\uc5b4\ub85c httpd.conf\uc5d0 \uc635\uc158\uc774 \uc798 \ub4e4\uc5b4\uac14\ub294\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.\n\ncat &lt;&lt; EOF > \/etc\/httpd\/conf.d\/vhost.conf\n&lt;VirtualHost *:80>\nServerName php.manvscloud.com\nDocumentRoot \/home\/php\/wordpress\/\n&lt;\/VirtualHost>\nEOF\n\nmkdir -p \/home\/php\/wordpress\n\napachectl -S\n#\uc704 \uba85\ub839\uc5b4\ub85c virtual host\uac00 \uc815\uc0c1\uc801\uc73c\ub85c \ucd94\uac00\ub418\uc5c8\ub294\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.\n\nsystemctl enable httpd\nsystemctl start httpd<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">[MariaDB]<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cat &lt;&lt; EOF > \/etc\/yum.repos.d\/MariaDB.repo\n[mariadb]\nname = MariaDB\nbaseurl = http:\/\/yum.mariadb.org\/10.4\/centos7-amd64\ngpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB\ngpgcheck=1\nEOF\n\nyum install MariaDB-server MariaDB-client -y\n\nsystemctl enable mariadb\nsystemctl start mariadb\n\nmysql -uroot -p\n\ncreate database wordpress;\ncreate user 'manvscloud'@'localhost' identified by 'PW';\ngrant all privileges on wordpress.* to 'manvscloud'@'localhost';\nflush privileges;\nexit<\/pre>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<h2 class=\"has-white-color has-vivid-purple-background-color has-text-color has-background wp-block-heading\">    PHP 8.0.1 <\/h2>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">cd \/usr\/local\/src<br>wget https:\/\/www.php.net\/distributions\/php-8.0.1.tar.gz<br>tar zxvf php-8.0.1.tar.gz<br>.\/configure &#8211;help > phpconf_help.txt<br><br><strong><span class=\"has-inline-color has-vivid-red-color\">\uc0dd\uc131\ud55c phpconf_help.txt \ub97c \uc798 \uc77d\uc5b4\ubcf4\uc790. <\/span><span class=\"has-inline-color has-luminous-vivid-orange-color\">\u2605\u2605\u2605\u2605\u2605<\/span><\/strong><br><br><span class=\"has-inline-color has-vivid-red-color\">\uc544\ub798\ub294 php \ucef4\ud30c\uc77c \uc911\uc5d0 \uc124\uce58\uac00 \ub35c \ub418\uac70\ub098 \ucd94\uac00\ub85c \uc124\uc815\ud574\uc8fc\uc5b4\uc57c\ud558\ub294 \ubd80\ubd84\uc774 \uc788\uc5b4<br>\uc815\ub9ac\ud574\ubcf4\uc558\uc2b5\ub2c8\ub2e4. <\/span><span class=\"has-inline-color has-pale-pink-color\">(oracle, postgresql \uc81c\uc678)<\/span><br><br><span class=\"has-inline-color has-vivid-red-color\">\ucef4\ud30c\uc77c \uc911 oniguruma\uac00 \uc5c6\ub2e4\ub294 \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4. <\/span><span class=\"has-inline-color has-pale-pink-color\"><br><\/span><span class=\"has-inline-color has-luminous-vivid-amber-color\">(No package &#8216;oniguruma&#8217; found)<\/span><span class=\"has-inline-color has-pale-pink-color\"><br><br><\/span><span class=\"has-inline-color has-vivid-red-color\">oniguruma-devel\ub97c \uc124\uce58\ud574\uc8fc\uc5b4\uc57c\ud558\ub294\ub370 epel-release \uc124\uce58\ub97c \ud558\uc9c0 \uc54a\uace0<br>oniguruma-devel\ub97c \uc124\uce58\ud560 \uacbd\uc6b0 \ud328\ud0a4\uc9c0\ub97c \ucc3e\uc744 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. <\/span><span class=\"has-inline-color has-pale-pink-color\"><br><\/span><span class=\"has-inline-color has-luminous-vivid-amber-color\">(No package oniguruma-devel available.)<\/span><br><br>yum install epel-release<br>yum install oniguruma-devel<br><br><span class=\"has-inline-color has-pale-cyan-blue-color\">-. libzip<\/span><br><span class=\"has-inline-color has-luminous-vivid-amber-color\">configure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:No package &#8216;libzip&#8217; found<\/span><br><br><span class=\"has-inline-color has-vivid-red-color\">CentOS7\uc5d0\uc11c libzip yum\uc73c\ub85c \uc124\uce58\ud560 \uacbd\uc6b0 0.10.1-8.el7\uc73c\ub85c\ub9cc \uc124\uce58\ub418\uc5b4 \ub530\ub85c \ucef4\ud30c\uc77c\ud574\uc8fc\uc5c8\uc2b5\ub2c8\ub2e4.<\/span><br><br>cd \/usr\/local\/src<br>wget https:\/\/libzip.org\/download\/libzip-1.7.3.tar.gz<br>tar zxvf libzip-1.7.3.tar.gz<br>cd libzip-1.7.3<br>cmake -DCMAKE_INSTALL_PREFIX=\/usr\/local\/libzip<br><br><span class=\"has-inline-color has-vivid-red-color\">libzip 1.7.3 \ubc84\uc804\uc744 \ucef4\ud30c\uc77c \ud558\uae30\uc704\ud574\uc11c\ub294 cmake 3.0.2 \uc774\uc0c1\uc774 \ud544\uc694\ud588\uc2b5\ub2c8\ub2e4.<\/span><br><span class=\"has-inline-color has-luminous-vivid-amber-color\">CMake Error at CMakeLists.txt:1 (cmake_minimum_required):<br>CMake 3.0.2 or higher is required. You are running version 2.8.12.2<\/span><br><br>wget https:\/\/github.com\/Kitware\/CMake\/releases\/download\/v3.18.5\/cmake-3.18.5-Linux-x86_64.tar.gz<br>tar zxvf cmake-3.18.5-Linux-x86_64.tar.gz<br>mv cmake-3.18.5-Linux-x86_64 \/usr\/local\/cmake<br><br>\/usr\/local\/cmake\/bin\/cmake -DCMAKE_INSTALL_PREFIX=\/usr\/local\/libzip<br>make &amp;&amp; make install<br><br>export PKG_CONFIG_PATH=\/usr\/local\/libzip\/lib64\/pkgconfig<br><span class=\"has-inline-color has-vivid-red-color\">(\uc774\ud6c4 \/etc\/profile \uc5d0 \ub123\uc5b4 \uc90d\uc2dc\ub2e4.)<\/span><br><br><span class=\"has-inline-color has-pale-cyan-blue-color\">-. ldap<\/span><br>cp -frp \/usr\/lib64\/libldap* \/usr\/lib<br><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">.\/configure --prefix=\/usr\/local\/php \\\n--with-apxs2=\/usr\/bin\/apxs \\\n--with-config-file-path=\/etc\/ \\\n--with-config-file-scan-dir=\/etc\/php.d \\\n--enable-gd \\\n--with-zlib \\\n--with-freetype \\\n--with-jpeg \\\n--with-curl \\\n--with-pear \\\n--with-openssl \\\n--enable-bcmath \\\n--with-bz2 \\\n--enable-calendar \\\n--enable-ctype \\\n--enable-dba \\\n--enable-dom \\\n--with-enchant \\\n--enable-exif \\\n--with-ffi \\\n--enable-fileinfo \\\n--enable-filter \\\n--enable-ftp \\\n--with-gettext \\\n--with-gmp \\\n--with-iconv \\\n--enable-intl \\\n--with-ldap \\\n--enable-mbstring \\\n--with-mysqli \\\n--enable-mysqlnd \\\n--enable-pcntl \\\n--enable-pdo \\\n--with-pdo_firebird \\\n--with-pdo_mysql \\\n--with-pdo_sqlite \\\n--enable-phar \\\n--enable-posix \\\n--with-pspell \\\n--with-readline \\\n--enable-session \\\n--enable-shmop \\\n--with-snmp \\\n--enable-soap \\\n--enable-sockets \\\n--with-sodium \\\n--with-sqlite3 \\\n--enable-sysvmsg \\\n--enable-sysvsem \\\n--enable-sysvshm \\\n--with-tidy \\\n--enable-tokenizer \\\n--with-xsl \\\n--with-zip \\\n--enable-simplexml \\\n--with-libxml \\\n--enable-xml \\\n--enable-xmlreader \\\n--enable-xmlwriter \\\n--enable-opcache<\/pre>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">make -j `grep processor \/proc\/cpuinfo | wc -l`\n#(j\uc635\uc158\uc744 \uc8fc\uc5b4 \ucef4\ud30c\uc77c \uc18d\ub3c4\ub97c \ucd5c\uc801\ud654 \ud569\ub2c8\ub2e4.)\n\n\/bin\/ld: ext\/ldap\/ldap.o: undefined reference to symbol 'ber_memfree'\n#(make \uc911\uc5d0 ldap \ucabd\uc5d0\uc11c \uc704\uc640 \uac19\uc740 \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4.)\n#(\uc544\ub798\ucc98\ub7fc Makefile\uc744 \uc218\uc815\ud560 \ud544\uc694\uac00 \uc788\uc5c8\uc2b5\ub2c8\ub2e4.)\n\nvi Makefile\nEXTRA_LIBS = -lcrypt -ltidy -lresolv -lcrypt -lreadline -lncurses -laspell -lpspell -lfbclient -lrt -lldap -llber -lstdc++ -lgmp -lbz2 -lutil -lrt -lm -ldl -lxml2 -lssl -lcrypto -lsqlite3 -lz -lcurl -lxml2 -lenchant -lgmodule-2.0 -lglib-2.0 -lffi -lssl -lcrypto -lz -lpng15 -ljpeg -lfreetype -licuio -licui18n -licuuc -licudata -lonig -lsqlite3 -lxml2 -lnetsnmp -lssl -lssl -lcrypto -lm -lxml2 -lsodium -lxml2 -lxml2 -lxml2 -lxslt -lz -ldl -lm -lxml2 -lexslt -lxslt -lz -lm -lgcrypt -ldl -lgpg-error -lxml2 -lzip -lz -lssl -lcrypto -lcrypt\n#(\uc704\uc640 \ub3d9\uc77c\ud55c \uc5d0\ub7ec \ubc1c\uc0dd \uc2dc Makefile\uc5d0 EXTRA_LIBS \ucabd\uc5d0 -llber \ucd94\uac00)\n\nmake -j `grep processor \/proc\/cpuinfo | wc -l`\nmake install\n\ncp -avp php.ini-production \/etc\/php.ini\n\ufeff<\/pre>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">cat &lt;&lt; EOF &gt;&gt; \/etc\/profile<br>export PKG_CONFIG_PATH=\/usr\/local\/libzip\/lib64\/pkgconfig<br>PATH=$PATH:\/usr\/local\/php\/bin<br>export PATH<br>EOF<br><br>source \/etc\/profile<\/p>\n\n\n\n<h5 class=\"has-cyan-bluish-gray-color has-text-color wp-block-heading\"><strong>&lt; imagick \ubaa8\ub4c8 \ucd94\uac00 ><\/strong><\/h5>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd \/usr\/local\/src\nwget https:\/\/pecl.php.net\/get\/imagick-3.4.4.tgz\ntar zxvf imagick-3.4.4.tgz\ncd imagick-3.4.4\nphpize\n.\/configure --with-php-config=\/usr\/local\/php\/bin\/php-config\nmake<\/pre>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\"><span class=\"has-inline-color has-luminous-vivid-amber-color\">\/usr\/local\/src\/imagick-3.4.4\/imagick_file.c:313:112: error: expected ??;??, ??,?? or ??)?? before ??TSRMLS_DC??<br>zend_bool php_imagick_stream_handler(php_imagick_object *intern, php_stream *stream, ImagickOperationType type TSRMLS_DC)<br>^<br>make: *** [imagick_file.lo] Error 1<\/span><br><br><span class=\"has-inline-color has-vivid-red-color\">(php8\uc5d0\uc11c\ub294 imagick\uc774 \uc815\uc0c1\uc801\uc73c\ub85c \uc124\uce58\uac00 \ub418\uc9c0\uc54a\uace0 Error\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4.<br>\ub3d9\uc77c\ud55c \uc624\ub958\uac00 \ud574\uc678\ucabd\uc5d0\uc11c\ub3c4 \uc788\uc5c8\ub294\uc9c0 \ucc3e\ub2e4\ubcf4\ub2c8 git\uc5d0\uc11c 8\ubc84\uc804\uc5d0\uc11c \uc0ac\uc6a9\ud560 \uc218 \uc788\ub294 <br>imagick\uc744 \ucc3e\uac8c \ub418\uc5c8\uc2b5\ub2c8\ub2e4.)<\/span><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git clone https:\/\/github.com\/Imagick\/imagick.git\ncd imagick\nphpize\n.\/configure --with-php-config=\/usr\/local\/php\/bin\/php-config\nmake\n\nmkdir -p \/etc\/php.d\/modules\ncp -a \/usr\/local\/src\/imagick\/modules\/imagick.so \/etc\/php.d\/modules\/imagick.so<\/pre>\n\n\n\n<h5 class=\"has-cyan-bluish-gray-color has-text-color wp-block-heading\"><strong>&lt; opcache \ubaa8\ub4c8 \uc124\uce58 &gt;<\/strong><\/h5>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\"><span class=\"has-inline-color has-pale-pink-color\">\ucef4\ud30c\uc77c \uc2dc \ucd94\uac00\ud588\ub358 opcache\uac00 \uc790\ub3d9\uc73c\ub85c \uc62c\ub77c\uc624\uc9c0 \uc54a\uc544 \uc218\ub3d9\uc73c\ub85c \ucd94\uac00\ud574\uc8fc\uc5c8\uc2b5\ub2c8\ub2e4.<\/span><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"shell\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd \/usr\/local\/src\/php-8.0.1\/ext\/opcache\nphpize\n.\/configure --with-php-config=\/usr\/local\/php\/bin\/php-config\nmake\ncp -a \/usr\/local\/src\/php-8.0.1\/ext\/opcache\/modules\/opcache.so \/etc\/php.d\/modules\/opcache.so<\/pre>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\"><span class=\"has-inline-color has-vivid-red-color\">(php.ini\uc5d0 imagick\uacfc opcache \ubaa8\ub4c8\uc744 \ucd94\uac00 \ud574\uc90d\ub2c8\ub2e4.)<\/span><br>cat &lt;&lt; EOF >> \/etc\/php.ini<br>extension=\/etc\/php.d\/modules\/imagick.so<br>zend_extension=\/etc\/php.d\/modules\/opcache.so<br>EOF<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\"><span class=\"has-inline-color has-vivid-red-color\">\ub9c8\uc9c0\ub9c9\uc73c\ub85c httpd.conf\uc5d0 \uc544\ub798 \uac12\uc744 \ucd94\uac00 \ud55c \ub4a4 \ub9c8\ubb34\ub9ac\ud569\ub2c8\ub2e4.<\/span><br><br>&lt;IfModule dir_module&gt;<br>DirectoryIndex index.html index.php<br>&lt;\/IfModule&gt;<br><br>AddType application\/x-httpd-php .php .htm .html .inc<br>AddType application\/x-httpd-php-source .phps<\/p>\n\n\n\n<p>  <br><\/p>\n\n\n\n<h2 class=\"has-white-color has-vivid-red-background-color has-text-color has-background wp-block-heading\">    WordPress Install &amp; TEST<\/h2>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">cd \/home\/php<br>wget https:\/\/ko.wordpress.org\/latest-ko_KR.tar.gz<br>tar zxvf latest-ko_KR.tar.gz<br>cd wordpress<br>cp -a wp-config-sample.php wp-config.php<br><br>vi wp-config.php<\/p>\n\n\n\n<p>wp.config.php\uc5d0\uc11c \uc704 mariadb\uc5d0\uc11c \ub9cc\ub4e4\uc5b4\uc900 DB\uc640 \uacc4\uc815 \uc815\ubcf4\ub97c \ub123\uc5b4\uc90d\ub2c8\ub2e4.<\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">\/** The name of the database for WordPress *\/<br>define( &#8216;DB_NAME&#8217;, &#8216;wordpress&#8217; );<br>\/** MySQL database username *\/<br>define( &#8216;DB_USER&#8217;, &#8216;manvscloud&#8217; );<br>\/** MySQL database password *\/<br>define( &#8216;DB_PASSWORD&#8217;, &#8216;PW&#8217; );<br>\/** MySQL hostname *\/<br>define( &#8216;DB_HOST&#8217;, &#8216;127.0.0.1&#8217; );<br>\/** Database Charset to use in creating database tables. *\/<br>define( &#8216;DB_CHARSET&#8217;, &#8216;utf8&#8217; );<br>\/** The Database Collate type. Don&#8217;t change this if in doubt. *\/<br>define( &#8216;DB_COLLATE&#8217;, &#8221; );<\/p>\n\n\n\n<p><strong>\uc784\uc2dc\ub85c \/home\/php \uc0ac\uc6a9\uc790\/\uadf8\ub8f9 \uad8c\ud55c\uc744 apache\ub85c \ud55c \ub4a4 Apache\ub97c \uc7ac\uc2dc\uc791\ud569\ub2c8\ub2e4.<\/strong><br><span class=\"has-inline-color has-cyan-bluish-gray-color\"><strong>(\ud14c\uc2a4\ud2b8 \ud6c4 \uc0ac\uc6a9\uc790\/\uadf8\ub8f9 \uad8c\ud55c\uc744 \ubcc0\uacbd\ud558\ub294 \uac83\uc744 \uad8c\uc7a5\ud569\ub2c8\ub2e4.)<\/strong><\/span><\/p>\n\n\n\n<p class=\"has-white-color has-black-background-color has-text-color has-background\">chown -R apache:apache \/home\/php<br>apachectl rstart<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"has-inline-color has-luminous-vivid-orange-color\">[ \uc0ac\uc774\ud2b8 \uc811\uc18d \ud574\ubcf4\uae30 ]<\/span><\/h3>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"599\" src=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23193659\/php1-1024x599.png\" alt=\"\" class=\"wp-image-306\" srcset=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23193659\/php1-1024x599.png 1024w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23193659\/php1-300x175.png 300w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23193659\/php1-768x449.png 768w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23193659\/php1-1536x898.png 1536w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23193659\/php1-1080x632.png 1080w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23193659\/php1.png 1754w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"623\" src=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23193714\/php2-1024x623.png\" alt=\"\" class=\"wp-image-307\" srcset=\"https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23193714\/php2-1024x623.png 1024w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23193714\/php2-300x183.png 300w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23193714\/php2-768x467.png 768w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23193714\/php2-1536x935.png 1536w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23193714\/php2-1080x657.png 1080w, https:\/\/cdn.manvscloud.com\/wp-content\/uploads\/2021\/01\/23193714\/php2.png 1684w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>\uae00\uc4f0\uae30 \ud14c\uc2a4\ud2b8 \ubc0f \ud50c\ub7ec\uadf8\uc778 \uc124\uce58\/\ud65c\uc131\ud654\uae4c\uc9c0 \uc798 \ub418\uc5c8\uc2b5\ub2c8\ub2e4.<br>(\ud50c\ub7ec\uadf8\uc778 \uc124\uce58\ub97c \uc6d0\ud65c\ud788 \ud558\ub824\uba74 wp-config.php\uc5d0 \ucd94\uac00 \uc635\uc158\uc774 \ud544\uc694\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.)<br><br>PHP8\uc5d0\uc11c \ucd94\uac00\ub418\uac70\ub098 \ub2ec\ub77c\uc9c0\ub294 \ubd80\ubd84\uc740 \ucd94\uac00 \ub9c1\ud06c\ub85c \ub0a8\uae30\ub3c4\ub85d \ud558\uaca0\uc2b5\ub2c8\ub2e4.<br><a href=\"https:\/\/www.php.net\/releases\/8.0\/en.php\">https:\/\/www.php.net\/releases\/8.0\/en.php<\/a><br><a href=\"https:\/\/www.inflearn.com\/course\/php8-new-features#\">https:\/\/www.inflearn.com\/course\/php8-new-features#<\/a><\/p>\n\n\n\n<p>PHP 8\ubc84\uc804 \ucef4\ud30c\uc77c\uc740 \uc131\uacf5\uc801\uc774\uc5c8\uc2b5\ub2c8\ub2e4.<br>\ub9c8\uc9c0\ub9c9\uc73c\ub85c PHP 8 \ucef4\ud30c\uc77c \ucee8\ud150\uce20\ub97c \ud574\ubcfc \uc218 \uc788\ub3c4\ub85d \uc81c\uc548\ud574\uc8fc\uc2e0 \ub9ac\ub205\uc11c\ub2d8\uc5d0\uac8c <br>\uac10\uc0ac\uc758 \uc778\uc0ac \uc62c\ub9bd\ub2c8\ub2e4.  \ub9ce\uc740 \uacf5\ubd80\uac00 \ub418\uc5c8\uc2b5\ub2c8\ub2e4.<br><a href=\"https:\/\/linuxer.name\/\">https:\/\/linuxer.name\/<\/a><\/p>\n\n\n\n<p>\uae34 \uae00 \uc77d\uc5b4\uc8fc\uc154\uc11c \uac10\uc0ac\ud569\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc548\ub155\ud558\uc138\uc694. ManVSCloud \uae40\uc218\ud604\uc785\ub2c8\ub2e4. \uc624\ub298\uc740 2021-01-07\uc5d0 \ub098\uc628 PHP 8.0.1 \ubc84\uc804\uc744 \ucef4\ud30c\uc77c \uc124\uce58\ud574\ubcf4\ub824\uace0 \ud569\ub2c8\ub2e4. \ud14c\uc2a4\ud2b8\ub294 WordPress\uae4c\uc9c0 \uc5f0\ub3d9\ud558\uc5ec \uc815\uc0c1\uc801\uc73c\ub85c \ud50c\ub7ec\uadf8\uc778 \uc124\uce58 \ubc0f \uae00\uc4f0\uae30\uac00 \ub418\ub294\uc9c0\uae4c\uc9c0 \ud655\uc778\ud560 \uac83\uc785\ub2c8\ub2e4. Environment CentOS Linux release 7.7.1908 (Core) x86_64CPU : Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz (4core)Memory : 16G(PHP \ucef4\ud30c\uc77c \uc2dc out of memory \ubc1c\uc0dd\ud558\uc5ec \uc778\uc2a4\ud134\uc2a4 \ud06c\uae30\ub97c m4.xlarge\ub85c \ud558\uc5ec \ud14c\uc2a4\ud2b8 \ud588\uc2b5\ub2c8\ub2e4.)Apache : httpd-2.4.6-97.el7.centos.x86_64PHP : PHP 8.0.1 (cli)MariaDB : MariaDB-server-10.4.17-1.el7.centos.x86_64WordPress : 5.6 Apache\uc640 MariaDB\ub294 RPM\uc73c\ub85c \uc124\uce58\ud558\uc600\uc2b5\ub2c8\ub2e4. Basic Install &amp; Setting \uc6d0\ud65c\ud55c \uc124\uce58\ub97c\uc704\ud574 selinux \uae30\ub2a5\uc744 \uaebc\uc8fc\uace0 \uae30\ubcf8 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub4e4\uc744 \uc124\uce58\ud574\uc900 \ub4a4 \uc7ac\uc2dc\uc791\uc744 \ud574\uc90d\ub2c8\ub2e4.(\uae30\ubcf8 \ub77c\uc774\ube0c\ub7ec\ub9ac\ub294 \uc0ac\uc6a9\ud558\uc2e4 \ubd80\ubd84\ub9cc \uace8\ub77c\uc11c \uc124\uce58\ud558\uc154\ub3c4 \ub429\ub2c8\ub2e4.) Apache &amp; MariaDB Install [Apache] [MariaDB] PHP 8.0.1 cd \/usr\/local\/srcwget https:\/\/www.php.net\/distributions\/php-8.0.1.tar.gztar zxvf php-8.0.1.tar.gz.\/configure &#8211;help > phpconf_help.txt \uc0dd\uc131\ud55c phpconf_help.txt \ub97c \uc798 \uc77d\uc5b4\ubcf4\uc790. \u2605\u2605\u2605\u2605\u2605 \uc544\ub798\ub294 php \ucef4\ud30c\uc77c \uc911\uc5d0 \uc124\uce58\uac00 \ub35c \ub418\uac70\ub098 \ucd94\uac00\ub85c \uc124\uc815\ud574\uc8fc\uc5b4\uc57c\ud558\ub294 \ubd80\ubd84\uc774 \uc788\uc5b4\uc815\ub9ac\ud574\ubcf4\uc558\uc2b5\ub2c8\ub2e4. (oracle, postgresql \uc81c\uc678) \ucef4\ud30c\uc77c \uc911 oniguruma\uac00 \uc5c6\ub2e4\ub294 \uc5d0\ub7ec\uac00 \ubc1c\uc0dd\ud588\uc2b5\ub2c8\ub2e4. (No package &#8216;oniguruma&#8217; found) oniguruma-devel\ub97c \uc124\uce58\ud574\uc8fc\uc5b4\uc57c\ud558\ub294\ub370 epel-release \uc124\uce58\ub97c \ud558\uc9c0 \uc54a\uace0oniguruma-devel\ub97c \uc124\uce58\ud560 \uacbd\uc6b0 \ud328\ud0a4\uc9c0\ub97c \ucc3e\uc744 \uc218 \uc5c6\uc2b5\ub2c8\ub2e4. (No package oniguruma-devel available.) yum install epel-releaseyum install oniguruma-devel -. libzipconfigure: error: Package requirements (libzip >= 0.11 libzip != 1.3.1 libzip != 1.7.0) were not met:No package &#8216;libzip&#8217; found CentOS7\uc5d0\uc11c libzip yum\uc73c\ub85c \uc124\uce58\ud560 \uacbd\uc6b0 0.10.1-8.el7\uc73c\ub85c\ub9cc \uc124\uce58\ub418\uc5b4 \ub530\ub85c \ucef4\ud30c\uc77c\ud574\uc8fc\uc5c8\uc2b5\ub2c8\ub2e4. cd \/usr\/local\/srcwget https:\/\/libzip.org\/download\/libzip-1.7.3.tar.gztar zxvf libzip-1.7.3.tar.gzcd libzip-1.7.3cmake -DCMAKE_INSTALL_PREFIX=\/usr\/local\/libzip libzip 1.7.3 \ubc84\uc804\uc744 \ucef4\ud30c\uc77c \ud558\uae30\uc704\ud574\uc11c\ub294 cmake 3.0.2 \uc774\uc0c1\uc774 \ud544\uc694\ud588\uc2b5\ub2c8\ub2e4.CMake [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[5],"tags":[56,42,75,49,32,73,76,77,79,27,78,34,74],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/manvscloud.com\/index.php?rest_route=\/wp\/v2\/posts\/263"}],"collection":[{"href":"https:\/\/manvscloud.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/manvscloud.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/manvscloud.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/manvscloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=263"}],"version-history":[{"count":12,"href":"https:\/\/manvscloud.com\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions"}],"predecessor-version":[{"id":522,"href":"https:\/\/manvscloud.com\/index.php?rest_route=\/wp\/v2\/posts\/263\/revisions\/522"}],"wp:attachment":[{"href":"https:\/\/manvscloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/manvscloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/manvscloud.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}