• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • 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.

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