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
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
Look in your httpd.conf. Make sure that you have index.php in the DirectoryIndex line.
Annette
Hosting Matters, Inc.
http://www.hostmatters.com
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
This really has nothing to do with cpanel, php is run using apache not cpanel.
php is running fine everywhere else but when being called in cpanel it seems, odd.
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.
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
Not entirely trueI am working on a cpanel theme, and I have used php files (which obviously for a theme must go in the frontend directory).