• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Password Protected Directory broke my Laravel site.

TriJoe

New Pleskian
Server operating system version
CentOS
Plesk version and microupdate number
Version 18.0.41 Update #1
I had a basic Laravel site setup in Plesk. All was working fine, but I decided to enable password protected directories on the root (/) while I worked on it. As soon as I did this, and then tried to access the site with the username / password, the site was blank, just a HTTP 200 response, and nothing else, nothing in the error log.

I then disabled the Password Protected Directory but the issue remains. I restored the .htaccess file in the root but this didn't change anything, I don't think it was any different. If I add a PHP echo to the first line of the index.php, it echo's normally. So somehow password protected directories has interfered with Laravel in a way to break it.

Not sure if it changes anything, but I changed the http root to /sms/public instead of /httpdocs. It worked fine before enabling PPD.

Does anyone know how to fix this, or if you know what exactly PPD changes when it's enabled so I can manually revert. Thanks.
 
Back
Top