You wrote, that you've added
AddType application/x-httpd-php .php
to httpd.conf
Please rename your script to
http://localhost/test1.php
or add
AddType application/x-httpd-php .php3
to httpd.conf
take a look to apaches logs directory. Can you find there any supsect entries at error.log or access.log ?
Please create following script and name it phpinfo.php
<?
phpinfo();
?>
store it at apaches webserver root and execute it.
http://localhost/phpinfo.php
Please tell us what you can see.
If you can't see anything, you can activate server-info to retrieve apaches info module with http://localhost/server-info
How to activate:
open httpd.conf and customize it
# Example:
# LoadModule foo_module modules/mod_foo.so
#
#LoadModule vhost_alias_module modules/mod_vhost_alias.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
#LoadModule status_module modules/mod_status.so
[b]LoadModule info_module modules/mod_info.so[/b]
...
ClearModuleList
#AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
#AddModule mod_mime_magic.c
AddModule mod_mime.c
AddModule mod_negotiation.c
#AddModule mod_status.c
[b]AddModule mod_info.c[/b]
...
#
# Allow server status reports, with the URL of [url]http://servername/server-status[/url]
# Change the "somenet.com" to match your domain to enable.
#
#<Location /server-status>
# SetHandler server-status
# Order deny,allow
# Deny from all
# Allow from somenet.com
#</Location>
#
# Allow remote server configuration reports, with the URL of
# [url]http://servername/server-info[/url] (requires that mod_info.c be loaded).
# Change the "somenet.com" to match your domain to enable.
#
[b]<Location /server-info>[/b]
SetHandler server-info
Order deny,allow
Deny from all
[b]Allow from localhost
</Location>[/b]
After restarting apache and http://localhost/server-info you should see there some informations like this:
Module Name: mod_php4.c
Content handlers: application/x-httpd-php , application/x-httpd-php-source , text/html
Configuration Phase Participation: Create Directory Config, Merge Directory Configs, Child Exit
Request Phase Participation: none
Module Directives:
php_value - PHP Value Modifier
php_flag - PHP Flag Modifier
php_admin_value - PHP Value Modifier (Admin)
php_admin_flag - PHP Flag Modifier (Admin)
Current Configuration:
If not, php is not implemented successfully