• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

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