intrahost

Member
Dec 1, 2001
17
0
301
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
 

Annette

Well-Known Member
PartnerNOC
Aug 12, 2001
445
0
316
Look in your httpd.conf. Make sure that you have index.php in the DirectoryIndex line.
 

wadearnold

Well-Known Member
Jan 13, 2002
111
0
316
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
 

Gadget

Member
Sep 4, 2001
20
0
301
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.
 

bens

Member
Aug 15, 2001
24
0
301
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.
 

xnull

Well-Known Member
Sep 9, 2001
156
0
316
Not entirely true :D I am working on a cpanel theme, and I have used php files (which obviously for a theme must go in the frontend directory).