{"id":7992,"date":"2021-03-24T16:44:34","date_gmt":"2021-03-24T22:44:34","guid":{"rendered":"https:\/\/www.bhinfo.com.mx\/cursos\/?p=7992"},"modified":"2021-03-24T16:47:59","modified_gmt":"2021-03-24T22:47:59","slug":"instalar-php-fpm","status":"publish","type":"post","link":"https:\/\/www.bhinfo.com.mx\/cursos\/2021\/03\/24\/instalar-php-fpm\/","title":{"rendered":"Instalar PHP-FPM"},"content":{"rendered":"<p>PHP FPM (FastCGI Process Manager) es una implementacion alternativa de PHP FastCGI. Proporciona algunas caracter\u00edsticas adicionales como la generaci\u00f3n de procesos adaptativos, que es \u00fatil para los sitios. Este tutorial le ayudar\u00e1 a instalar Apache con PHP-FPM \/ FastCGI en el sistema Ubuntu 20.04. En este tutorial, usamos PHP 7.4 y configuramos con Apache usando PHP-FPM y FastCGI.<\/p>\n<pre class=\"lang:default decode:true \">--\r\nsudo apt update\r\nsudo apt install php7.4 php7.4-fpm\r\n--\r\n<\/pre>\n<p>Despues de esto se necesita habilitar algunos modulos de apache requeridos para la configuracion FastCGI<\/p>\n<pre class=\"lang:default decode:true \">--\r\nsudo a2enmod actions fcgid alias proxy_fcgi\r\n--\r\n<\/pre>\n<p>Posteriormente hay que habilitar Virtual Host con la siguiente configuracion<\/p>\n<pre class=\"lang:ps decode:true \">--\r\n&lt;VirtualHost *:80&gt;\r\n    ServerName example.com\r\n    ServerAlias www.example.com\r\n    DocumentRoot \/var\/www\/html\r\n \r\n    &lt;Directory \/var\/www\/html&gt;\r\n        Options -Indexes +FollowSymLinks +MultiViews\r\n        AllowOverride All\r\n        Require all granted\r\n    &lt;\/Directory&gt;\r\n \r\n    &lt;FilesMatch \\.php$&gt;\r\n        # 2.4.10+ can proxy to unix socket\r\n        SetHandler \"proxy:unix:\/var\/run\/php\/php7.4-fpm.sock|fcgi:\/\/localhost\"\r\n    &lt;\/FilesMatch&gt;\r\n \r\n    ErrorLog ${APACHE_LOG_DIR}\/error.log\r\n    CustomLog ${APACHE_LOG_DIR}\/access.log combined\r\n&lt;\/VirtualHost&gt;\r\n--\r\n<\/pre>\n<p>Al final hay que verificar que la configuraci\u00f3n sea la correcta<\/p>\n<p><a href=\"https:\/\/www.bhinfo.com.mx\/cursos\/wp-content\/uploads\/2021\/03\/sshot-2021-03-24-16-42-30.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-7994\" src=\"https:\/\/www.bhinfo.com.mx\/cursos\/wp-content\/uploads\/2021\/03\/sshot-2021-03-24-16-42-30.jpg\" alt=\"PHP-FPM\" width=\"953\" height=\"406\" srcset=\"https:\/\/www.bhinfo.com.mx\/cursos\/wp-content\/uploads\/2021\/03\/sshot-2021-03-24-16-42-30.jpg 953w, https:\/\/www.bhinfo.com.mx\/cursos\/wp-content\/uploads\/2021\/03\/sshot-2021-03-24-16-42-30-300x128.jpg 300w, https:\/\/www.bhinfo.com.mx\/cursos\/wp-content\/uploads\/2021\/03\/sshot-2021-03-24-16-42-30-768x327.jpg 768w, https:\/\/www.bhinfo.com.mx\/cursos\/wp-content\/uploads\/2021\/03\/sshot-2021-03-24-16-42-30-788x336.jpg 788w\" sizes=\"auto, (max-width: 953px) 100vw, 953px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP FPM (FastCGI Process Manager) es una implementacion alternativa de PHP FastCGI. Proporciona algunas caracter\u00edsticas adicionales como la generaci\u00f3n de procesos adaptativos, que es \u00fatil para los sitios. Este tutorial le ayudar\u00e1 a instalar Apache con PHP-FPM \/ FastCGI en el sistema Ubuntu 20.04. En este tutorial, usamos PHP 7.4 y configuramos con Apache usando [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[70,76,104,1],"tags":[88,87,485],"class_list":["post-7992","post","type-post","status-publish","format-standard","hentry","category-ddavila","category-como-hacer","category-linux","category-uncategorized","tag-linux","tag-php","tag-ubuntu"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.bhinfo.com.mx\/cursos\/wp-json\/wp\/v2\/posts\/7992","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bhinfo.com.mx\/cursos\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bhinfo.com.mx\/cursos\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bhinfo.com.mx\/cursos\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bhinfo.com.mx\/cursos\/wp-json\/wp\/v2\/comments?post=7992"}],"version-history":[{"count":2,"href":"https:\/\/www.bhinfo.com.mx\/cursos\/wp-json\/wp\/v2\/posts\/7992\/revisions"}],"predecessor-version":[{"id":7995,"href":"https:\/\/www.bhinfo.com.mx\/cursos\/wp-json\/wp\/v2\/posts\/7992\/revisions\/7995"}],"wp:attachment":[{"href":"https:\/\/www.bhinfo.com.mx\/cursos\/wp-json\/wp\/v2\/media?parent=7992"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bhinfo.com.mx\/cursos\/wp-json\/wp\/v2\/categories?post=7992"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bhinfo.com.mx\/cursos\/wp-json\/wp\/v2\/tags?post=7992"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}