Jump to content

Krydos

Chief Executive Officer
  • Posts

    24,185
  • Joined

  • Last visited

  • Days Won

    853

Everything posted by Krydos

  1. Deployed. http://vickydev.heliohost.org/SpringLogin/ Since you're on Johnny it can take up to 24 hours to start working. Your next deployment, as long as you don't change the .war name, can be done quicker.
  2. Go to https://tommy.heliohost.org:2083/frontend/paper_lantern/mail/pops.html and create the email address we're going to use in this tutorial. For this example we'll use admin@rutaj6.heliohost.org Now go to https://tommy.heliohost.org:2083/frontend/paper_lantern/mail/filters/managefilters.html and click "Manage Filters" next to the email address we just created. Click "Create New Filter". Name the filter "Pipe Test". For testing let's set it to trigger whenever the Subject contains the string "Pipe Test". Select "Pipe to a Program". In the box type |/home/rutaj6/email/email_handler.phpThat first character is a pipe which is a vertical line. If you want the email to be delivered to your inbox in addition to piping to your script you can click the + on the right side, and set up Deliver to Folder: Inbox. This way it'll pipe it to your script AND put it in the inbox. Create /home/rutaj6/email/email_handler.php with permissions 755. The first two lines are very important. The first line has to be the shebang which is #! and then the path to the PHP version you want to use. The -q flag suppresses the output of php headers. If you echo any output of any kind in your script it will be emailed back to the sender as an error. This includes headers. The second line has to be <?php There can't be any blank lines or random characters or windows line endings. Any of that stuff will mess it up. #!/opt/cpanel/ea-php71/root/usr/bin/php-cgi -q <?php // listen for incoming emails $sock = fopen("php://stdin", "r"); $email = ""; // read email into buffer while (!feof($sock)) { $email .= fread($sock, 1024); } // close socket fclose($sock); // log received email $file = "/home/rutaj6/email/email.log"; $fh = fopen($file, 'a'); fwrite($fh, "$email\n\n\n"); Create /home/rutaj6/email/email.log with permissions 644. Now send an email to yourself at admin@rutaj6.heliohost.org and make sure "Pipe Test" is in the subject line to trigger the filter. If everything worked it should write your email to /home/rutaj6/email/email.log. From there the sky is the limit. You can process this raw input as much as you want and do whatever. Also, completely unrelated to this tutorial, please be aware that each user is only allowed one account as stated in our Terms of Service. Please delete all accounts in excess of one by going to http://www.heliohost.org/classic/support/scripts/delete Possessing more than one account could result in all of your accounts being suspended. Let us know if you need help consolidating your accounts down into one.
  3. Add developershub.tk to cpanel then. Just because cpanel knows how to handle requests for that domain doesn't mean the requests for that domain will go to Tommy.
  4. For FTP 10 failed logins within 1 hour = blocked.
  5. Unexpected end of file usually means you missed closing something, like ", ', or } or something.
  6. The .war file hasn't changed since the last deploy at https://www.helionet.org/index/topic/28907-deploy-war-application-request/?p=131741 Please only request deploys once.
  7. Create MX records where ever your DNS is hosted and point them to johnny.heliohost.org or tommy.heliohost.org.
  8. You may use any of our servers in the EU. No, putenv() is not disabled.
  9. Deployed. http://tk.heliohost.org/hebertbc_plataforma/
  10. The + sign in php is a mathematical operator not a concatenation operator. $username+"_"+$subject = 0 not a string.
  11. Check out https://www.helionet.org/index/topic/27822-how-do-i-use-flask-on-johnny/?p=128919
  12. Works for me. http://segurodeautognp.com/
  13. Deployed. http://tk.heliohost.org/plataforma/
  14. Have you looked in the error_log file that php creates when there's an error?
  15. You're missing a single quote. Just read the error messages, and figure out why it's displaying that error.
  16. Deployed. http://brassatom.heliohost.org/brass-db-one/
  17. Flask, and Django and other python frameworks like this can only be installed on one version of python per server. Tommy already has flask and django on python 3.6. If you want to use python 2.7.5 you'll need to stick with cgi. The other option is we could do django/flask/web.py or whatever on python 2.7 when we rebuild Ricky. That way we'd be able to offer the frameworks on both major versions of python depending on which server people choose. Ricky is scheduled to be rebuilt sometime in August. Let us know if you'd be interested in flask, django, or web.py on python 2.7 before then.
  18. Deployed. http://wilgil.heliohost.org/Zaxxon/
  19. What does the ruby error log say?
  20. You can't use flask or django? Tommy Python 2.7.5: ['backports.ssl-match-hostname==3.4.0.2', 'chardet==2.2.1', 'configobj==4.7.2', 'decorator==3.4.0', 'dnspython==1.12.0', 'iniparse==0.4', 'ipy==0.75', 'javapackages==1.0.0', 'kitchen==1.1.1', 'lxml==3.2.1', 'oauthlib==2.0.1', 'perf==0.1', 'pip==9.0.1', 'policycoreutils-default-encoding==0.1', 'pycurl==7.19.0', 'pygobject==3.14.0', 'pygpgme==0.3', 'pyliblzma==0.5.3', 'pyparsing==1.5.6', 'pyudev==0.15', 'pyxattr==0.5.1', 'pyzor==1.0.0', 'requests-oauthlib==0.7.0', 'requests==2.12.5', 'seobject==0.1', 'sepolicy==1.1', 'setuptools==0.9.8', 'six==1.10.0', 'tweepy==3.5.0', 'urlgrabber==3.10', 'yum-metadata-parser==1.1.4']
  21. Deployed. http://brassatom.heliohost.org/brass-db-one/
  22. I see an account on Tommy now so I guess you got it figured out. On Tommy /bin/python is 2.7.5
  23. 1517671 luigi123_sb 158.69.123.33:49008 luigi123_sourcebanssb_bans Sleep 14400 NULL 1517688 luigi123_sb 158.69.123.33:49012 luigi123_sourcebanssb_bans Sleep 15606 NULL 1517699 luigi123_sb 158.69.123.33:49013 luigi123_sourcebanssb_bans Sleep 15606 NULL 1517923 luigi123_sb 158.69.123.33:49038 luigi123_sourcebanssb_bans Sleep 15606 NULL That's about 4.5 hours. Closed.
  24. Cgi scripts won't execute in public_html/bin unless you use .htaccess to make it executable. Everything is executable by default in cgi-bin. Here is the error you're getting: [/home/strayer/public_html/cgi-bin]# /usr/bin/python app.py Traceback (most recent call last): File "app.py", line 3, in <module> import web ImportError: No module named web You can get this error yourself by running a cron with the command /usr/bin/python /home/strayer/public_html/cgi-bin/app.py and that error will be mailed to your contact address. Just be aware that you can only run 2 cron jobs per day. Since Johnny is pretty new python is pretty much stock. You can request modules by posting on these forums. Also /usr/bin/python is Python 2.6.6 which apparently isn't supported anymore and web can't be installed. I recommend using /usr/bin/python3.6
×
×
  • Create New...