hosting BYOND DMCGI using Apache2 on a Linux server
usr << Login()
redirects properly to BYOND login if user is not logged in.
Once you log in, Login() fails to return the user's key, instead redirecting to the current page with an increasingly long href.
Using a var to hold Login() has the same effect.
Code Snippet (if applicable) to Reproduce Problem:
CGI/Topic(href,href_list[])
usr << Login()
return
Expected Results:
usr gets [key] as output after logging in
Actual Results:
URL after several rounds of redirects:
http://test.terulia.com/ index.cgi?byondcert=XXXXXXXXXXXXXXXXXXXXXXXX&byondcertexp=%2 b4d&byondcert=XXXXXXXXXXXXXXXXXXXXXXXX&byondcertexp=&byondce rt=XXXXXXXXXXXXXXXXXXXXXXXX&byondcertexp=&byondcert=XXXXXXXX XXXXXXXXXXXXXXXX&byondcertexp=
When does the problem NOT occur?
no known workarounds
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
It did work several months ago when I tested it briefly, but given my current server setup, I am unable to test the older versions.
You can visit test.terulia.com to see the effect for yourself. The snippet above is the only bit of code I'm using in this bug test (aside from Dantom.CGI).</<>
Since the file is actually executing as the owner of the webserver it'll try writing those files to the root web directory of your server (usually /var/www), which it won't have permission to since the directory either won't exist or it'll be owned by root.
What you want to do is
Logins should work fine after doing those steps.