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 files not opening

Discussion in 'General Discussion' started by anj109, Feb 14, 2007.

  1. anj109

    anj109 Registered

    Joined:
    Feb 11, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hey guys,

    When I try to view a .php file it pops up a box to save or view the file. PHP seems to be installed on my machine but how can I check and if not, install? I'm very new to VPS's and WHM.

    Thanks,
    Alex
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Sounds like the Apache configuration is messed up. Fixing it depends upon whether PHP is being used as a module or cgi binary.

    If a module, check for the proper AddType statement in /usr/local/apche/conf/httpd.conf, like this:

    Code:
       AddType application/x-httpd-php .php                                  
       AddType application/x-httpd-php .php4
       AddType application/x-httpd-php .php3
       AddType application/x-httpd-php-source .phps
       AddType application/x-httpd-php .phtml
    
     
Loading...

Share This Page