Settings in php-fpm

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Settings in php-fpm
# 1  
Old 07-04-2017
Settings in php-fpm

hi
I have created several pools , In the directory
Code:
/etc/php-fpm.d/

The pool's requirements are as follows
Code:
listen = 127.0.0.1:9001
listen.owner = mn
listen.group = mn
And other settings

Virtual Host Settings
Code:
<VirtualHost 192.168.20.245:80>
    ServerName    mn 
    DocumentRoot /home/mn/public_html
ServerAlias mn
   ErrorLog /var/log/httpd/mn-error.log
    CustomLog /var/log/httpd/mn-requests.log combined
<Directory /home/mn/public_html>
Options -Indexes -ExecCGI -FollowSymLinks -Includes
</Directory>
DirectoryIndex index.php
<FilesMatch \.php$>
        SetHandler "proxy:fcgi://127.0.0.1:9001"
    </FilesMatch>

<IfModule mod_fastcgi.c>
    AddType application/x-httpd-fastphp5 .php
    Action application/x-httpd-fastphp5 /php5-fcgi
    Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi
    FastCgiExternalServer /var/fastcgi/php5.fcgi -socket 127.0.0.1:9001
    <Directory /usr/lib/cgi-bin>
        Require all granted
    </Directory>
</IfModule>


</VirtualHost>

In the next pool I've set up another port and I've done this
#Question
How to use the file path instead of the port ?
#Question
When I search the plugin online in WordPress, I get this error
Is it linked to php-fpm?


Code:
	 [pid 19297:tid 140092261738240] [client 192.168.20.254:36778] AH01071: Got error 'PHP message: PHP Warning:  
An unexpected error occurred. 
Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems
, please try the <a href="https://wordpress.org/support/">support forums</a>. (WordPress could not establish a secure
 connection to WordPress.org. Please contact your server administrator.) in /home/mn/public_html/wp-admin/includes/translation-install.php 
on line 66\n', referer: http://192.168.20.245/wp-admin/   



Image

Thanks

Code:
PHP version 5.6.30
          OS : centos 7.3
          webserver : apache 2.4.6

---------- Post updated at 04:41 PM ---------- Previous update was at 04:40 PM ----------

Last edited by vbe; 07-05-2017 at 04:20 AM.. Reason: added missed code tag
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Web Development

Problem in settings php-fpm

hi I've used apache and php-fpm Handlers on my web server Web pages open at very low speeds And some pages give 503 errors I get the following warnings in php-fpm Alerts in php-fpm NOTICE: child 17630 started WARNING: child 16165 exited on signal 15 (SIGTERM) after 666.682314... (1 Reply)
Discussion started by: mnnn
1 Replies

2. HP-UX

IPC settings on HP-UX

Hi Experts, Need your help for checking te interprocess communications settings on HP-UX box. Using ipcs command I am able to view Message queue,semapohores etc, but from that output I m not able to understand how to determine if there is any issue with ipc settings and how to resolve that? (1 Reply)
Discussion started by: sai_2507
1 Replies

3. HP-UX

Vi Editor Settings For Hp-UX

can any one provide me Vi Edior Settings for HP-UX I searched the forum i cound't able to find much information. 1) Need Vi editor setting for Color Code ... to work in C++ (Highlight Syntax .... as Vi Editor in Linux ... which we enable the syntax) 2)Delete , backspace , arrows , home ,... (3 Replies)
Discussion started by: girija
3 Replies

4. Linux

Ip settings

Hi, How to set ip address in linux. Regards, Guguli (1 Reply)
Discussion started by: guguli
1 Replies

5. AIX

hyperlink settings

Does anyone know the hyperlink settings to look at an AIX5L box? (1 Reply)
Discussion started by: vbagwell
1 Replies

6. Shell Programming and Scripting

enviroment settings

What are the environment setting during a cron session? I have HP-UX and I want to send the output/file from a script to several e-mail addresses. I want to create an env-var to store the e-mail addresses in my .profile, but I do not know if it will be visible when a script is executed in a cron. (4 Replies)
Discussion started by: ALTRUNVRSOFLN
4 Replies

7. BSD

settings in rc.firewall

Hi everyone. I'm trying to setup eMule and torrents on the local network behind the BSD server. And everything seems to work except one detail - it works as long as ${fwcmd} add deny log tcp from any to any in via ${oif} setup is commented out. Meaning that not only required ports are open,... (1 Reply)
Discussion started by: reality
1 Replies

8. UNIX for Advanced & Expert Users

.profile settings

I need to configure my .profile so that it should always reflect my present directory path during my session. How can i do that. Please help (1 Reply)
Discussion started by: satgur
1 Replies

9. Linux

LAN settings

Hi all, How do i check whether the LAN is using full-duplex or half-duplex? It'll be best if there is a method on command line but i don't mind using GUI. (1 Reply)
Discussion started by: nickk
1 Replies

10. UNIX for Dummies Questions & Answers

Network settings

Total newbie here!! How do I view and alter network settings (ip address, subnet mask and default gateway) in UNIX? Thanks in advance.. (3 Replies)
Discussion started by: ZappaDub
3 Replies
Login or Register to Ask a Question