• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Issue python - 500

karyo

New Pleskian
Server operating system version
18.04.6 LTS
Plesk version and microupdate number
18.0.44 Update #2
Hello
I installed and activated Python according to this article.
But when I run the code, it gives a 500 error.
 
Hi,

Error 500 is a scripting issue. Please check the Apache error_log for more info on this problem:

Subscription -> Logs -> error_log
 
Hi,

Error 500 is a scripting issue. Please check the Apache error_log for more info on this problem:

Subscription -> Logs -> error_log
AH01276: Cannot serve directory /var/www/vhosts/site.com/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
 
According to the mod_python docs you can solve this with an .htaccess file in the httpdocs folder:
Code:
<Directory /some/directory/httpdocs>
    AddHandler mod_python .py
</Directory>
 
According to the mod_python docs you can solve this with an .htaccess file in the httpdocs folder:
Code:
<Directory /some/directory/httpdocs>
    AddHandler mod_python .py
</Directory>
Gives an error of 500 again
No errors were recorded in the log file
 
Back
Top