Jump to content

[SOLVED] apache is showing content of .php files in browser


lightpace

Recommended Posts

hi,

 

when i am trying to run http://10.10.10.102/phpinfo.php

 

instead of details about php on system, the out it show in web broswer is as under:

 

<?php

 

// Show all information, defaults to INFO_ALL

phpinfo();

 

// Show just the module information.

// phpinfo(8) yields identical results.

phpinfo(INFO_MODULES);

 

?>

 

 

Here's my some info about my system

 

[root@anaconda html]# rpm - aq | grep httpd

httpd-devel-2.2.4-2.1.fc6

system-config-httpd-1.4.1-1.fc6

httpd-2.2.4-2.1.fc6

[root@anaconda html]# rpm - aq | grep mysql

mysql-server-5.0.27-1.fc6

mysql-5.0.27-1.fc6

mysql-devel-5.0.27-1.fc6

[root@anaconda html]# rpm - aq | grep php

php-cli-5.1.6-3.6.fc6

php-common-5.1.6-3.6.fc6

[root@anaconda html]# rpm - aq | grep perl

perl-Archive-Tar-1.30-1.fc6

perl-IO-Socket-SSL-1.01-1.fc6

perl-IO-Zlib-1.04-4.2.1

perl-5.8.8-10

perl-Compress-Zlib-1.42-1.fc6

perl-HTML-Tagset-3.10-2.1.1

perl-String-CRC32-1.4-2.fc6

perl-Digest-HMAC-1.01-15

perl-Socket6-0.19-3.fc6

perl-URI-1.35-3

perl-Net-IP-1.25-2.fc6

perl-IO-Socket-INET6-2.51-2.fc6

perl-Net-DNS-0.60-1.fc6

perl-DBI-1.52-1.fc6

perl-HTML-Parser-3.55-1.fc6

perl-libwww-perl-5.805-1.1.1

perl-Digest-SHA1-2.11-1.2.1

perl-Net-SSLeay-1.30-4.fc6

perl-DBD-MySQL-3.0007-1.fc6

[root@anaconda html]# uname -a

Linux anaconda 2.6.20-1.3001.fc6xen #1 SMP Thu Aug 9 16:18:09 EDT 2007 i686 i686 i386 GNU/Linux

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.