Failed to start nginx.service

onestro

Registered Member
Joined
Aug 13, 2021
Messages
80
Reaction score
26
Hello dear BHWs,
I have a domain (and old web) that I am trying to migrate on my own hosting.
I don't have the funds to pay, so I am doing this alone.
Ubuntu 24.04.1 LTS
1731437284366.png

Above is the error from terminal.
The server has nginx, mysql, php-fpm 8.3 installed, but something is failing, I am out of ideas.
Can somebody troubleshoot with m, if anybody has the time of course.
I am really out of idea.
 
The issue is with your /etc/nginx/nginx.conf file - as stated in the output you are using a directive that's not allowed there "user". Can you paste the whole file contents here?
 
1731438969399.png

1731439001410.png

1731439021887.png
this is nginx.conf
 
this is /etc/
 

Attachments

  • 1731440360326.png
    1731440360326.png
    10.3 KB · Views: 49
I would try to comment out the line that says:

user infinitymarket;

by adding a # sign before it. Then you can run:


to check if there are any other issues beside that line and if configuration syntax is correct, just restart nginx and it should work.
 
Back
Top