cancel
Showing results for 
Search instead for 
Did you mean: 

Successful Install (2.4) but 502 Bad Gateway Error

Successful Install (2.4) but 502 Bad Gateway Error

Hi, running Plesk Obsidian (18.0.32) on Debian (9.13). Successfully installed Magento 2.4 via command line, however when accessing the website I'm getting a 502 Bad Gateway error. My error log says;

AH01276: Cannot serve directory /var/www/vhosts/mywebsite/httpdocs/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm,index.shtml) found, and server-generated directory index forbidden by Options directive

But I can see all the files, including the 'index.php' in the httpdocs directory?

[Progress: 1270 / 1270]
[SUCCESS]: Magento installation complete.
[SUCCESS]: Magento Admin URI: /admin_hsxeor
Nothing to import.

What am I missing here? Any help appreciated!

Thanks.

 

1 REPLY 1

Re: Successful Install (2.4) but 502 Bad Gateway Error

Hello @hellojunip978d 

 

This issue is not related with Magento, it's issue with Plesk Configurations, please check these blogs to solve your problem :

 

https://www.liquidweb.com/kb/apache-error-no-matching-directoryindex-index-html-found-solved/

https://stackoverflow.com/questions/5301776/directory-index-forbidden-by-options-directive

 

Hope it helps !

Problem Solved ? Click on 'Kudos' & Accept as Solution to encourage to write more answers !