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.

install_php_inis not working correctly & /var/tmp OpenVz mount

Discussion in 'General Discussion' started by rhenderson, May 24, 2008.

  1. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    2 Questions that have me pulling my hair out

    #1

    Any guesses why /usr/local/cpanel/bin/install_php_inis would not write the altered changes to /usr/local/cpanel/3rdparty/etc/php.ini ?? Once we do a cPanel restart the old values are put back in. (Altering to stop RvSiteBuilder from complaining)

    # ls -ls /usr/local/cpanel/bin/install_php_inis
    8 -rwxr-xr-x 1 root root 5048 May 24 00:03 /usr/local/cpanel/bin/install_php_inis*
    # ls -la /usr/local/cpanel/3rdparty/etc/php.ini
    -rw-r--r-- 1 root root 23707 May 24 01:05 /usr/local/cpanel/3rdparty/etc/php.ini

    Best as I can tell the permissions look correct.

    #2

    On a VPS/OpenVZ/HyperVM on a reboot my mount command shows:

    # mount
    /dev/simfs on / type reiserfs (rw,usrquota,grpquota)
    /proc on /proc type proc (rw)
    /sys on /sys type sysfs (rw)
    none on /dev/pts type devpts (rw)
    simfs on /var/tmp type simfs (rw,nosuid,noexec)

    Which will crash PhpMyadmin unless I umount /var/tmp, I could work around it with a script on start up I guess but I did not want to band-aid it :) Any help on changing the mount on this type of setup?

    I assume it is in the mtab or fstab but I am fairly a newbie on the OpenVz VPS scene

    # cat /etc/mtab
    /dev/simfs / reiserfs rw,usrquota,grpquota 0 0
    /proc /proc proc rw 0 0
    /sys /sys sysfs rw 0 0
    none /dev/pts devpts rw 0 0

    # cat /etc/fstab
    none /dev/pts devpts rw 0 0
    /tmp /var/tmp ext3 defaults,bind,noauto 0 0
     
  2. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    Going to submit a support ticket.
     
    #2 rhenderson, May 24, 2008
    Last edited: May 26, 2008
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The above behavior is done by securetmp (/scripts/securetmp). We fixed this script in 11.23 to prevent lame /tmp and /var/tmp mounts.
     
  4. rhenderson

    rhenderson Well-Known Member

    Joined:
    Apr 21, 2005
    Messages:
    785
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Oklahoma
    cPanel Access Level:
    Root Administrator
    I had fixed this one, I guess I just had to undo what secure temp script had done, but thanks for the response and thanks for getting it fixed in the builds.

    Also .......

    This supposed to be fixed in edge build now, just waiting for it to filter down to cure our problems.
     
Loading...

Share This Page