Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 08-18-2008, 02:40 AM   #1
Registered: Oct 2006
Posts: 38

Rep: Reputation: 15
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)'

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/
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.
Old 08-18-2008, 08:16 PM   #2
Registered: Jan 2002
Location: Labrador, Canada
Distribution: CentOS, Debian
Posts: 182

Rep: Reputation: 35
Have you looked at the apache error log?
Old 08-19-2008, 02:00 AM   #3
Registered: Oct 2006
Posts: 38

Original Poster
Rep: Reputation: 15
Silly me.
Thanks a bunch.
The error showed the following:
==> /var/log/httpd/error_log <==
[Tue Aug 19 10:55:40 2008] [error] [client] 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...


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos 5, Apache, php, mysql Anauj0101 Linux - Server 5 02-26-2008 10:39 PM
Can't get PHP 5 to work on CentOS 4.2, Apache 2.0.52 tibberous Linux - Server 3 10-27-2007 06:25 AM
apache won't start with php info in modules.conf synaptical Linux - Software 2 04-09-2005 09:39 AM
Cannot See info.php in Apache 1.3.33 Slack 10 grimlaur Slackware 3 02-05-2005 03:27 PM
LAMP(Linux,Apache,MySql,PHP) and other info hamtavs General 1 01-25-2005 03:54 AM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:10 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration