kokofixcomputers Posted February 23 Posted February 23 I was trying to follow: https://wiki.helionet.org/tutorials/discord-bot but i noticed that my cgi-bin folder is not there (maybe because of wordpress) so i created it and then did the steps when i went to the start.py it says internal server error
MoneyBroz Posted February 23 Posted February 23 Are the permissions set to 755 for your start.py file?
wolstech Posted February 24 Posted February 24 I fixed the cgi-bin folder so Python is working on the account now: https://kokofixcomputers.helioho.st/cgi-bin/test.py That discord bot has so many issues though (a few are because that guide is ancient...) Path to kokobot.py was wrong in start.py (guide inaccurate, home folders are now your main domain, not username). Shebang lines in all scripts specified a python version that does not exist (guide inaccurate, Johnny has 3.6 and 3.10), Permissions/owner were hosed on the cgi-bin folder because you deleted and recreated it (not sure if Plesk did this or you accidentally deleted it) Permissions on kokobot.py were 757 when they should have been 755 (user error) Line endings were not of type unix (common issue for Windows users, use Notepad++ if developing on a Windows box) After fixing all of the above (some of them twice since I tried doing 2 things at once and accidentally set cgi-bin's owner to another user the first time), the start.py now works, but the bot itself (kokobot.py) seems to have an issue as it doesn't stay running. You'll need to troubleshoot that. I'd bet that's going to be an issue with the code/module versions/etc. as I don't see anything obviously wrong at this point.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now