15

配置 php-fpm

 3 years ago
source link: https://yjalifebook.com/%e9%85%8d%e7%bd%ae-php-fpm/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

配置 php-fpm 并 安装 ionCube7.2

https://www.digitalocean.com/community/tutorials/how-to-configure-apache-http-with-mpm-event-and-php-fpm-on-ubuntu-18-04-fr

https://wetopi.com/install-ioncube-loader/


配置 php-fpm

sudo systemctl stop apache2
sudo a2dismod php7.2
sudo a2dismod mpm_prefork
sudo a2enmod mpm_event
sudo apt install php-fpm
sudo apt install libapache2-mod-fcgid
sudo a2enconf php7.2-fpm
sudo a2enmod proxy
sudo a2enmod proxy_fcgi
sudo apachectl configtest
// Output
// Syntax OK
sudo systemctl restart apache2
sudo apachectl -M | grep 'mpm'
// Output
// mpm_event_module (shared)
sudo apachectl -M | grep 'proxy'
// Output
// proxy_module (shared)
// proxy_fcgi_module (shared)
// check phpinfo.php
<?php
phpinfo();
?>

配置 php-fpm 最大文件

// 加入 .htaccess 文件
<Files ".user.ini">
    Require all denied
</Files>
sudo vim .user.ini
// 加入 .user.ini 文件
upload_max_filesize="5M"
post_max_size="5M"
// 重启服务
sudo service php7.2-fpm restart

安装 ionCube7.2

cd /tmp
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz
tar -xvzf ioncube_loaders_lin_x86-64.tar.gz
----
// Add the ionCube Loader php extension
php -i | grep extension_dir
// output dir [path]
cd ioncube
sudo cp ioncube_loader_lin_7.2.so [path]
php -i | grep 'additional .ini files'
// output [path]
----
sudo vim /etc/php/7.2/fpm/php.ini
// add one line
zend_extension=ioncube_loader_lin_7.2.so
// restart php-fpm sercive
sudo service php7.2-fpm restart

欢迎大家关顾我的Facebook主页「Y Life Book」以及我的公众微信号「不点语书」,我们下期见。


Recommend

  • 11
    • xushanxiang.com 4 years ago
    • Cache

    Linux改动php.ini后如何重启php-fpm

    一、改动php.ini 最近使用PhpMyAdmin导入一个1.5M的*.sql.zip文件到MySQL过程中遇到上传文件异常: 413 Request Entity Too Large 搜索了一下,原来是

  • 11

    PHP 技能精进之 PHP-FPM 多进程模型 仅限深圳|现场揭秘:腾讯云原生数据库架构探索与实践 >> ...

  • 12

    Fastcgi 协议分析与 PHP-FPM 攻击方法 Fastcgi 协议分析与 PHP-FPM 攻击方法 [toc] 前言?没有前言了…… 早期的Web服务器,只能响应浏览...

  • 9
    • www.anquanke.com 3 years ago
    • Cache

    php内核分析-fpm和df的问题思考

    php内核分析-fpm和df的问题思考 阅读量    25365...

  • 7

    解决 Docker Nginx 与 Php-fpm 偶现 502 问题 2021-10-02 这个标题不太好取,目前环境是 Nginx + Php-fpm,其中之前提过 WordPress 容器优化,使用 php -fpm 可以极大程度的减少容器体积,但那时候遗留了一个问题,就是在后台更新插件或...

  • 10

    PHP-FPM中backlog参数变更的一些思考 浏览:1516次  出处信息 在前年时,业务中遇到好多次因为PHP-FPM的backlog参数...

  • 5
    • blogread.cn 3 years ago
    • Cache

    多nginx单php-fpm的配置方法

    多nginx单php-fpm的配置方法 浏览:3034次  出处信息     用php fastcgi和nginx搭配的形式是很常见的,在很BT的需求下...

  • 18
    • computingforgeeks.com 3 years ago
    • Cache

    Install Nginx With PHP-FPM on Ubuntu 22.04|20.04

    Install Nginx With PHP-FPM on Ubuntu 22.04|20.04Search ComputingForGeeksThis guide has been created to help...

  • 13

    <?xml encoding="utf-8" ??>Introduction As server hardware gets faster and more efficient, it's no longer uncommon to host multiple websites on Nginx web server. For better performance, process i...

  • 20

    <?xml encoding="utf-8" ??>OpenBSD 7, Nginx, PHP-FPM (FastCGI Process Manager), and MySQL (OEMP) work as a collection to form a web stack that makes it possible to run dynamic applications on a server. Ngi...

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK