Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 10 of 10
  1. #1
    Member
    Join Date
    Dec 2001
    Posts
    17

    Default php in cpanel?

    WTF do i do with php.ini? haha I can\'t get the cpanel to recognize index.php

    what do i have to do?

    Thanks!
    Jeff - IntraHost

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Aug 2001
    Posts
    445

    Default

    Look in your httpd.conf. Make sure that you have index.php in the DirectoryIndex line.
    Annette
    Hosting Matters, Inc.
    http://www.hostmatters.com

  3. #3
    Member
    Join Date
    Dec 2001
    Posts
    17

    Default

    its there already

  4. #4
    Member
    Join Date
    Jan 2002
    Posts
    113

    Default

    I am assuming that mod_php4 is loaded?

    \"<IfDefine HAVE_PHP>
    LoadModule php_module modules/mod_php.so
    </IfDefine>
    <IfDefine HAVE_PHP3>
    LoadModule php3_module modules/libphp3.so
    </IfDefine>
    <IfDefine HAVE_PHP4>
    LoadModule php4_module modules/libphp4.so
    </IfDefine>
    \"

    and of course:

    \"<IfDefine HAVE_PHP>
    AddModule mod_php.c
    </IfDefine>
    <IfDefine HAVE_PHP3>
    AddModule mod_php3.c
    </IfDefine>
    <IfDefine HAVE_PHP4>
    AddModule mod_php4.c
    </IfDefine>\"

    and something like this:
    \"DirectoryIndex index.html index.htm index.shtml index.php index.php4 index.php3 index.cgi\"

    then you need:

    \"<IfModule mod_php4.c>
    AddType application/x-httpd-php .php4 .php3 .phtml .php
    AddType application/x-httpd-php-source .phps
    </IfModule>

    # The following is for PHP3:
    <IfModule mod_php3.c>
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
    </IfModule>

    # The following is for PHP/FI (PHP2):
    <IfModule mod_php.c>
    AddType application/x-httpd-php .phtml
    </IfModule>
    \"
    Hope that this helps
    wade

  5. #5
    Member
    Join Date
    Sep 2001
    Posts
    20

    Default

    This really has nothing to do with cpanel, php is run using apache not cpanel.

  6. #6
    Member
    Join Date
    Dec 2001
    Posts
    17

    Default

    php is running fine everywhere else but when being called in cpanel it seems, odd.

  7. #7
    Member
    Join Date
    Sep 2001
    Posts
    20

    Default

    things passed via port 2082 are running from the cpanel daemon not apache so php will not work there unless Darkorb found a way to make their cpanel daemon parse php.

  8. #8
    Member
    Join Date
    Aug 2001
    Posts
    24

    Default

    Any PHP/Perl scripts that you want to run must be placed in the /usr/local/cpanel/base/backend directory.

    PHP/Perl does not work in the frontend directory.
    Benjamin S.
    http://www.VeoWeb.Net

  9. #9
    Member
    Join Date
    Dec 2001
    Posts
    17

    Default

    thanks, i\'ll try that out!

  10. #10
    Member
    Join Date
    Sep 2001
    Posts
    157

    Default

    Not entirely true I am working on a cpanel theme, and I have used php files (which obviously for a theme must go in the frontend directory).

Similar Threads & Tags
Similar threads

  1. Replies: 15
    Last Post: 08-15-2011, 01:27 PM
  2. bytesCode PHP Encoder next request for cPanel PHP extension build in
    By RodrigoGregorio in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 11-12-2010, 04:30 PM
  3. Updating cpanel PHP changed main server php.ini
    By 4u123 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-06-2009, 02:46 PM
  4. /usr/local/cpanel/php/cpanel.php error
    By bsolano in forum cPanel Developers
    Replies: 5
    Last Post: 10-17-2008, 03:30 PM
  5. Replies: 4
    Last Post: 11-30-2004, 06:28 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube