[PHP]: phpinfo() with debian 4.0

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
cheikhbouchihda
Forum Commoner
Posts: 51
Joined: Thu Mar 02, 2006 2:08 pm
Location: France.

[PHP]: phpinfo() with debian 4.0

Post by cheikhbouchihda »

Hello,
I have just installed the last version of debian (the 4.0), and just after, I have installed apache2, php5 and mysql-server, as fellows:

Insatllation of apache2:

Code: Select all

#aptitude update 
#aptitude install apache2

Installation of php5(and the library gd):

Code: Select all

#aptitude install php5 php5-gd

And the mysql-server:

Code: Select all

#aptitude install mysql-server



All those installations finished with succes, but when I try a phpinfo() script like this:

<?php
// test.php
phpinfo();
?>

and when I do an http://localhost/test.php, in mozilla adress, I don't get the phpinfo page, as I want but a the last script phpinfo(test.php).

So, my question is:

Which code(s) must I add to the file /etc/apache2/apache2.conf so as I can get the famous phpinfo page ?
Thanks in advance for the help.
ckh
Forum Newbie
Posts: 9
Joined: Fri Jun 10, 2005 11:15 am

Post by ckh »

Check your php.ini file and make sure that phpinfo isn't included in disable_functions as such:

disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open
Post Reply