Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
share|improve this question

migrated from Jul 7 '11 at 2:59

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Chopper3 Jul 7 '11 at 10:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

PHP is not processed by browsers, it's processed server-side. – 40XUserNotFound Jul 7 '11 at 1:13
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).

share|improve this answer