
Password Management Installation Guide April 2002 13
3
Configuring the PayPal Password
Management Script
First, install the Perl script. This is a four-step process.
1. Download the package and copy it to a temporary directory on your web server.
2. Uncompress the file with the following command:
gzip -dc filename.tar.gz | tar -x
The temporary directory should now contain the following files:
paypal.pl
README
3. Next you need to copy the paypal.pl script to your web server’s CGI script directory. For
example if your directory is
"/var/www/cgi-bin" then you would run the following
command:
cp paypal.pl /var/www/cgi-bin/.
4. For the web server to run the Password Management script you'll need to change its owner.
The script should be owned by the user Apache runs as. To determine what user Apache
runs under either ask your system administrator or look in your Apache configuration file
(
httpd.conf). To change ownership of this file use chown as shown in the following
example:
chown /var/www/cgi-bin/paypal.pl apache
The Perl script is now successfully installed.
Configuring the PayPal Password Management Script
Once the Perl script is installed and Basic Authentication is set up, you will need to configure
your server.
Using a text editor you need to fill in a few configuration options in paypal.pl.
1. Open the file (it should be in your CGI script directory; this example assumes
/var/www/cgi-bin):
pico /var/www/cgi-bin/paypal.pl
2. Near the top of the file are the following lines:
# User Constants - customize these to YOUR installation
my $PASSWORD_FILE = '/var/www/files/.htpassword';
my $TRANSACTION_FILE = '/var/www/files/processed_txns';
my $PAYPAL_URL = 'http://www.paypal.com/cgi-bin/webscr';
Comentarios a estos manuales