We help IT Professionals succeed at work.
Get Started

linux apache doesnt recognize php

Arrismog
Arrismog asked
on
387 Views
Last Modified: 2012-05-11
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
Comment
Watch Question
This problem has been solved!
Unlock 2 Answers and 4 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE