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.

I'm running a dedicated machine, but having problem with folder problems

Discussion in 'General Discussion' started by dimitri.adamou, Jan 20, 2011.

  1. dimitri.adamou

    dimitri.adamou Registered

    Joined:
    Jan 20, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Hey there, new user (and had trouble with registration here for a bit hehe :P)

    anyhow straight to the point -

    I am running a dedicated fully managed machine using WHM + Cpanel, I have 2 accounts. 1 account suvads contains all the core files/photos, and I have another account mycarads. I want mycarads to access suvads/public_html to use the core files + photos ... but I keep getting a permission denied error.

    I modifed open_basedir to include the following directories "/home/suvads/ftp/:/home/mycarads/public_html/:/home/suvads/public_html:/home/suvads/sites/"

    the account user mycarads can access /home/suvads/ftp but not the other ones.

    any help would be GREATLY appreciated!

    Thank you very much,
    Regards,
    Dimitri
     
  2. dimitri.adamou

    dimitri.adamou Registered

    Joined:
    Jan 20, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Ok we're a step closer, mycarads can access suvads public_html now since its running under DSO (and switch over to FastCGI once recompiled) as advised by our server manager, but now having issues accessing the cache which is

    suvads/public_html/include/cache/general/

    Warning: fopen(/home/suvads/public_html/include/cache/general/bd47bc9cc3ca9a564873ebf8ce092617.tmp) [function.fopen]: failed to open stream: Permission denied in /home/suvads/public_html/include/methods/general.php on line 613

    Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/suvads/public_html/include/methods/general.php on line 614

    Warning: fclose() expects parameter 1 to be resource, boolean given in /home/suvads/public_html/include/methods/general.php on line 615

    edit: Sorry just in a state of panic, since we have alot of live users and this error was completely unexpected - was working fine as we previously had it as an add-on domain .. anyhow issue is solved now just did a chmod 0777


    Just for a future reference in case anyone else comes accross this page and error -suPHP seems to have problems with open_basedir (if you want to go across into multiple accounts - otherwise its doing its job right), so use either DSO or FastCGI
     
    #2 dimitri.adamou, Jan 20, 2011
    Last edited: Jan 20, 2011
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello Dimitri,

    The only way I know to allow them to share these files would be to disable FileProtect for suPHP, which would be insecure to do so. Otherwise, you could enable DSO rather than suPHP as you've indicated and have the files owned by nobody group, which the users should then be able to share them on the system for those nobody owned files.

    To disable FileProtect, you would do:

    /scripts/disablefileprotect

    Thanks.
     
  4. dimitri.adamou

    dimitri.adamou Registered

    Joined:
    Jan 20, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Thank you very much Tristan!
     
  5. dimitri.adamou

    dimitri.adamou Registered

    Joined:
    Jan 20, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    hey there, having some more problems now :(

    This time im having random permission denied errors when accessing user made files/jpegs.

    For example; I have a process where people upload photos and a new directory is created.

    But when they upload their photos they are getting a permission denied error ( from both sites now?)

    so yeah a
     
  6. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Did you change back to suPHP and yet keep the files or folders chowned to 777? suPHP doesn't allow 777 permissions. It allows 755 for folders and 644 for files as the highest permission levels.
     
Loading...

Share This Page