Project

General

Profile

[UE] "503 Service Not Available" when trying to access php files

Added by walterbyrd over 3 years ago

It works for .html files.

I am trying to setup lighttpd on my Ubuntu VPS

$ uname -a
Linux www 5.4.0-56-generic #62-Ubuntu SMP Mon Nov 23 19:20:19 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

lighttpd works for .html files, but when I try a .php file, I get this error.


Replies (4)

RE: "503 Service Not Available" when trying to access php files - Added by walterbyrd over 3 years ago

I did an: apt purge lighttpd, then reinstalled. I no get a 503 error when I try to load php files. Now I get a 403 error when I try to load .php files. Html files will load, but not .php files.

RE: "503 Service Not Available" when trying to access php files - Added by gstrauss over 3 years ago

As with your post in https://redmine.lighttpd.net/boards/2/topics/9536

Everything you posted about Ubuntu and Ubuntu packaging of lighttpd is related to Ubuntu.
Ubuntu Ubuntu Ubuntu Ubuntu.

Please post in the Ubuntu forums to report issues with Ubuntu packaging.
Ubuntu Ubuntu Ubuntu Ubuntu.

keyword: Ubuntu

If you would like help here, kindly provide detailed and useful information which is not so presumptuous to assume that someone here uses Ubuntu.

If you post here, please first carefully read and digest: How to get support

RE: "503 Service Not Available" when trying to access php files - Added by walterbyrd over 3 years ago

Sorry, I just knew I was having a problem, I did not what was causing it.

FWIW: I think I may have fixed the problem by entering:

  1. lighty-enable-mod fastcgi
  2. lighty-enable-mod fastcgi-php

RE: [UE] "503 Service Not Available" when trying to access php files - Added by gstrauss over 3 years ago

Sorry, I just knew I was having a problem, I did not what was causing it.

This isn't Twitter. If you are unable to engage your brain to characterize the problem and provide details of what you tried, then don't bother to post. That goes for anywhere, not just here.

This did not work for you in this VPS and you didn't post that you tried following any tutorials nor did you post the details of what you observed when trying tutorials.

Please don't post here again without carefully reading How to get support

You might think your last post was an attempt to be helpful to others, but the official lighttpd (this site) does not provide any such script named lighty-enable-mod. That's a Debian thing inherited by Ubuntu. It's also part of many tutorials on how to set up lighttpd on Ubuntu.

    (1-4/4)