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
link|improve this question
2  
PHP is not processed by browsers, it's processed server-side. – Cold Hawaiian 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
feedback

migrated from stackoverflow.com Jul 7 '11 at 2:59

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

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

This question covers exactly the same ground as earlier questions on this topic; its answers may be merged with another identical question. See the FAQ for guidance on how to improve it.

1 Answer

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

link|improve this answer
feedback