M
M
Martovitskiy2019-10-04 19:28:56
linux
Martovitskiy, 2019-10-04 19:28:56

How to overcome Failed to start php-fpm.service: Unit not found. error?

php files not starting:
conf

server {
    listen 80;
    server_name vipoc.pb.ua;
    root /sybase/vipoc/;
    index index.php index.html index.htm;
    access_log /sybase/vipoc/access.log main;
    error_log /sybase/vipoc/error.log;

    location / {
    return 301 https://vipoc.pb.ua$request_uri;
    }

    location ~* ^.+.(js|css|png|jpg|jpeg|gif|ico|woff)$ {
    return 301 https://vipoc.pb.ua$request_uri;
    }

    location ~ \.php$ {
    return 301 https://vipoc.pb.ua$request_uri;
    }

    location = /favicon.ico {
    log_not_found off;
    access_log off;
    }

    location = /robots.txt {
    rewrite ^ /robots.txt break;
    allow all;
    log_not_found off;
    access_log off;
    }

    location ~ /\.ht {
    deny all;
    }
}

5d977310cd266334584750.png
Centos server.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Enj0y, 2019-10-04
@Martovitskiy

sudo systemctl start php7.2-fpm.service
I don't know why you

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question