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.

Fixing permissions problems?

Discussion in 'General Discussion' started by cix, Sep 29, 2006.

  1. cix

    cix Well-Known Member

    Joined:
    Nov 6, 2003
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    Hi,

    I´ve removed PHPSUEXEC from one of my servers, but now I´m having permission problems with phpscripts:


    Basically:
    Warning: fopen(galeria.php) [function.fopen]: failed to open stream: Permission denied in /home/fdf/public_html/crnl/fdf.php on line 56

    My file:
    -rw-r--r-- 1 fdf nobody 3163 Sep 26 03:47 fdf.php

    How can I fix that? if I chmod 777 will open, but I think its not needed?

    Thanks for any help;
     
  2. nettigritty

    nettigritty Well-Known Member
    PartnerNOC

    Joined:
    Jan 21, 2004
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore, India
    You will either need to chown to nobody or chmod 777
     
  3. cix

    cix Well-Known Member

    Joined:
    Nov 6, 2003
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    1. Using fopen, fwrite to a file, need I to chmod 777?
    2. What would be the correct permissions for the folder that will receive new files? 777 too?

    Yet, when a file is uploaded on pure-ftpd, it gets user.user, is that correct?

    Thanks
     
  4. nettigritty

    nettigritty Well-Known Member
    PartnerNOC

    Joined:
    Jan 21, 2004
    Messages:
    194
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Bangalore, India
    yup, 777 for 1 and 2.

    any files uploaded using FTP would be chowned user.user
     
  5. cix

    cix Well-Known Member

    Joined:
    Nov 6, 2003
    Messages:
    74
    Likes Received:
    0
    Trophy Points:
    6
    But the apache is not working correctly with files chowned user.user (sent from ftp).

    Its making me crazy!
     
Loading...

Share This Page