yannisp Posted May 30, 2023 Posted May 30, 2023 Hello! Congratulations for everything you providing! I yesterday started to host my educational page on helio. I am noob plesk user but it's easy as far i can see and i am not having problems uploading my stuff and use your hosting. My site is to help student's of multimedia,web and app design greek schools by letting them practice to the questions of the final exams for this object's certification. I am using some string comparing algo's throught php but for giving the best precision to my guest i need to run a python script (a genshim's library short coded algo that returns the similarity score comparing user's and the correct answer). It's working locally to my pc xampp etc but i can't find the php.ini to plesk or a way to enable exec and run mu python script! Can you help me please? My other question is how many sites can be hosted to an account! Thank you!!!!
yannisp Posted May 30, 2023 Author Posted May 30, 2023 Oh, i forgot to say that i am using Tommy (donated(the less for now )) and i am using php 8.1.19 fastgci(apache). Should i upgrade to the next version so i can use my python scripts easier? thank you again!
wolstech Posted May 30, 2023 Posted May 30, 2023 Exec is intentionally disabled for security reasons. Python is supported, but you have to develop and run them directly as CGI, you can't run python from PHP here (and to be honest, this is the first time I've heard of someone actually doing that, it's not standard practice) There is currently no limit to the number of sites that can be hosted in an account at the moment (assuming they all fit in your disk space quota), though we've debated adding a domain limit since we've had a few users ask for way too many domains (each domain on the server slows down the server even if it's not being actively used).
yannisp Posted May 30, 2023 Author Posted May 30, 2023 Thanks a lot, as i told i am newbie, so i'll try to use the cgi method. i only tested my site locally so i used my python scripts through exec(). Thanks a lot for your answer and everything!
yannisp Posted May 30, 2023 Author Posted May 30, 2023 Ok, i did my research and i think now i am able to run python throught cgi, now am i able to install some python packages that are required for my script? (at least genshim 4.3.1)? thanks a lot again!!
wolstech Posted May 30, 2023 Posted May 30, 2023 Krydos has to install them for you. These are what's currently available for each python version: 2.7: https://tommy.kairion.eu.org/pyinfo/info2.7.py 3.10: https://tommy.kairion.eu.org/pyinfo/info3.10.py Is it just genshim 4.3.1 you need added?
yannisp Posted May 30, 2023 Author Posted May 30, 2023 Yes, for now is only that! Thank you! Should i open a request ticketr?
wolstech Posted May 30, 2023 Posted May 30, 2023 I'll just escalate this one for you What version of Python are you using anyway? 3.10?
Krydos Posted May 30, 2023 Posted May 30, 2023 3 hours ago, yannisp said: genshim 4.3.1 There is no module named genshim, with an m, but there is a module named genshin, with an n, but the latest version is 1.5.2 not 4.3.1.
yannisp Posted May 30, 2023 Author Posted May 30, 2023 Excuse me the module is gensim 4.3.1! Thank you!
Krydos Posted May 30, 2023 Posted May 30, 2023 Installed. You can see the current list of modules and their versions at https://tommy.kairion.eu.org/pyinfo/info3.10.py
yannisp Posted June 1, 2023 Author Posted June 1, 2023 Hello again! Wherever you have time i would like to install the openai python module to 3.10 please!!
Krydos Posted June 1, 2023 Posted June 1, 2023 8 hours ago, yannisp said: install the openai python module to 3.10 Installed. https://tommy.kairion.eu.org/pyinfo/info3.10.py
Recommended Posts