Passenger Error Preventing LE from working

djelectro

New member
Joined
Jul 18, 2019
Messages
1
Hi, I setup my new DA server today and installed CloudLinux (please let me know if this is better suited in a ticket with CL, although this seemed more like a DA-specific issue),

Normal website browsing works, however if I attempt to issue an LE certificate I get the following error:
Code:
Requesting new certificate order...
Processing authorization for <domain>...
Error: http://<domain>/.well-known/acme-challenge/letsencrypt_1563509881 is not reachable. Aborting the script.
dig output for <domain>:
<IP>
Please make sure /.well-known alias is setup in WWW server.
I followed these guides to set it up:
https://help.directadmin.com/item.php?id=648

I tried these troubleshooting steps:
https://help.directadmin.com/item.php?id=646

Once I created the test file as shown in that help page, I noticed that if I go to the .well-known URL, I get an error along the lines of this:
Code:
Passenger error #2

An error occurred while trying to access '/home/<users account>/domains/<users domain>/passenger_wsgi.py': Cannot stat '/home/<users account>/domains/<users domain>/passenger_wsgi.py': Permission denied (errno=13)

Apache doesn't have read permissions to that file. Please fix the relevant file permissions.
I have no idea why its attempting to use Passenger for this. I did rebuild the Apache config with no luck.
Thanks
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,789
Location
LT, EU
DirectAdmin does not install Passenger, I guess it came from some plugins installed (for example, NodeJS selector from CloudLinux).
 

vijai

Verified User
Joined
Jul 22, 2013
Messages
24
So I had to install passenger for redmine and I had the same exact error. Just in case, someone else faced the same, I solved it by adding
Code:
PassengerEnabled off
in the apache configuration directive where the passenger module is loaded and added
Code:
PassengerEnabled on
to the custom httpd directive of the domain/subdomain which needs passenger.

This way, the passenger is disabled by default unless the domain/app requires it. The same would work on .htaccess too.
 
Top