question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to start Nginx daemon

See original GitHub issue
Installing Evilginx daemon...

Synchronizing state of nginx.service with SysV service script with /lib/systemd/systemd-sysv-install.
Executing: /lib/systemd/systemd-sysv-install enable nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl  status nginx.service" and "journalctl  -xe" for details.
[-] Failed to start Nginx daemon.
systemctl  status nginx.service
● nginx.service - The NGINX HTTP and reverse proxy server
   Loaded: loaded (/etc/systemd/system/nginx.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2017-10-12 15:54:09 EDT; 34s ago
      CPU: 3ms

Oct 12 15:54:09 aidan-laptop systemd[1]: Starting The NGINX HTTP and reverse proxy server...
Oct 12 15:54:09 aidan-laptop nginx[22458]: nginx: [emerg] dlopen() "/etc/nginx/nginx/modules/ngx_http_au
Oct 12 15:54:09 aidan-laptop nginx[22458]: nginx: configuration file /etc/nginx/nginx.conf test failed
Oct 12 15:54:09 aidan-laptop systemd[1]: nginx.service: Control process exited, code=exited status=1
Oct 12 15:54:09 aidan-laptop systemd[1]: Failed to start The NGINX HTTP and reverse proxy server.
Oct 12 15:54:09 aidan-laptop systemd[1]: nginx.service: Unit entered failed state.
Oct 12 15:54:09 aidan-laptop systemd[1]: nginx.service: Failed with result 'exit-code'.

Help please, running using Kali GNU/Linux Rolloing

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
thehappydinoacommented, Nov 4, 2017
0reactions
mathieu-aubincommented, May 25, 2018

edit your /etc/hosts file (under linux, as admin) and add your ip address followed by whatever domain you’d like… (add a line to the file, similar to this one but with a ip that works for you)

127.0.0.1 domain.fake www.domain.fake

then change or add a server_name line to your nginx server block

server {
    listen 80;
    listen [::]:443;
    server_name domain.fake;
    server_name www.domain.fake;
    .....
    ......
}

assuming you have all the correct ports open … trying http://domain.fake in your browser you return to your local nginx server

As for the question – i have no idea how evlginx works i havnt played with it. I do lots of nginx in general tho…

Read more comments on GitHub >

github_iconTop Results From Across the Web

nginx.service failed because the control process exited
In my case, I was formally using node/expressjs to handle my server. Http was set to run on port 80, while https set...
Read more >
Can't start Nginx - Job for nginx.service failed - DigitalOcean
Hello, This is my fist droplet and I've followed all the steps for the initial server setup with Ubuntu, how to setup a...
Read more >
Can not restart Nginx, "Job for nginx.service failed because ...
I've tried to restart nginx: $ sudo service nginx restart Job for nginx.service failed because the control process exited with error code. See...
Read more >
job for nginx.service failed. see "systemctl status ... - You.com
Here's how I fixed it: Run the command below to open the default configuration file of Nginx in Nano editor. sudo nano /etc/ ......
Read more >
systemctl start nginx fails - Unix & Linux Stack Exchange
nginx : [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use). means that there's still a running daemon listening on port 80....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found