I have an AWS server running on Amazon Linux.
I used this guide to install php7 (at the bottom of the page): https://forums.aws.amazon.com/thread.jspa?messageID=695576
I would like to use nginx instead of Apache, so I also installed the php70w-fpm and nginx packages. However, when I do service start php-fpm, it does not create the php-fpm.sock file anywhere on my server. I logged in to / var / run and also ran find / -name "*.sock"which returns only /var/run/rpcbind.sock.
service start php-fpm
find / -name "*.sock"
/var/run/rpcbind.sock
Edit: , www.conf fastcgi_pass nginx . tcp, .
www.conf
fastcgi_pass
, .sock.
.sock
/etc/php-fpm.d/www.conf
listen = 127.0.0.1:9000
fastcgi_pass 127.0.0.1:9000;
fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;
, , . Python.
python -c "import socket as s; sock = s.socket(s.AF_UNIX); sock.bind('/run/php/php-fpm.sock')"
/etc/php/7.0/fpm/pool.d/wordpress.conf
[wordpress] listen = /var/run/php7-fpm-wordpress.sock
*.sock , .
php-fpm systemd PrivateTmp php-fpm ( find/etc/systemd -name "php-fpm*" ! -type d : find/etc/systemd -name "php-fpm*" ! -type d)
systemd
PrivateTmp
find/etc/systemd -name "php-fpm*" ! -type d
If this parameter is set to true PrivateTmp=true, PrivateTmp=truea new file system namespace will be created for the main php-process , and another process will not be able to manipulate files in this default namespace (for example, nginx). Read more about the systemd parameter PrivateTmphere: https://www.freedesktop.org/software/systemd/man/systemd.exec.html.
PrivateTmp=true
Hope this helps!
Source: https://habr.com/ru/post/1628542/More articles:Convert time_t to tm at a specific time - cWhy is a float rounded down to C when converting to int? - cGgplot multi-line header with different font size, face, etc. - rWhy can I call a function in C without declaring it, but not in C ++? - c ++Python3 - TypeError: module .__ init __ () accepts no more than 2 arguments (3 data) - pythonWhy should I use and instead of &? - javascriptCreating a mock IHttpFilter to test Windows.Web.Http.HttpClient - c #Pipeline Saving with DecisionTreeModel Spark ML - scalaNeed help getting OneToMany association from ManyToOne - phpMachine learning: how to learn the MTG card game - machine-learningAll Articles