Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

WHM scripts

Discussion in 'General Discussion' started by rajanichand, Jun 22, 2004.

  1. rajanichand

    rajanichand Active Member

    Joined:
    Mar 17, 2004
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    India
    Hi everybody,

    I wonder, if someone can give me note on how I can use the WHM scripts. My actual requirement is to create/modify/delete accounts and send welcome emails on creating an account etc.

    Thanks in advance.
    :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. rajanichand

    rajanichand Active Member

    Joined:
    Mar 17, 2004
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    India
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    It shouldn't be.

    What does it show?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. rajanichand

    rajanichand Active Member

    Joined:
    Mar 17, 2004
    Messages:
    38
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    India
    Hi,

    I have attached the error messages I am getting at http://www.premierwebsitesolutions.com/scripts/ ....

    Warning: Unknown(): open_basedir restriction in effect. File(/base/buspwsc/public_html/scripts/index.pws) is not within the allowed path(s): (/home/celebkrn/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

    Warning: Unknown(/base/buspwsc/public_html/scripts/index.pws): failed to open stream: Operation not permitted in Unknown on line 0

    Warning: (null)(): Failed opening '/base/buspwsc/public_html/scripts/index.pws' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in Unknown on line 0
    :rolleyes:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    Now that's weird. I had 3 friends of mine go to the page and they had no problems. I wonder if it has anything to do with the browser. What browser do you use?

    Is anyone else having trouble getting this page?
    http://www.premierwebsitesolutions.com/scripts/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. coastinc

    coastinc Well-Known Member

    Joined:
    Mar 13, 2002
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    316
    I'm able to access it fine too, just a side note, openbasedir protection can sometimes be intermittent. Out of 1000 reloads, 1 may display that error.

    Try reloading it again or trying from a different computer (to rule out caching as a problem)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    Ok, I don't know how it happened, but I decided to go to that page myself and got that as well. I tried to remember where I saw open_basedir before and thought about the WHM security settings so I checked and it was on. I never turned it on. I turned it off and it works now.

    Should be back to normal now.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    I know what happened. My partner was doing some security work and he turned on the open_basedir in WHM.

    I don't understand this part though:

    Warning: Unknown(): open_basedir restriction in effect. File(/base/buspwsc/public_html/scripts/index.pws) is not within the allowed path(s): (/home/celebkrn/:/usr/lib/php:/usr/local/lib/php:/tmp) in Unknown on line 0

    Celebkrn is the username of a different website and the 2 sites have nothing to do with each other. Why is that in there?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. coastinc

    coastinc Well-Known Member

    Joined:
    Mar 13, 2002
    Messages:
    158
    Likes Received:
    0
    Trophy Points:
    316
    That's probably just a bug with openbasedir, I've seen a lot of wierd things randomly occur with that.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  11. secureID

    secureID Well-Known Member

    Joined:
    Mar 11, 2004
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    156
    Squirrel-

    Quick question for you. I am a PHP coder and it has been 2-3 years since I last coded in Perl. Is it possible to write PHP scripts and integrate them into the base WHM/cPanel code? How is that done (very high level) if you don't mind me asking. Is there a good source I can go to, to find out about user exits for custom scripting? Thanks.
     
  12. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    4
    Trophy Points:
    343
    Location:
    ON, Canada
    I'm not sure. Perl is my language. I just recently started practicing PHP so I don't know if the 2 can work together or not.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice