PDA

View Full Version : Postcard Script


Kari
12-09-1999, 10:58 PM
Hi!

I just tried to install the postcard script from bignosebird.com
I've read in that forum that some of you already use that script, so I hope you can help me.

Here is a quote from aota.net:
<<When installing scripts into your cgi-bin and the script author instructs you to set the permissions to mode 777, do not do this. It will not work on the FutureQuest servers. Anytime you are instructed to set the permissions to a script within your cgi-bin to 777 or 775 change them to 755 instead. Due to the way the servers are setup mode 755 will work and offer you more security at the same time.>>

But if I try to run the script, it comes with the following error:
<<The script cannot either find or write to the
http://www.shareware-games.net/cards directory. Please check this setting of the BASEDIR variable, and the permissions of the directory. If you have them set to 755, please change them to 777.>>

Any advices?

Thanks

Deb
12-09-1999, 11:09 PM
The 777 to 755 rule only applies to your cgi-bin scripts.[nbsp][nbsp]Files outside of your cgi-bin can be set to mode 777

Switching the /www/cards/ directory and the files within it to 777 will probably work :)

cgi-bin -- if it says 777 or 775 change it to 755

outside of cgi-bin follow the directions :)

Deb

Kari
12-09-1999, 11:54 PM
Still doesn't work.
I chmoded the cards folder to 777 and still got the same error message.

Justin
12-09-1999, 11:58 PM
What do you have set as your BASEDIR variable? It should be something like &quot;/big/dom/xshareware_games/www/cards&quot;

Hope this helps.

------------------
Justin Nelson
FutureQuest Support

Kari
12-10-1999, 12:09 AM
Here is what I got in my script:

$BASEDIR=&quot;/big/dom/xlobstersoft/www/shgames/cards&quot;;
$BASEURL=&quot;http://www.shareware-games.net/cards&quot;;
$SITEURL=&quot;http://www.shareware-games.net/&quot;;
$SITENAME=&quot;The Shareware Games Net&quot;;
$EXT=&quot;.html&quot;;
$PROGNAME=&quot;/cgi-bin/card.cgi&quot;;
$MAILLOG=&quot;mailer&quot;;
$SUBJECT =&quot;You have a virtual card waiting for you!&quot;;

Deb
12-10-1999, 12:36 AM
Looking at the script on the server I see two other problems... You actually have:

$SMTP_SERVER=&quot;localhost&quot;;
#$SEND_MAIL=&quot;/usr/lib/sendmail -t&quot;;

I recommend changing the above to:

#$SMTP_SERVER=&quot;localhost&quot;;
$SEND_MAIL=&quot;/usr/lib/sendmail -t&quot;;

I simply commented out (the # sign) the SMTP and uncommented the Send mail option.[nbsp][nbsp]A lil further down you have:

$BASEDIR=&quot;http://www.shareware-games.net/cards&quot;;
$BASEURL=&quot;http://bignosebird.com/cards&quot;;

Try changing that to:

$BASEDIR=&quot;/big/dom/xlobstersoft/www/shgames/cards&quot;;
$BASEURL=&quot;http://www.shareware-games.net/cards&quot;;

Let us know if this helps or not...

Deb


[This message has been edited by Deb (edited 12-10-99)]

Kari
12-13-1999, 09:02 PM
Everything is working now.
:)

Thanks!