简体   繁体   English

PHP fpm安装后如何用apache配置它?

[英]PHP fpm is installed how to configure it with apache?

PHP fpm is freshly installed how can i configure it with apache? PHP fpm是新安装的,如何使用apache配置它?

netstat -an | grep :9000 netstat -an | grep :9000 i have tried this command but it returns nothing i think I need to configure it with apache first netstat -an | grep :9000我已经尝试过此命令,但是它什么也没有返回,我想我首先需要用apache配置它

You are doing it wrong. 你做错了。 If you are using Apache, then you should be using mod_php, which is made to integrate php with apache. 如果您使用的是Apache,则应使用mod_php,它是用来将php与apache集成在一起的。 Unless you really have some specific reason to use php_fpm with apache, which if you did, I don't think you would be trying to make this work for the first time, then you want to be paring php-fpm with nginx. 除非您确实有特定的理由要在apache上使用php_fpm,否则,我认为您不会第一次尝试使此工作正常,那么您想将nginx与php-fpm搭配使用。

There are lots of how-to articles out there that will walk you through setting these up and integrating them. 那里有很多how-to文章,它们将带您逐步进行设置和集成。 Rather than a LAMP stack, people have taken to calling this a LEMP stack. 人们将其称为Lemp堆栈,而不是LAMP堆栈。

The best tutorial is going to be the one that your Hosting company provides, or if that doesn't exist, then at least one for your linux distribution. 最好的教程将是您的托管公司提供的教程,或者如果不存在,则为您的Linux发行版至少提供一个。

For example, for Centos 7: https://www.howtoforge.com/tutorial/install-nginx-with-php-and-mysql-lemp-stack-on-centos/ 例如,对于Centos 7: https : //www.howtoforge.com/tutorial/install-nginx-with-php-and-mysql-lemp-stack-on-centos/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM