Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2007
    Posts
    2

    Default PHP files not opening

    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. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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

Similar Threads & Tags
Similar threads

  1. php isn't opening php pages.
    By Cemtey in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-08-2007, 04:55 AM
  2. .php files not opening in browser
    By Edem in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 05-18-2006, 11:14 AM
  3. php Error opening socket
    By Markwaugh in forum cPanel and WHM Discussions
    Replies: 16
    Last Post: 10-13-2005, 09:02 PM
  4. Opening Large Files
    By Jeff75 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-30-2003, 08:58 AM
  5. Error opening Accounting.php.inc
    By paralard in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-05-2003, 12:53 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube