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.

PHP not working only in one account

Discussion in 'EasyApache' started by PrakashR, Feb 19, 2014.

  1. PrakashR

    PrakashR Registered

    Joined:
    Feb 19, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I have a WHM 11.40.1 (build 11) controlled Centos 6.5 Server in which every account is working normally except for one - where any php file is not parsed no matter what directive I use in the .htaccess file

    I have tried all the following individually:

    Code:
    Addhandler application/x-httpd-php .php .html
    Addhandler application/x-httpd-php5 .php .html
    
    <FilesMatch "\.php$"> 
    SetHandler application/x-httpd-php 
    </FilesMatch>
    
    
    Still it refuses to parse resulting in the browser trying to download the file/ displaying the php code or if I use the php5 mode, it results in internal server error.

    I have checked the account's root and found nothing abnormal - no extra php.ini.

    I would be grateful for any solution to this problem.
     
  2. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Your access level is listed as Website Owner, have you spoken to your host about this yet?
     
  3. PrakashR

    PrakashR Registered

    Joined:
    Feb 19, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I own the dedicated server in which we host multiple sites of our own. I am sorry if I chose the wrong id inadvertently.

    To continue with the issue - it shows no errors in the log. The server runs SuPHP and there is no issue reported in the suphp_log either. I copied the entire directory of the site to a local Centos server and everything works normally. So it has to be a cPanel issue.
     
  4. PrakashR

    PrakashR Registered

    Joined:
    Feb 19, 2014
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I solved the issue finally. The old .htaccess file in the root of the problematic account contained lots of directives. I started with a clean slate and added only what was immediately necessary. That resulted in this error:
    Code:
    SoftException in Application.cpp:363: GID of script "/home/useraccount1/public_html/some.php ttt.php" is smaller than min_gid
    [code]
    
    And I changed the group id to that of the useraccount1 and PHP started working. 
    
    I still don't know why the earlier .htaccess didn't show any errors.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,682
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page