Jump to content

dmncwrk

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by dmncwrk

  1. On 12/11/2022 at 5:15 AM, Kairion said:

    To be honest I've never used Python for web but since you have FastCGI enabled, I don't think it is the problem.

    Try to run the following script on your website's "cgi-bin" directory:

    #!/usr/bin/python3.10
    
    print("Content-type: text/html") # Send our page's header to webserver
    
    print() # Blank line to end page's header
    
    # Now our page's content below:
    
    print("<html><head><title>Python \"Hello World!\" testing</title></head><body><pre>")
    
    print("Hello World!")
    print("Heliohost rules!")
    
    print("</pre></body></html>")

    Here's the above script on my website: https://fasouza.eu.org/cgi-bin/test.py

    Remember that the file should have chmod (permission) 755, so it has to be like that (I used a FTP program but you can do it on Plesk's file manager):

    image.png.5745b96233a371a7ebc295353c9b7955.png

    If it doesn't work, then probably it is necessary to enable CGI support. But to be sure we need to know what kind of error are you getting when runing your script (and it would be helpful to also have your logs).

    You're seeing this error because port 8443 has the SSL certificate of "tommy2.heliohost.org". You should access Plesk on https://tommy2.heliohost.org/ or preferably on https://heliohost.org/login/.

    This works now, thank you.

  2. On 11/29/2022 at 9:04 PM, wolstech said:

    That documentation is for the old cPanel servers and is obsolete.

    That said, the script itself should work if you make the script using the below shebang line (we updated Python) in Plesk's file manager. 

    #!/usr/bin/python3.10

     

    For some reason Im still struggling with this, could disabled CGI support be the reason?

    image.thumb.png.70226db167e65a09850054fd34eb7384.png

     

    Also when trying to login to Plesk I see cert error, is that how it is supposed to be?

    image.thumb.png.817bab3e0e4b82d2cd916719fcd03131.png

  3. 20 hours ago, Krydos said:

    65.19.141.77

    could not connect to server: Connection refused                                                                                       
            Is the server running on host "65.19.141.77" and accepting                                                                                                      
            TCP/IP connections on port 5432?  

×
×
  • Create New...