• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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