• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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