Paypal Perl script installation

  • loyalrogue
  • Born
  • Born
  • loyalrogue
  • Posts: 2
  • Loc: Fort Lauderdale

Post 3+ Months Ago

Greetings all

I am a newbie web designer/hoster with alot of questions.
Hopefully I've found the right place to answer a couple of them.

I have a reseller account on a shared server and want to use the Paypal subscription service for a client.
I've looked thru the installation docs, but most of it is greek to me.

Have any of you used this Perl script and maybe help me understand the instructions for installing and using it?
After uploading the compressed file to a temporary folder on the server, I am supposed to unzip it using the command:
gzip -dc filename.tar.gz | tar -x

Question 1 - Where do I type in this command?
Question 2 - The compressed file is named "paypal.tar.gz", so I assume I replace the word "filename" in the command above with "paypal"?

I'll leave it at that for the moment and try to take this in baby steps.
If anyone knows of a "Script Installation for Dummies" resource... :help:

Thanks
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

a1: you'll need a shell account to run those command. if you don't have one, extact the files on a local machine and upload the contents.

a2: yes

fyi: you can get gzip and tar binaries for windows. winzip and other utilities can also deal with these formats.

scripts are usually easy to install. just read the directions closely. use a text editor (not word, use notepad) to read the scripts themselves... they often have additional information.
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

Btw, it's easier just to do...

tar -zxvf filename.tar.gz

That way you don't lose your original file when you decompress it.

But WinZip & WinRAR both support tar.gz files these days on Windows (like rjm said above). So you can decompress it on your windows box, then upload the files via FTP (although, make sure to use the right transfer format - ASCII/Binary - where it tells you to).
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

oh yeah, if you find the gzip command confusing. think of it as an archive of files that was compressed. two files in one. take a look...

gzip -d filename.tar.gz
(results in a new uncompressed file: filename.tar)

tar -xf filename.tar
(results in archive contents extracted to filesystem)

i like to run gunzip (same as gzip -d) to get the tarball out. if i want to sent the output directly to tar, i use zcat (or gzcat) as shorthand.

zcat filename.tar.gz | tar -x

you can add -v to all these utilities (verbose) to see more information about the process as it occurs.

the next thing you're going to want to look for is file permissions (which depends on your server operating system).
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

Axe wrote:
Btw, it's easier just to do...

tar -zxvf filename.tar.gz


Axe is right. This is the all-in-one-command. Just a note: not all systems support the -z option for tar.
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

lol, now you're just gonna confuse him ;)
  • rjmthezonenet
  • Expert
  • Expert
  • User avatar
  • Posts: 526
  • Loc: St. John's, Newfoundland, Canada

Post 3+ Months Ago

haha, i can't help it... i get excited when unix commands come up in the threads.... i'm a freak. i think it's the new book on bash. :D

cheers
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

Hey, give me your wife/girlfriend's cellphone number.. I'll give her some advice. When you're sat on the PC ignoring her, I'll tell her to whisper sweet shell commands into your ear ;)
  • loyalrogue
  • Born
  • Born
  • loyalrogue
  • Posts: 2
  • Loc: Fort Lauderdale

Post 3+ Months Ago

Axe wrote:
lol, now you're just gonna confuse him ;)


Haha.
Too late for that!
I found you guys because I already was confused. :banghead:

Thanks for all the help.
You two have got me pointed in the right direction now.
I had no idea about shell commands or even what a shell was 3 hours ago.
I think I have the script just about configured and installed now.
The only thing I'm not sure about is this step about chown:

Quote:
Step 4: For the webserver 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 should now be successfully installed.


I do have access to SSH/jailshell in cpanel, but don't think I have permission to chown according to some posts in the support forums.
I think I am going to try to skip this step for now and see what happens.
Otherwise I may have to submit a ticket to get the chown done.

I can't say I truly understand what I'm doing yet, but I did manage to change my bash prompt from the default to a custom one.
Woot!

Thanks again for the help, guys.
I'm gonna go play with the script and paypal buttons for awhile.
I'm sure I'll be back real soon.
  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Posts: 9072
  • Loc: Seattle, WA & Phoenix, AZ

Post 3+ Months Ago

To change an owner you would have to type something like this through shell:

chown newowner filename.cgi
//replace newowner with the actual owner name

or you could change owner and group in one command:

chown newowner.newgroup filname.cgi
//replace newowner with the actual owner name and newgroup with the actual group name

It is likely though you will need to have root user do this for you which I am fairly sure you do not have access to. That would mean you would need to contact your host to do this. You might be able to avoid this step though. I would recommend skipping step 4 and seeing if you can get it to work. If it does not work then you may need to do it.
  • Axe
  • Genius
  • Genius
  • User avatar
  • Posts: 5739
  • Loc: Sub-level 28

Post 3+ Months Ago

oooh newowner.newgroup works?

I always did newowner:newgroup, hehe :)

Post Information

  • Total Posts in this topic: 11 posts
  • Users browsing this forum: No registered users and 63 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.