View previous topic :: View next topic |
Author |
Message |
longhairandabeard -
Joined: 03 May 2003 Posts: 8 Location: India
|
Posted: Fri Feb 13, 2004 5:31 pm Post subject: Upload with Postcard Direct Script |
|
|
Hi.. I have been a regular user.. and fan of Abyss Webserver for the last one year.. I think it's a commendation that I needed to consult the forums only now..
I have been trying to get the Postcard Direct script to work with Abyss Webserver. I got the script working all right, except for the upload feature.. When I try to upload a file, it gets stored in the upload directory, but then nothing happens, and after a while I get an HTTP 400 Bad Request error. And what's funny is there is no error in cgi.log
I suspect it is a problem with the server, as I tried the same with Indigoperl (Apache with perl and php) and the uploads worked fine.. That's when I suspected there might be a configuration problem.. I had installed Abyss Webserver, and php 4.3.1 separately, and edited the Advanced Server settings so that php files are interpreted through php.exe.. I didn't change any other settings..
I didn't find a php tutorial in the tutorials section, so I really don't know what all to do to make php work fully with Abyss.. The basic scripts are working fine, though..
Any help would be appreciated..
Abyss Webserver XI 1.2.1.0 on Windows 98 SE with PHP 4.3.1 and Perl 5.8.0 |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Feb 13, 2004 6:18 pm Post subject: |
|
|
I have tested out the full script except the mail function and
everything works fine , the upload and images show up perfect.
Demo: http://os17fan.cjb.net/pd/ (Mail Does not send!)
Make sure you have done the following!
Extract the zip folder in your cgi-bin , you will see two folders
"cgi-bin" and "pd" , put the pd folder in your htdocs and put the
folder inside the "cgi-bin" folder in your main cgi-bin folder.
Go to the admin section of the cgi script and click on
"Edit Configuration" you will see $WebRoot="http://your-site.com";
Just put your website address !
next varibal you will see is $TopLevel=""; in between the " "
put the full path to your website htdocs folder , Example
C:/Program Files/Abyss Web Server/htdocs/
save your config file and go to your cgi-bin directory and find
pdglobal.txt and edit the following varibals , your almost done!
(local path to your pd folder)
$pdroot="C:/Program Files/Abyss Web Server/htdocs/pd";
(Short URL to your pd folder , it would be by default /pd)
$pdurl="/pd";
P.S. I forgot to tell you to create a new folder in your htdocs pd folder
named "postcards" that way all images will be uploaded to that directory
------------------------------------------------------------------------------------
I hope all of this makes since , I told you im good at installing
cgi and php scripts , midi's will not play unless you enable music. 8) |
|
Back to top |
|
 |
longhairandabeard -
Joined: 03 May 2003 Posts: 8 Location: India
|
Posted: Fri Feb 13, 2004 9:47 pm Post subject: |
|
|
Thanx for your interest in my problem.. But if you keep editing your post at this rate, you'll make me dizzy.. :)
I looked in the PHP tutorial links that you posted.. And I also looked in the documentation of PD.. I did whatever I was supposed to do.. The rest of the PD is working fine.. I can even send postcards through an SMTP server on my system.. The only problem is with the uploads..
Here is the link to my PD page.. See if you too can reproduce the error with the uploads.. (Mail won't work here either ;) )
I am sure several people have got it working on their sites.. I was only wondering if my problem could have something to do with configuration of Abyss with PHP.. If not.. then I guess it's time to upgrade to XP.. :P _________________ I knew there would be days like these.. But this many?
~ Ginger Meggs |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Feb 13, 2004 9:51 pm Post subject: |
|
|
What version of abyss are you using ? You shouldn't be getting
that Bad Request error if you have version 1.2.2.2 of Abyss 8)
Your uploaded pic!
P.S. Sorry for editing that post alot , I just don't want to flood this topic
also the script you are talking about is a CGI script not PHP :lol: |
|
Back to top |
|
 |
longhairandabeard -
Joined: 03 May 2003 Posts: 8 Location: India
|
Posted: Fri Feb 13, 2004 9:58 pm Post subject: |
|
|
I have v1.2.1.0 But I'll upgrade if you insist.. :D
I really had trouble finding a pic small enough for uploading.. The default limit is 8 KB ..
[edit]Oh Great!!! I upgraded to 1.2.2.2 and it worked!!!! :D
Thanx for all the help![/edit] _________________ I knew there would be days like these.. But this many?
~ Ginger Meggs
Last edited by longhairandabeard on Fri Feb 13, 2004 10:05 pm; edited 1 time in total |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Feb 13, 2004 10:02 pm Post subject: |
|
|
How did you get the Mail function to work with
that cgi script , im confused and I need help :( |
|
Back to top |
|
 |
longhairandabeard -
Joined: 03 May 2003 Posts: 8 Location: India
|
Posted: Fri Feb 13, 2004 10:12 pm Post subject: |
|
|
TRUSTpunk wrote: | How did you get the Mail function to work with
that cgi script , im confused and I need help :( |
I have an SMTP server.. PostCast Server.. Running on default port 25..
In pd/configs/default.txt I edited the following two lines:
#$Sendmail=1 (Commented so that it doesn't use sendmail)
$MailServer='myip:25';
(I vaguely remember having to put the port number, or it wouldn't run.. localhost didn't work either.. I had to put the actual IP of my server in there)
Haven't tried the blat option yet.. But I'm interested.. as the SMTP server takes a lot of memory of my already overworked system.. _________________ I knew there would be days like these.. But this many?
~ Ginger Meggs |
|
Back to top |
|
 |
TRUSTAbyss -
Joined: 29 Oct 2003 Posts: 3752 Location: USA, GA
|
Posted: Fri Feb 13, 2004 10:36 pm Post subject: |
|
|
Thats what I mean , you need a program like sendmail for it to
work even if you already have a smtp server , what did you use
to get your e-mails to work with that cgi script ? :? |
|
Back to top |
|
 |
longhairandabeard -
Joined: 03 May 2003 Posts: 8 Location: India
|
Posted: Sat Feb 14, 2004 6:29 am Post subject: |
|
|
TRUSTpunk wrote: | Thats what I mean , you need a program like sendmail for it to
work even if you already have a smtp server , what did you use
to get your e-mails to work with that cgi script ? :? | I'm not too clear on this, but the script has a module named smtp.pm packaged with it, so it must be using that to send the mail to the smtp server..
Quote: | also the script you are talking about is a CGI script not PHP |
Heh! I only just realized it's a perl script, and has nothing to do with php.. :P
I don't know how it got into my head that it's a php script.. I must have been confusing it with another gallery script that I am working on..
Maybe the moderators would like to move it to the correct board.. _________________ I knew there would be days like these.. But this many?
~ Ginger Meggs |
|
Back to top |
|
 |
|