Page 1 of 1

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

Posted: Sun Jul 12, 2009 3:06 am
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

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

Posted: Sun Jul 12, 2009 3:46 am
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.

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

Posted: Sun Jul 12, 2009 7:24 am
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 2269 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 2269 times
i think this same screen showed on the previous installation.

-problem is apache or php i dont know pls help me

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

Posted: Sun Jul 12, 2009 9:23 am
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.

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

Posted: Sun Jul 12, 2009 9:27 am
by Minty
You may find XAMPP a more appropriate solution to your needs.