The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PayPal subscription perl script directory path [moved]

Discussion in 'General Discussion' started by slaghuis, May 30, 2006.

  1. slaghuis

    slaghuis Registered

    Joined:
    May 30, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi. I tried sending this request to cPanel support (on behalf of my client), but it's impossible to do so without being a client. Grrrrr.

    The PayPal subscription / recurring payment script that manages login credientals requires the full, absolute path of the directory in which .htpassword is stored. In other words, it can't deal with a symlinked virtual path.

    In Ensim, this would be:

    Virtual hosting client:
    /var/www/html/directory/

    Absolute path on server:
    /home/virtual/site/var/www/html/directory/

    The hosting provider, IPowerWeb, refuse to divulge this, despite my stating that it's a not a security risk. And I haven't got the time (and am not being paid enough) to browse through the 221 page Admin manual.

    Can someone please confirm the directory structure for X site as seen by root? I shall buy you a beer when you are next in South Beach.

    TIA (muchly):

    SamSam
     
  2. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    username's home directory will be /home/username
    username's web root will be /home/username/public_html
     
  3. slaghuis

    slaghuis Registered

    Joined:
    May 30, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Thanks for the reply. I understand that is the virtual path for the web hosting client. But I think you misunderstood my question.

    If you had root access to a cPanel box, what would be the web root path for any given site/user? Surely it is not /home/username/public_html .

    I would expect, perhaps incorrectly, that is more along the lines of:

    /home/virtual/site-user/home/username/public_html/

    Thanks!
     
  4. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    What webignition said is the correct root path.

    A users actual home directory is /home/username
    His web root is /home/username/public_html
     
  5. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    Surely it is.
     
  6. slaghuis

    slaghuis Registered

    Joined:
    May 30, 2006
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Okay, well thank you for taking the time to reply and confirm, guys. That leaves the question then of why the damned script won't work. It's not a complicated script and only has a few variables.

    Setting it up on cPanel: the script won't write to the necessary files (.htpasswd & processed_txns).

    Setting it up on Ensim: works like a charm.

    (Yes, yes, permissions are correct, variables changed appropriately.)

    Does anyone run the PayPal subscription script (with login manager) successfully on cPanel? :)
     
  7. anand

    anand Well-Known Member

    Joined:
    Nov 11, 2002
    Messages:
    1,435
    Likes Received:
    1
    Trophy Points:
    38
    Location:
    India
    cPanel Access Level:
    DataCenter Provider
    Perhaps look at the directory permissions again ?
     
  8. mctDarren

    mctDarren Well-Known Member

    Joined:
    Jan 6, 2004
    Messages:
    664
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    New Jersey
    cPanel Access Level:
    Root Administrator
    How did you manage chown'ing the file without root access? You could change permissions but my understanding is that script needs to be chown'd to run as the same user that apache runs under?
     
Loading...

Share This Page