View previous topic :: View next topic |
Author |
Message |
Deledar -
Joined: 26 Feb 2003 Posts: 94
|
Posted: Sat Mar 15, 2003 10:11 pm Post subject: Making Abyss Web Server Support Python. |
|
|
Here is what you need before we get started,
ActivePython: http://aspn.activestate.com/ASPN/Downloads/ActivePython/Source
Abyss Web Server: http://www.aprelium.com
Install it and when your done go to your
Abyss Web Server's console. When
there click on Server Configuration
and click on Advanced..... When there first click on CGI Parameters
Make sure you have Yes selected
for CGI Processing Enabled.
Under CGI Interpreters press Add...
Ok here's the tricky part, if you installed
ActivePython in C:\Program Files\Python than put C:\Program Files\Python\python.exe
in Interpreter and put py for
Associated Extensions than press Ok. You do
not need to press restart yet, I'll tell you when to.We are
almost done.
Press Add... under CGI Paths
Put "/" without quotations in CGI Path. Than press OK.
Don't press Restart yet. Press OK again and then go to Server Parameters. Press Add... under Index Files.
Than put "index.py" without the quotes in Index File and press
OK. Now you may press restart and your all done!
I would like to thank Aprelium and vbgunz for helping me with the
extension for python.
Sorry about it, vbgunz, you may remove your last post, this has been fixed.
Last edited by Deledar on Mon Aug 04, 2003 6:19 am; edited 4 times in total |
|
Back to top |
|
|
vbgunz -
Joined: 02 Feb 2003 Posts: 615 Location: Florida
|
Posted: Tue Apr 08, 2003 5:48 pm Post subject: |
|
|
Great Job on the Python Guide :) _________________ Victor B. Gonzalez
http://aeonserv.com
Last edited by vbgunz on Sun Jun 01, 2003 4:37 am; edited 1 time in total |
|
Back to top |
|
|
Sakura -
Joined: 12 May 2003 Posts: 2 Location: USA
|
Posted: Tue May 13, 2003 7:00 am Post subject: |
|
|
vbgunz wrote: | Press Add... under CGI Paths
Put "\" without quotations in CGI Path. Than press OK.
Don't press Restart yet. Press OK again and then go to Server Parameters. PressAdd... under Index Files.
Than put "index.py" without the quotes in Index File and press
OK. Now you may press restart and your all done! |
You cannot use \ in Abyss!
Only allows /
Thoght I would correct that for ya since it will cause errors! :)
// Sakura |
|
Back to top |
|
|
vbgunz -
Joined: 02 Feb 2003 Posts: 615 Location: Florida
|
Posted: Tue May 13, 2003 7:50 am Post subject: |
|
|
Not sure, I simply copied and pasted because its indeed just a little more legible and easier on the eyes... I needed Python once but never installed it because I didn't know how... If I ever do need it this is the first guide I will visit. If Deledar tweaks his guide I will remove my copy...
Thanks Sakura :) _________________ Victor B. Gonzalez
http://aeonserv.com |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Tue May 13, 2003 10:30 pm Post subject: |
|
|
hey vbgunz, Were do you put .py scripts at, you never added that in your tutorial , I have every single program language installed if you tell me
PERL , PHP , CGI , ASP , and now python , I hope :D _________________ This web server is the best ! |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Tue May 13, 2003 11:55 pm Post subject: |
|
|
Were is python installed I don't see the directory in program files , or see the python.exe I did a full system search and did not see it , does windows XP come with python because I sal a program that said python , I installed activepython 2.2.2 build _________________ This web server is the best ! |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Wed May 14, 2003 12:08 am Post subject: |
|
|
Never min I found it , its a hidden document , I think :D _________________ This web server is the best ! |
|
Back to top |
|
|
s1asher -
Joined: 20 Mar 2003 Posts: 53
|
Posted: Wed May 14, 2003 12:08 am Post subject: |
|
|
Python was installed to C:\Python22 by default for me (on Win XP) |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Wed May 14, 2003 12:24 am Post subject: |
|
|
Yeah thats were I found it , but why won't these dang .py scripts work for me , i followed the tutorial :?: _________________ This web server is the best ! |
|
Back to top |
|
|
vbgunz -
Joined: 02 Feb 2003 Posts: 615 Location: Florida
|
Posted: Wed May 14, 2003 1:17 am Post subject: |
|
|
Server Configuration > Advanced > CGI Parameters
under CGI Interpreters enter the path to python and py as the associated extensions. Good luck :) _________________ Victor B. Gonzalez
http://aeonserv.com |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Wed May 14, 2003 2:17 am Post subject: |
|
|
VBGUNZ , I set it up right , but when I run .py scripts it shows internal 500 error :?: _________________ This web server is the best ! |
|
Back to top |
|
|
vbgunz -
Joined: 02 Feb 2003 Posts: 615 Location: Florida
|
Posted: Wed May 14, 2003 6:22 am Post subject: |
|
|
Not sure where the errors are taking place. Not sure if its your copy of Python OR the script you're using. Deledar by the way wrote the guide and I simply copied and pasted it back for legibility... I asked Deledar about two weeks before I made the paste if he/she could turn it into text but I got no response and guess Deledar is no longer active on the boards... os17fan, if you manage to fix your problem be sure to tell us how you fixed it as some of us seek these boards for answers ;)
Good luck :) _________________ Victor B. Gonzalez
http://aeonserv.com |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Wed May 14, 2003 3:26 pm Post subject: |
|
|
Ok I will , but were do I store python scripts :?: _________________ This web server is the best ! |
|
Back to top |
|
|
vbgunz -
Joined: 02 Feb 2003 Posts: 615 Location: Florida
|
Posted: Wed May 14, 2003 7:53 pm Post subject: |
|
|
I guess you're best installing the scripts where the installation tells you too. Also, remember Abyss provides the ability to create aliases and sometimes you can use that to your advantage. Good luck :) _________________ Victor B. Gonzalez
http://aeonserv.com |
|
Back to top |
|
|
Deledar -
Joined: 26 Feb 2003 Posts: 94
|
Posted: Sun Jun 01, 2003 4:10 am Post subject: |
|
|
Alright Vb you can remove your post. |
|
Back to top |
|
|
vbgunz -
Joined: 02 Feb 2003 Posts: 615 Location: Florida
|
Posted: Sun Jun 01, 2003 4:38 am Post subject: |
|
|
Now you remove yours :) Thanks for the guide :) _________________ Victor B. Gonzalez
http://aeonserv.com |
|
Back to top |
|
|
Ublis -
Joined: 19 Sep 2003 Posts: 1
|
Posted: Sat Sep 20, 2003 2:29 am Post subject: |
|
|
os17fan wrote: | VBGUNZ , I set it up right , but when I run .py scripts it shows internal 500 error :?: |
I had this same problem and here is the likely cause: you forgot to print an empty line after your Content-type, like this:
import sys
sys.stderr = sys.stdout
print "Content-type: text/plain\n"
print "OK!" |
|
Back to top |
|
|
os17fan -
Joined: 21 Mar 2003 Posts: 531 Location: USA
|
Posted: Sat Sep 20, 2003 4:00 am Post subject: |
|
|
Im done with python , I gave up a few months ago , im into PHP programming. Thanks for the help any way :D _________________ This web server is the best ! |
|
Back to top |
|
|
|