[PHP]: phpinfo() with debian 4.0

Need help with C, C++, perl, python, etc?

[PHP]: phpinfo() with debian 4.0

Postby cheikhbouchihda » 2007-01-20 08:57

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:
Code: Select all

<?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.
Image
Debian GNU/Linux 5.0 \n \l
User avatar
cheikhbouchihda
 
Posts: 50
Joined: 2006-03-13 15:51
Location: Amiens, France.

Postby thamarok » 2007-01-20 10:00

apt-get install libapache2-mod-php5
thamarok
 

Postby cheikhbouchihda » 2007-01-21 07:58

Thank you :D
Image
Debian GNU/Linux 5.0 \n \l
User avatar
cheikhbouchihda
 
Posts: 50
Joined: 2006-03-13 15:51
Location: Amiens, France.

Postby thamarok » 2007-01-21 08:34

cheikhbouchihda wrote:Thank you :D

No problem :P
thamarok
 


Return to Programming

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable