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.

Can't edit php.ini

Discussion in 'General Discussion' started by Chew, May 13, 2004.

  1. Chew

    Chew Well-Known Member

    Joined:
    Dec 31, 2003
    Messages:
    96
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Maryland
    For some reason I can't edit my /usr/local/cpanel/3rdparty/etc/php.ini

    There's a setting in there that is screwing with fantastico, and I need to remove. I can read the file just fine. However I can't chmod it or write to it. Shutting down httpd doesn't do it.

    -rw-r--r-- 1 root root 23K Apr 19 12:54 php.ini

    Anyone have any suggestions?

    Thanks!
    Chew
     
  2. icanectc

    icanectc Well-Known Member

    Joined:
    Mar 10, 2003
    Messages:
    344
    Likes Received:
    0
    Trophy Points:
    16
    Happened to me as well but realized I didn't SU into the box... Did you su into yours? Just a thought..
     
  3. ryno267

    ryno267 Well-Known Member

    Joined:
    Mar 3, 2004
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Chandler, AZ
    cPanel Access Level:
    Root Administrator
    ya - he SU 'd into is
     
  4. Chew

    Chew Well-Known Member

    Joined:
    Dec 31, 2003
    Messages:
    96
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Maryland
    I logged into the box as root and still cannot edit it.
    How is that possible?

    Granted I'm no linux expert, but I didn't know there were things that even root couldn't touch.

    I just need to remove shell_exec from disable_functions cause it's screwing up fantastico.

    Chew
     
  5. kosmo

    kosmo Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    403
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    All over Europe
    chattr -i /usr/local/cpanel/3rdparty/etc/php.ini

    After editing re-protect:
    chattr +i /usr/local/cpanel/3rdparty/etc/php.ini

    (or the next cpanel update will break Fantastico)

    kosmo
     
  6. Chew

    Chew Well-Known Member

    Joined:
    Dec 31, 2003
    Messages:
    96
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Maryland
    Ahh thank you Kosmo :)

    Chew
     
Loading...

Share This Page