troubleshooting Question

linux apache doesnt recognize php

Avatar of Arrismog
Arrismog asked on
Apache Web ServerLinuxPHP
4 Comments2 Solutions388 ViewsLast Modified:
Hello experts

I have installed an apache web server on Linux (SuSE 10 SP3), which runs smoothly.

I recently installed (via configure-make-make install) php-5.3.6, no errors were detected.

created a small php file, info.php, which has the following:

<?php
phpinfo();
?>

When accessing via the web server, the output doesn't interpret the php file, just displaying the following:

<?php
phpinfo();
?>

What seems pretty strange is that if I invoke the command
php info.php
from the command line, it executes and interprets the php file correctly.

When restarting apache, it says that PHP is configured

[Tue May 17 19:38:33 2011] [notice] caught SIGTERM, shutting down
[Tue May 17 19:38:35 2011] [notice] Apache/2.2.17 (Unix) PHP/5.3.6 configured -- resuming normal operations

but it seems that it's not executing it correctly :(!!

Do I have to make any additional configuration on the http server? Can't seem to find what's wrong with it
ASKER CERTIFIED SOLUTION
jghelfman40

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros