There is no problem in the browser - it is something with your configuration. Where did you place this code in the httpd.conf file? Is it nested in another (possibly module-specific) code? Perhaps you can provide more (or all) of your http.conf file and everything related to the apache startup log.
If you are not familiar with apache configuration, you may need to use the LAMP / WAMP distribution, as they will work out of the box.
Apache - . ( apache) PHP . , PHP , , , - , , , - .