Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com 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.

2  
PHP is not processed by browsers, it's processed server-side. –  Cupcake 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

1 Answer 1

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