{"id":365,"date":"2015-12-09T06:30:07","date_gmt":"2015-12-09T09:30:07","guid":{"rendered":"http:\/\/www.henriquereis.com\/?p=365"},"modified":"2015-12-10T05:48:19","modified_gmt":"2015-12-10T08:48:19","slug":"php7-no-fedora-23","status":"publish","type":"post","link":"https:\/\/henriquereis.com\/blog\/php7-no-fedora-23\/","title":{"rendered":"php7 no Fedora 23"},"content":{"rendered":"<p><span style=\"line-height: 1.5;\">Se voc\u00ea prefere instalar via dnf\/yum ao inv\u00e9s de compilar pule para o <\/span><strong style=\"line-height: 1.5;\">passo 2<\/strong><span style=\"line-height: 1.5;\">.<\/span><\/p>\n<p><strong>1 &#8211; Para quem prefere compilar:<\/strong><\/p>\n<p>dnf install autoconf gcc bison<br \/>\ndnf install libxml2-devel<br \/>\ndnf install openssl-devel<br \/>\ndnf install bzip2-devel<br \/>\ndnf install libcurl-devel<br \/>\ndnf install libjpeg-devel<br \/>\ndnf install libpng-devel<br \/>\ndnf install libXpm-devel<br \/>\ndnf install freetype-devel<br \/>\ndnf install gmp-devel<br \/>\ndnf install libmcrypt-devel<br \/>\ndnf install mysql-devel<br \/>\ndnf install postgresql-devel<br \/>\ndnf install aspell-devel<br \/>\ndnf install recode-devel<\/p>\n<p>baixe o pacote em php.net, descompacte e entre no diret\u00f3rio com os fontes<\/p>\n<p>.\/buildconf &#8211;force<\/p>\n<p>.\/configure \\<br \/>\n-enable-mbstring \\<br \/>\n&#8211;enable-fpm \\<br \/>\n&#8211;enable-zip \\<br \/>\n&#8211;enable-bcmath \\<br \/>\n&#8211;enable-pcntl \\<br \/>\n&#8211;enable-ftp \\<br \/>\n&#8211;enable-exif \\<br \/>\n&#8211;enable-calendar \\<br \/>\n&#8211;enable-sysvmsg \\<br \/>\n&#8211;enable-sysvsem \\<br \/>\n&#8211;enable-sysvshm \\<br \/>\n&#8211;enable-wddx \\<br \/>\n&#8211;with-curl \\<br \/>\n&#8211;with-mcrypt \\<br \/>\n&#8211;with-iconv \\<br \/>\n&#8211;with-gmp \\<br \/>\n&#8211;with-pspell \\<br \/>\n&#8211;with-gd \\<br \/>\n&#8211;with-jpeg-dir=\/usr \\<br \/>\n&#8211;with-png-dir=\/usr \\<br \/>\n&#8211;with-zlib-dir=\/usr \\<br \/>\n&#8211;with-xpm-dir=\/usr \\<br \/>\n&#8211;with-freetype-dir=\/usr \\<br \/>\n&#8211;with-t1lib=\/usr \\<br \/>\n&#8211;enable-gd-native-ttf \\<br \/>\n&#8211;enable-gd-jis-conv \\<br \/>\n&#8211;with-openssl \\<br \/>\n&#8211;with-pdo-mysql=\/usr \\<br \/>\n&#8211;with-pgsql=\/usr \\<br \/>\n&#8211;with-pdo-pgsql=\/usr \\<br \/>\n&#8211;with-gettext=\/usr \\<br \/>\n&#8211;with-zlib=\/usr \\<br \/>\n&#8211;with-bz2=\/usr \\<br \/>\n&#8211;with-recode=\/usr \\<br \/>\n&#8211;with-mysqli=\/usr\/bin\/mysql_config<\/p>\n<p>lembre-se de renomear um dos arquivos: <em>php.ini-production<\/em> ou <em>php.ini-development<\/em> para <em>php.ini<\/em> e caso for usar o php-fpm renomear tamb\u00e9m o\u00a0<em>php-fpm.conf.default<\/em> para\u00a0<em>php-fpm.conf<\/em> em seguida configure os arquivos conforme achar necess\u00e1rio, se compilou pule para o <strong>passo 3<\/strong>.<\/p>\n<p><strong>2 &#8211; Para quem prefere instalar via linha de comando<\/strong><br \/>\nwget http:\/\/rpms.remirepo.net\/fedora\/remi-release-23.rpm<br \/>\ndnf install remi-release-23.rpm<br \/>\ndnf update;<br \/>\ndnf &#8211;enablerepo=remi &#8211;enablerepo=remi-test -y install \\<br \/>\nphp70 \\<br \/>\nphp70-php \\<br \/>\nphp70-php-fpm \\<br \/>\nphp70-php-common \\<br \/>\nphp70-php-cli \\<br \/>\nphp70-php-devel \\<br \/>\nphp70-php-gd \\<br \/>\nphp70-php-mbstring \\<br \/>\nphp70-php-mcrypt \\<br \/>\nphp70-php-pecl-memcached \\<br \/>\nphp70-php-mysqlnd \\<br \/>\nphp70-php-pdo \\<br \/>\nphp70-php-pgsql \\<br \/>\nphp70-php-xml;<\/p>\n<p><strong>3 &#8211; p\u00f3s instala\u00e7\u00e3o<\/strong><\/p>\n<p>ln -s \/usr\/local\/sbin\/php-fpm \/usr\/bin\/php-fpm<\/p>\n<p>source \/opt\/remi\/php70\/enable<\/p>\n<p>systemctl enable php70-php-fpm<br \/>\nsystemctl start php70-php-fpm<\/p>\n<p>service php70-php-fpm start\/stop\/restart<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Se voc\u00ea prefere instalar via dnf\/yum ao inv\u00e9s de compilar pule para o passo 2. 1 &#8211; Para quem prefere compilar: dnf install autoconf gcc bison dnf install libxml2-devel dnf install openssl-devel dnf install bzip2-devel dnf install libcurl-devel dnf install libjpeg-devel dnf install libpng-devel dnf install libXpm-devel dnf install freetype-devel dnf install gmp-devel dnf install &hellip; <a href=\"https:\/\/henriquereis.com\/blog\/php7-no-fedora-23\/\" class=\"more-link\">Continue lendo <span class=\"screen-reader-text\">php7 no Fedora 23<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/posts\/365"}],"collection":[{"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/comments?post=365"}],"version-history":[{"count":10,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/posts\/365\/revisions"}],"predecessor-version":[{"id":390,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/posts\/365\/revisions\/390"}],"wp:attachment":[{"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/media?parent=365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/categories?post=365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/henriquereis.com\/blog\/wp-json\/wp\/v2\/tags?post=365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}