Hello,
I'm trying to run a basic script in my personal sonic.net mini-hosting account.
I've uploaded basic python, perl, and php scripts to my WWW_pages/trevorld directory of the form:
#!/usr/bin/python
print "Content-Type: text/html"
print "<html><body>Hello World!</body></html>"
And then I sent the file to be executable using my FTP program (so overall permissions 755). When I go to trevorld.user.sonic.net/test.py (or .pl or .php) I see the source code but the script itself doesn't run. What am I doing wrong? https://wiki.sonic.net/wiki/CGI_FAQ_List suggests that I should just need to put a script into my WWW_pages directory and give it the right permissions and it should run. What am I doing wrong?
Thanks,
Trevor
I'm trying to run a basic script in my personal sonic.net mini-hosting account.
I've uploaded basic python, perl, and php scripts to my WWW_pages/trevorld directory of the form:
#!/usr/bin/python
print "Content-Type: text/html"
print "<html><body>Hello World!</body></html>"
And then I sent the file to be executable using my FTP program (so overall permissions 755). When I go to trevorld.user.sonic.net/test.py (or .pl or .php) I see the source code but the script itself doesn't run. What am I doing wrong? https://wiki.sonic.net/wiki/CGI_FAQ_List suggests that I should just need to put a script into my WWW_pages directory and give it the right permissions and it should run. What am I doing wrong?
Thanks,
Trevor