Lighttpd Not Starting No Error
Contents |
1 #1 2011-10-05 07:13:59 graysky Member From: The worse toilet in Scotland Registered: 2008-12-01 Posts: 8,673 Website lighttpd
Opening Errorlog '/var/log/lighttpd/error.log' Failed: Permission Denied
fails to start - no error messages given [solved] Lighttpd opening pid-file failed: /var/run/lighttpd.pid permission denied stopped working all of a sudden. I removed it, nuked /etc/lighttpd/lighttpd.conf and re-installed lighttpd and lighttpd service failed using the default /etc/lighttpd/lighttpd.conf from the PKG with no modifications. When I attempt to start it, I get a FAIL message and nothing in /var/log/lighttpd
Lighttpd Status 255
at all (empty directory). # rc.d start lighttpd :: Checking configuration [DONE] :: Starting lighttpd [FAIL] That said, I can manually run the following and the daemon works just fine:# /usr/sbin/lighttpd-angel -D -f /etc/lighttpd/lighttpd.confThis is on i686 if that matters... thoughts are welcomed EDIT: AH! Turns out there was a stale
The Fastcgi-backend /usr/bin/php-cgi Failed To Start:
pid file ---> /var/run/lighttpd/lighttpd-angel.pid for some reason preventing the daemon from running. Perhaps we need to add a stale pid check to /etc/rc.d/lighttpd. Opened https://bugs.archlinux.org/task/26270 Last edited by graysky (2011-10-05 07:26:29) CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs Offline #2 2011-10-20 19:20:05 florian.klein Member Registered: 2011-10-20 Posts: 2 Re: lighttpd fails to start - no error messages given [solved] Thanks for pointing this out! Offline Pages: 1 Index »Networking, Server, and Protection »lighttpd fails to start - no error messages given [solved] Board footer Jump to Newbie Corner Installation Kernel & Hardware Applications & Desktop Environments Laptop Issues Networking, Server, and Protection Multimedia and Games System Administration Other Architectures Announcements, Package & Security Advisories Arch Discussion Forum & Wiki discussion Pacman & Package Upgrade Issues [testing] Repo Forum Creating & Modifying Packages AUR Issues, Discussion & PKGBUILD Requests GNU/Linux Discussion Community Contributions Programm
you try to start lighttpd, it says the server started ok, but you check and there's no lighttpd process. You reloading web server configuration: lighttpd failed then go after your error log files, and nothing… what the fuck is
Spawning Fcgi Failed
happening? try this to attempt to debug. sudo strace -ff /usr/local/sbin/lighttpd -f /etc/lighttpd/lighttpd.conf In my case the output lighttpd config file showed me lighttpd was having permission issues trying to access a log file… [pid 28073] close(5) = 0
[pid 28073] munmap(0x7fe884c71000, 4096) = 0
[pid 28073] write(3, "2015-02-04 11:04:23: https://bbs.archlinux.org/viewtopic.php?id=127702 (log.c.164)"..., 49) = 49
[pid 28073] close(2) = 0
[pid 28073] open("/dev/null", O_RDWR) = 2
[pid 28073] brk(0x2203000) = 0x2203000
[pid 28073] open("/home/bh/access.log", O_WRONLY|O_CREAT|O_APPEND, 0644) = -1 EACCES (Permission denied)
[pid 28073] write(3, "2015-02-04 11:04:23: (log.c.118)"..., 98) = 98
[pid 28073] write(3, "2015-02-04 11:04:23: (server.c.1"..., 83) = 83 Related Post navigation Previous PostNext Post Tags: debugging, lighttpd, http://www.gubatron.com/blog/2015/02/04/what-to-do-when-lighttpd-wont-start-and-wont-give-out-any-error-output/ Linux, server administration, tips, tricks, web servers, web services / Category: Code Share on Twitter Facebook Submit a comment Cancel reply Your CommentName Email Website Notify me of follow-up comments by email. Notify me of new posts by email. Search for: Recent Posts [VLOG] S01E25: MY 37TH BDAY [VLOG] S01E24:BIKING WITH MY AUNT [VLOG] S01E21: FIST RIDE ON DENVER A-LINE TO AIRPORT HOW TO ENABLE PHP FPM LOG OUTPUT Upgrading your wordpress blog to PHP 7.0 on Ubuntu Xenial Recent Commentsgubatron on Las Mentiras sobre la MarihuanaClaudia García on Las Mentiras sobre la MarihuanaMofid Hemaidan on svn: Can't create tunnel: The system cannot find the file specified.gubatron on How to actually build bitcoin on Mac OSX 10.9.1gubatron on Las Mentiras sobre la MarihuanaArchives September 2016 July 2016 June 2016 May 2016 April 2016 January 2016 December 2015 April 2015 March 2015 February 2015 January 2015 December 2014 October 2014 September 2014 August 2014 July 2014 June 2014 May 2014 April 2014 February 2014 January 2014 December 2013 November 2013 October 2013 September 2013 August 2013 July 2013 June 2013 May 2013 April 2013 March 2
communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn http://askubuntu.com/questions/344600/lighttpd-starts-but-doesnt-work-lighttpd-pid-permission-denied more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Ask Ubuntu Questions Tags Users Badges Unanswered Ask Question _ Ask Ubuntu is a question and answer site https://github.com/pi-hole/pi-hole/issues/262 for Ubuntu users and developers. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to permission denied the top Lighttpd starts but doesn't work. lighttpd.pid Permission Denied up vote 1 down vote favorite System: Ubuntu 12.04 Server Restarting lighttpd show status as [ OK ] But on performing netstat -ntulp I don't find the lighttpd server to be running. Here is a screenshot showing the results. As you can see checking the syntax of server config reveals that there is a permission error on /var/run/lighttpd.pid. A quick lighttpd not starting ls -l reveals that it is owned by root user. So I quickly changed ownership of lighttpd.pid to the server.username/server.group = www-data, and reloaded lighttpd along with a check through netstat. My efforts have failed. The pid keeps changing back to root ownership. Here is my lighttpd.conf. Any help on this would be appreciated. Thankyou. 12.04 server permissions lighttpd share|improve this question asked Sep 12 '13 at 9:49 varunyellina 1682311 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote Well the whole question is moot. I did not set my php5-fpm socket connections properly. Solved with the following. First, sudo nano /etc/php5/fpm/pool.d/www.conf Now change the listen line to look like this. ;listen = 127.0.0.1:9000 listen = /tmp/php5-fpm.sock Second, sudo nano /etc/lighttpd/conf-available/15-fastcgi-php.conf Now you just have to restart your php5-fpm -> sudo /etc/init.d/php5-fpm reload And, sudo /etc/init.d/lighttpd restart Reference: http://www.zimbio.com/Linux/articles/IssTANdRWZQ/How+install+Lighttpd+PHP5+MySQL+Ubuntu+12 http://kywk.github.io/endroid/linux/ubuntu_LLMP-setup.html share|improve this answer answered Sep 12 '13 at 14:02 varunyellina 1682311 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to the privacy policy
Sign in Pricing Blog Support Search GitHub This repository Watch 126 Star 1,812 Fork 229 pi-hole/pi-hole Code Issues 94 Pull requests 15 Projects 2 Wiki Pulse Graphs New issue Lighttp can't start , any idea why? #262 Closed Ondjultomte opened this Issue Jan 29, 2016 · 32 comments Projects None yet Labels QUESTION Milestone No milestone Assignees No one assigned 3 participants Ondjultomte commented Jan 29, 2016 sudo service lighttpd start Job for lighttpd.service failed. See 'systemctl status lighttpd.service' and 'journalctl -xn' for details. /etc/lighttpd$ systemctl status lighttpd.service ● lighttpd.service - Lighttpd Daemon Loaded: loaded (/lib/systemd/system/lighttpd.service; enabled) Active: failed (Result: exit-code) since fre 2016-01-29 10:58:31 CET; 13s ago Process: 7891 ExecStartPre=/usr/sbin/lighttpd -t -f /etc/lighttpd/lighttpd.conf (code=exited, status=255) /etc/lighttpd$ journalctl -xn No journal files were found. ● debian State: degraded Jobs: 0 queued Failed: 1 units Since: ons 2016-01-27 00:26:37 CET; 2 days ago CGroup: / ├─1 /sbin/init └─system.slice ├─dbus.service │ └─436 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation ├─cron.service │ └─428 /usr/sbin/cron -f ├─nfs-common.service │ ├─413 /sbin/rpc.statd │ └─427 /usr/sbin/rpc.idmapd ├─exim4.service │ └─751 /usr/sbin/exim4 -bd -q30m ├─fail2ban.service │ └─580 /usr/bin/python /usr/bin/fail2ban-server -b -s /var/run/fail2ban/fail2ban.sock -p /var/run/fail2ban/fail2ban.pid ├─atd.service │ └─430 /usr/sbin/atd -f ├─systemd-journald.service │ └─151 /lib/systemd/systemd-journald ├─dnsmasq.service │ └─471 /usr/sbin/dnsmasq -x /var/run/dnsmasq/dnsmasq.pid -u dnsmasq -7 /etc/dnsmasq.d,.dpkg-dist,.dpkg-old,.dpkg-new --local-service --trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5 ├─ssh.service │ ├─ 431 /usr/sbin/sshd -D │ ├─ 780 tmux │ ├─ 781 -bash │ ├─ 790 -bash │ ├─ 799 htop │ ├─ 8