-
Posts
26483 -
Joined
-
Last visited
-
Days Won
947
Everything posted by Krydos
-
Great question! Since internal cron are limited to 2 per day this is a good thing to discuss. First I created a simple loop that would run forever. loop.py: #!/usr/bin/python3.6 import time while True: print("waiting...") time.sleep(5) Next, I created a way to start the loop with a cgi script. You just open this script in your browser, and if the loop isn't already running it will start it up and it will continue to run in the background. start.py: #!/usr/bin/python3.6 import os, subprocess, signal print("Content-Type: text/html\n\n") counter = 0 p = subprocess.Popen(['ps', '-u', 'krydos'], stdout=subprocess.PIPE) # must match your username --------^^^^^^ out, err = p.communicate() for line in out.splitlines(): if 'loop.py'.encode('utf-8') in line: # ^^^^^^^--- this has to match the filename of your loop counter += 1 print("Loop already running.") if counter == 0: os.system("at now <<< '/home/krydos/public_html/cgi-bin/loop.py'") # absolute path to your loop --^^ print("Loop started!") Finally we need a way to stop the loop from a cgi-script as well. stop.py: #!/usr/bin/python3.6 import os, subprocess, signal print("Content-Type: text/html\n\n") counter = 0 p = subprocess.Popen(['ps', '-u', 'krydos'], stdout=subprocess.PIPE) # must match your username --------^^^^^^ out, err = p.communicate() for line in out.splitlines(): if 'loop.py'.encode('utf-8') in line: # ^^^^^^^--- this has to match the filename of your loop counter += 1 pid = int(line.split(None, 1)[0]) print("Stopping loop.") os.kill(pid, signal.SIGTERM) if counter == 0: print("Already stopped.") All of this code is tested on Tommy.
-
PHP is fixed. See https://www.helionet.org/index/topic/29128-johnny-php-fixed/
-
Here's the latest news post: https://www.helionet.org/index/topic/29123-johnny-php/ Another news post will be made once the maintenance is done. See https://www.helionet.org/index/topic/29128-johnny-php-fixed/
-
PHP is fixed. See https://www.helionet.org/index/topic/29128-johnny-php-fixed/
-
[Hh#95162] Php Files Suddenly Downloading Instead Of Displaying
Krydos replied to HelioHost's topic in Email Support
PHP is fixed. See https://www.helionet.org/index/topic/29128-johnny-php-fixed/ -
PHP is fixed. See https://www.helionet.org/index/topic/29128-johnny-php-fixed/
-
Deployed. http://escrit.heliohost.org/escrit_plataforma/
-
For future reference your IP won't get blocked for cpanel if you log in at https://www.heliohost.org/login/
-
For anyone who might search and find this thread: The way account deletions work is your account is flagged as inactive, and added to the deletion queue. If you change your mind before the account is deleted you can use the renew page https://www.heliohost.org/renew/ to cancel the deletion. Please be aware that if the load level is low on the server, and there is nothing to do in the job queue the deletion could be instantaneous. Conversely if the load is high and the server is backed up it can take up to 24 hours to delete fully.
-
Your two forum accounts have been merged, your forum username matches your cpanel username, and your start date on the forum account is retained from 2016.
-
Please post the following information: Your cPanel usernameYour main domainThe server that you are onVersion of PHP you're using
-
Deployed. http://xitix.heliohost.org/xitix_blog/
-
Your computer, if you're running windows, might have the IP of your old host still cached. Open a command prompt and type ipconfig /flushdns
-
Yeah, Johnny has these kinds of errors quite often. I started working on your issue earlier but got busy with real life for a few hours. It turns out you had that domain added as an alias, and then you had a subdomain on that alias. So I had to delete the subdomain first, and then remove the alias. Next I was going to add it back as an addon like you wanted, but yeah. Moving to Tommy will fix the issue for sure.
-
There you go http://projvis.heliohost.org/
-
I'm not sure what you mean. Your account was created 3 days ago. You can use it as soon as it's created. I'm also not sure what you mean by "fast download". There is nothing in our terms of service disallowing you from hosting files for people to download if that's what you mean. You picked the Johnny server which is our experimental server so I don't think anyone would call Johnny fast. If you want a faster server we recommend a production server like Tommy. If you're not too concerned about uptime or speed then staying on Johnny will be fine. To allow someone to download files from your tf directory just upload them to tf and then provide the person with a link to the file such as cmdem.heliohost.org/tf/my_bands_latest_single.mp3
-
What is your username or main domain?
-
Remote access enabled.
-
Also, you might be interested to know that logging in at https://www.heliohost.org/login/ will prevent you from getting blocked.
- 4 replies
-
- IP_Blocked
- Tommy
-
(and 1 more)
Tagged with:
-
Another really common one is php files need to have 644 permissions.
-
[Solved] Not Able To Host Flask Application On Jhonny Server
Krydos replied to rohitpa's topic in Escalated Requests
We have a quicker way to transfer available via some new relatively untested scripts. As all of our new features we allow our donors to beta test them first, but it isn't currently available to non-donors. Just post your transaction ID and we can get it entered into the system so it will get transferred as quickly as possible. If you don't want to or can't donate the only option at this time is http://wiki.helionet.org/Moving_your_account -
[Solved] Not Able To Host Flask Application On Jhonny Server
Krydos replied to rohitpa's topic in Escalated Requests
Flask is only available on Tommy. Ruby on Rails and Flask/Django don't play well together so we have to choose one or the other basically. We choose RoR on Johnny and Flask/Django on Tommy. If you need RoR you have to pick Johnny, and if you need Flask you have to pick Tommy. Python 3.6 and cgi are available on both servers. Once we get Ricky online in the next month or so we will have Flask/Django on that server as well. http://wiki.helionet.org/Moving_your_account
