linux - Unable to bind listening socket for address php-fpm -


i followed instruction https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7, step step, while restarted php-fpm, failed.

the error log:

error: unable bind listening socket address 'var/run/php-fpm.d/www.conf' : no such file or directory error: fpm initialization failed

environment: centos 7 php, mariadb , nginx installed installed in virtualbox.

log/report:

the journalctl shows:

    localhost.localdomain php-fpm[2574]: error: unable bind listening socket address '/var/run/php-fpm.d/www.conf' : no such file or directory     localhost.localdomain php-fpm[2574]:error: fpm initialization failed     localhost.localdomain systemd[1]: php-fpm.service: main process exited, code=exited, status=78/n/a     localhost.localdomain systemd[1]: failed start php fastcgi process manager. 

the status shows:

    php-fpm.service - php fastcgi process manager     loaded: loaded (/usr/lib/systemd/system/php-fpm.service; disabled)     active: failed (result: exit-cod )     process: 2639 execstart=/usr/sbin/php-fpm --nodaemonize (code=exited,           status=78)     main pid:2639 (code=exited, status=78)     localhost.localdomain php-fpm[2639]: error: unable bind listening socket address '/var/run/php-fpm.d/www.conf' : no such file or directory     localhost.localdomain php-fpm[2639]: error: fpm initialization failed     localhost.localdomain steam[1]: failed start php fastcgi process manager.     localhost.localdomain steam[1]: unit php-fpm.service entered failed state. 

the www.conf is

    [www]     listen = /var/run/php-fpm.d/www.conf     listen.allowed_clients = 127.0.0.1     user = apache     group = apache     pm = dynamic     pm.max_children = 50     pm.start_servers = 5     pm.min_spare_servers = 5     pm.max_spare_servers = 5     slowlog = /var/log/php-fpm/www-slow.log     php_admin_value[error_log] = /var/log/php-fpm/www-error.log     php_admin_flag[log_errors] = on     php_value[session.save_handler] = files     php_value[session.save_path] = /var/lib/php/session 

nginx default.conf is

    server{             listen 80;             server_name ip address;             root /usr/share/nginx/html;             location / {             try_files $uri $uri/ = 404;     }     error_page 404 /404.html;     error_page 500 502 503 504 /50x.html;     location = /50x.html {             root /usr/share/nginx/html;     }     location ~\.php$ {             fastcgi_split_path_info ^(.+?\.php)(./*)$;             fastcgi_pass unix:/var/run/php-fpm.sock;             fastcgi_index index.php;             include fastcgi_params;             fastcgi_param script_filename  $document_root$fastcgi_script_name;     } 

and, cgi.fix_pathinfo=0 checked.


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -