Jump to content

Krydos

Chief Executive Officer
  • Posts

    24,534
  • Joined

  • Last visited

  • Days Won

    867

Everything posted by Krydos

  1. Well, sanitizing your mysql data is a really necessary thing to get in the practice of doing. Figure out what the minimum number of characters that you want people to be able to use, and then do something like this: $input = preg_replace("/[^a-zA-Z ]+/", "", $_POST["input"]); What that does is deletes anything that is not lowercase letters, uppercase letters, or spaces. Relevant xkcd: https://xkcd.com/327/
  2. # is a linux root command prompt (not that you need root privileges to do this, I just happen to be using root right now), and those are commands on the prompt. cat is a command that prints the contents of files to the console. sed is a nifty little command that uses regex to change ouput, in this case a file.
  3. # cat lineendings.txt text\\r\\n this doesn't look right\\r\\n # sed -i 's/\\\\r\\\\n/\\r\\n/g' lineendings.txt # cat lineendings.txt text\r\n this doesn't look right\r\n # The -i flag means "in place" so it overwrites the original file. The comical number of slashes (and backslahes) is because you need to escape each \ in regex.
  4. The django wiki page http://wiki.helionet.org/Django has an example of two static resources directories: media and admin_media. RewriteEngine On RewriteBase / RewriteRule ^(media/.*)$ - [L] RewriteRule ^(admin_media/.*)$ - [L] RewriteRule ^(hello/dispatch\.wsgi/.*)$ - [L] RewriteRule ^(.*)$ hello/hello/dispatch.wsgi/$1 [QSA,PT,L] The [L] means last so when that rule is matched it stop going down the line. Since it stops before it forces everything to be processed through dispatch.wsgi it is served statically. Likewise if your request already has dispatch.wsgi in it it doesn't tack another dispatch.wsgi on there. Finally everything else is forced to go through dispatch.wsgi. To add another static directory just copy the media or admin_media line and replace it with the name of your directory.
  5. Did you add the projects directory to the .htaccess file to prevent it from processing it through dispatch.wsgi?
  6. Example url?
  7. Https versus http shouldn't affect django in the slightest. Most likely you have conflicting .htaccess resulting in an infinite loop like I told you somewhere else on the forums.
  8. Does this work better for you? https://www.helionet.org/index/topic/27585-django-on-tommy/?p=126077
  9. Your account is not suspended. If you're seeing the suspended page please clear your cache.
  10. Your account was archived because you haven't logged in for about 4 months. Be sure to log in at least once every 30 days to keep your account active. Unarchiving... Done. You should now be able to log in at https://www.heliohost.org/login/ and your website should start working again within 12 hours.
  11. Done. You should now be able to log in at https://www.heliohost.org/login/ and your website should start working again within 12 hours.
  12. Your account was archived for inactivity since you hadn't logged in for over four months. Unarchiving...
  13. 2.7.13 was released 2016-12-17, and 3.6.1 was released 2017-03-21 There you go https://krydos2.heliohost.org/cgi-bin/modules36.py
  14. After the addon domain appears on your addon domain list it can take up to 12 hours to start working. This is because you picked the Johnny server. On Tommy the addon domain always creates without errors and starts working instantly. On Ricky the addon domain always creates without errors and starts working within 2 hours.
  15. Unblocked. Upon closer inspection of the log files it looks like it's the account jasmine.sims that is failing the imap log ins from your ip. Does that help you narrow down where the issue is?
  16. [Sat Nov 18 15:41:29.007142 2017] [core:error] [pid 16181:tid 139824572905216] [client x.x.x.x:58347] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://django.area51.bailey.cf/projects/ That probably means you have conflicting .htaccess bouncing you back and forth.
  17. It looks like you may have the wrong password saved in your SFTP client. Unblocked.
  18. Thanks for letting us know.
  19. Create the subdomain pergaminopc.andresgu.heliohost.org.
  20. Which shebang are you using? They gave you 3 versions of python on Johnny. /usr/bin/env python = 2.6.6 (too old for new modules) /usr/bin/python = 2.6.6 (too old for new modules) /usr/bin/python2.7 = 2.7.13 /usr/bin/python3.6 = 3.6.1
  21. Which version of python are you using?
  22. If you login every 29 days your account will not be flagged as inactive.
  23. Krydos

    Downtime?

    I think someone tripped over Eddie's power cord. Out of the blue for no reason Eddie went offline.
  24. You can change your main domain, but in order to change your username you must delete your account and create a new account with the new username. Perhaps a better solution would be to create custom error pages that look more professional. Let us know if you need any help with either path you choose to pursue.
  25. Unblocked.
×
×
  • Create New...