Possible Duplicate:
Apache is not interpreting .PHP files

All the tutorials which i found gave me all the information about php and how to go about it.But php code which i type is getting parsed by the browser and not the server.

I have installed apache2 on a ubuntu11.04 system.

Please guide me on how to run the php script on the server(on request from a client)

  • Php beginner
  • 2
    PHP is not processed by browsers, it's processed server-side. – 40XUserNotFound Jul 7 '11 at 1:13
  • 1
    When you say parsed by the browser, do you mean that you see PHP code displayed in your browser instead of the expected output? If so, it sounds like you do not have the PHP module loaded or configured properly in Apache, or possibly not using a file extension registered with Apache to process PHP. – Michael Dean Jul 7 '11 at 1:18

Read this, top to bottom, one of the steps also tests the installation (puts a php file in the correct place).

Not the answer you're looking for? Browse other questions tagged or ask your own question.