PHP -i did'nt get php info when running php file on apache

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
renjith.resmi
Forum Newbie
Posts: 5
Joined: Sun Jul 12, 2009 2:52 am

PHP -i did'nt get php info when running php file on apache

Post by renjith.resmi »

Sir,
i installed mysql 5.0.83
then apache 2.2.11
then our php 5.0.x
php automatically configured the httpd.config file of Apache server.
i just included the following line too
#AddType application/x-httpd-php .phtml .php
as shown below in httpd.config file
# AddType allows you to add to or override the MIME configuration
# file specified in TypesConfig for specific file types.
#
#AddType application/x-gzip .tgz
#AddType application/x-httpd-php .phtml .php

then i create a file called phpinfo.php with the coding
<? phpinfo(); ?>
and i gave "http://127.0.0.1/phpinfo.php in addressline of the browser. but i didnt get anything.while "http://127.0.0.1/" was working with the result "It Works!"
what is the problem with my php and apache pls give me asolution
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: PHP -i did'nt get php info when running php file on apache

Post by VladSun »

1.
#AddType application/x-httpd-php .phtml .php
must be:

Code: Select all

AddType application/x-httpd-php .phtml .php
The # symbol comments out the line


2. Restart Apache.
There are 10 types of people in this world, those who understand binary and those who don't
renjith.resmi
Forum Newbie
Posts: 5
Joined: Sun Jul 12, 2009 2:52 am

Re: PHP -i did'nt get php info when running php file on apache

Post by renjith.resmi »

thank you for your cooperation

i made that change and restarted apache i got the following screen
error1.JPG
error1.JPG (20.42 KiB) Viewed 2270 times
and i run that php file - no change a white screen on the browser.

then i uninstalled php and then apache.
Again i installed apache
and i got this error screen while the installation
error.JPG
error.JPG (29.38 KiB) Viewed 2270 times
i think this same screen showed on the previous installation.

-problem is apache or php i dont know pls help me
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: PHP -i did'nt get php info when running php file on apache

Post by VladSun »

Look at your error log files, located at C:\Program Files\Apache ...\logs\
The "error" message you get is just a warning - Apache and PHP should work even it is displayed.
There are 10 types of people in this world, those who understand binary and those who don't
Minty
Forum Newbie
Posts: 6
Joined: Sat Jun 27, 2009 7:46 pm

Re: PHP -i did'nt get php info when running php file on apache

Post by Minty »

You may find XAMPP a more appropriate solution to your needs.
Post Reply