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.

Scripts don't have permission to access /usr/bin/

Discussion in 'General Discussion' started by Metro2, Apr 7, 2007.

  1. Metro2

    Metro2 Well-Known Member

    Joined:
    May 24, 2006
    Messages:
    376
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    I'm hoping that maybe someone else here has encountered this problem and knows the solution.

    Scripts on a particular server of mine are not being given permission to access /usr/bin/ (which containts the "convert" command for ImageMagick)

    I will use a Coppermine installation as an example:

    - If I try to do a MANUAL install of Coppermine gallery on this server, when it asks for the path to ImageMagick convert command, I tell it /usr/bin/ (which is where I can clearly see convert sitting there). Coppermine responds by saying the directory either does not exist or that Coppermine's installer does not have permission to access it.

    - If I do a FANTASTICO install of Coppermine, it installs just fine and runs OK, but it cannot produce thumbnail pics during a Batch Upload - presumably because Coppermine does not have permission to access the convert file in the /usr/bin/ folder.

    Enabling passthru in php.ini fixes the issue, but that is a huge security issue and not a good option at all.

    SO, my quesiton - Is there a setting I can change on the server (without enabling passthru in php.ini) that will allow scripts like Coppermine permission to access the /usr/bin/ folder?

    Thank you for any advice, this problem is holding up an important project and I'm running out of ideas to try.
     
  2. Metro2

    Metro2 Well-Known Member

    Joined:
    May 24, 2006
    Messages:
    376
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Update - I have part of this issue solved.

    The "Php open_basedir Tweak" being enabled in WHM's Tweak Settings is what prevented Coppermine's (manual) install script from accessing the /usr/bin/ folder.

    Temporarily disabling the Php open_basedir Tweak allowed me to manually install Coppermine.

    However, the other problem still exists - Coppermine cannot produce thumbnail pics during a Batch Upload. This appears to be some type of lack of permission for Coppermine to fully access ImageMagick.

    Any ideas on that one?
     
  3. Spiral

    Spiral BANNED

    Joined:
    Jun 24, 2005
    Messages:
    2,023
    Likes Received:
    7
    Trophy Points:
    0
    Actually this is a known bug in Coppermine but is fixable by a quick modification to Coppermine
     
  4. Metro2

    Metro2 Well-Known Member

    Joined:
    May 24, 2006
    Messages:
    376
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    USA
    cPanel Access Level:
    Root Administrator
    Is there any chance you would be willing to point me to more information about this bug and the fix for it? I'm not having much luck with the coppermine site and/or documentation.
     
Loading...

Share This Page