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.

New Accounts Have No access to PHP

Discussion in 'General Discussion' started by fdnven, Feb 22, 2007.

  1. fdnven

    fdnven Well-Known Member

    Joined:
    Feb 14, 2006
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    After i updated to the latest edge. I created a new account for a customer. All accounts created before the update still work fine.

    Everything seems to work fine except he has no access to PHP.

    Meant index.html works great but a index.php does note work.

    Looking at the Httpd.conf i did notice a difference in the mods path:

    New account path:
    <IfModule mod_php4.c>
    php_admin_value open_basedir ":/home/new account:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_value open_basedir ":/home/new account:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>

    Old account path:
    IfModule mod_php4.c>
    php_admin_value open_basedir "/home/oldaccount:/usr/lib/php:/usr/local/lib/php:/tmp"
    </IfModule>
    <IfModule mod_php5.c>
    php_admin_value open_basedir "/home/oldacount:/usr/lib/php:/usr/local/lib/php:/tmp"

    Notice the ":" placed before the /home in the new account. this ":" is not placed in a old account. Would the ":" be the issue?
     
  2. brendanrtg

    brendanrtg Well-Known Member

    Joined:
    Oct 4, 2006
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    16
    Have you tried recompiling apache with the php modules? This might work.
     
  3. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,461
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    A bug in EasyApache si causing this problem, with at least PHP 4.4.5 and 5.2.1 (havebn't checked the other versions). The short of it: it's not being compiled as an Apache module.

    We're working on a fix, but the immediate solution is to:

    1. try adding --with-apxs2=/usr/local/apache/bin/apxs to /var/cpanel/easyapache/rawopts/all_php5 (or all_php4)

    2. Drop to the command line and compile PHP manually. :p
     
  4. fdnven

    fdnven Well-Known Member

    Joined:
    Feb 14, 2006
    Messages:
    109
    Likes Received:
    0
    Trophy Points:
    16
    Got it Thanks !!!!
     
Loading...

Share This Page