LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Centos 5.2 running Apache 2 and PHP 4 cannot display info.php (https://www.linuxquestions.org/questions/linux-server-73/centos-5-2-running-apache-2-and-php-4-cannot-display-info-php-663520/)

codenjanod 08-18-2008 02:40 AM

Centos 5.2 running Apache 2 and PHP 4 cannot display info.php
 
Hi all,

I have a Centos 5.2 server, running Apache 2 and PHP 4, but for the life of me I cannot display info.php or any other .php in my browser.

The server info:
Linux 2.6.18-92.1.6.el5 #1 SMP

CentOS release 5.2 (Final)

Installed software:
# rpm -qa |egrep '(php)|(httpd)'
php4-mysql-4.4.8-LAB4
httpd-2.2.3-11.el5_1.centos.3
php4-4.4.8-LAB4
php4-devel-4.4.8-LAB4
httpd-devel-2.2.3-11.el5_1.centos.3
php4-gd-4.4.8-LAB4
system-config-httpd-1.3.3.3-1.el5
httpd-manual-2.2.3-11.el5_1.centos.3
php4-pear-4.4.8-LAB4

The developers wish to use PHP4 as all their current code is done in PHP4.

The entries in my httpd.conf file:
LoadModule php4_module modules/libphp4.so
DocumentRoot "/var/www/html"
DirectoryIndex index.html index.phtml index.php index.phps
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps

When browsing to the server, it displays the test index.html 100%

I get a blank page when trying to display the info.php file.

All permission settings are also correct.

Thanks a bunch.

sleddog 08-18-2008 08:16 PM

Have you looked at the apache error log?

codenjanod 08-19-2008 02:00 AM

Silly me.
Thanks a bunch.
The error showed the following:
==> /var/log/httpd/error_log <==
[Tue Aug 19 10:55:40 2008] [error] [client 10.2.37.62] PHP Fatal error: Call to undefined function: php_info() in /var/www/html/info.php on line 2

So I noticed the "php_info" where it should actually be "phpinfo"

Working 100% like a charm.

Thank you again.

PS. Will make sure I check the logs next time...


All times are GMT -5. The time now is 10:13 PM.