Did you try getting rid of the
stuff?
Lee Philip Reilly wrote:
Hi there,
I posted this message yesterday:
--
I recently upgraded from PHP version 4.0-ish to 4.2.3 on my Linux/Apache
machine. AFAIK, Apache is setup correctly (it serves HTML) and PHP
works, but only from the command line. If I type "php -q php.php >
test.html" the output of phpinfo() is stored in test.html. When I try
and look at test.html running on localhost it displays fine, but when I
try and view php.php, as "save as" window pops up. I am not too familiar
with Linux. If it was a Windows installation then I would make sure the
Action application (path to php.exe) line was correct, but I can't find
this in the Linux httpd.conf. Does this issue sound familiar to anyone.
Could anyone point me in the right direction?
-
I am still having the same problem. It is obviously a problem with my
httpd.conf file. PHP is installed as a CGI, and the AddHandler
application/x-httpd-php .php is present. Can anyone offer any other
suggestions?
Below is my httpd.conf file. My apologies for inserting so many lines,
but this is an extremely niggling problem, and I... just... can't...
figure... it... out . If anyone could have a quick look to try
and identify the problem, I would really appreciate it!
Thanks.
- Best regards,
Lee Reilly
--
## httpd.conf - configuration for the Apache web server
#
# Generated automatically... if you edit manually, the changes will be
lost
# the next time you run "apacheconfig".
#
# What we listen to
#
ServerType StandAlone
ServerRoot /etc/httpd/
# We don't handle this yet...
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a
DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are
used.
# Please read the file README.DSO in the Apache 1.3 distribution for
more
# details about the DSO mechanism and run `httpd -l' for the list of
already
# built-in (statically linked and thus always available) modules in your
httpd
# binary.
#
# Note: The order is which modules are loaded is important. Don't
change
# the order below without expert advice.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#LoadModule mmap_static_module modules/mod_mmap_static.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule env_module modules/mod_env.so
LoadModule config_log_module modules/mod_log_config.so
LoadModule agent_log_module modules/mod_log_agent.so
LoadModule referer_log_module modules/mod_log_referer.so
#LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule mime_modulemodules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule status_module modules/mod_status.so
LoadModule info_modulemodules/mod_info.so
LoadModule includes_modulemodules/mod_include.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule dir_module modules/mod_dir.so
LoadModule cgi_module modules/mod_cgi.so
LoadModule asis_modulemodules/mod_asis.so
LoadModule imap_modulemodules/mod_imap.so
LoadModule action_module modules/mod_actions.so
#LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule access_module modules/mod_access.so
LoadModule auth_modulemodules/mod_auth.so
LoadModule anon_auth_module modules/mod_auth_anon.so
LoadModule db_auth_module modules/mod_auth_db.so
#LoadModule digest_module modules/mod_digest.so
#LoadModule proxy_module modules/libproxy.so
#LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule headers_module modules/mod_headers.so
#LoadModule usertrack_module modules/mod_usertrack.so
#LoadModule example_module modules/mod_example.so
#LoadModule unique_id_module modules/mod_unique_id.so
LoadModule setenvif_modulemodules/mod_setenvif.so
#LoadModule bandwidth_module modules/mod_bandwidth.so
#LoadModule put_modulemodules/mod_put.so
LoadModule perl_modulemodules/libperl.so
LoadModule php_module modules/mod_php.so
LoadModule php3_modulemodules/libphp3.so
LoadModule php4_modulemodules/libphp4.so
LoadModule dav_module modules/libdav.so
LoadModule roaming_module modules/mod_roaming.so
LoadModule ssl_module modules/libssl.so
# Reconstruction of the complete module list from all available modules
# (static and shared ones) to achieve correct module execution order.
# [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
ClearModuleList
#AddModule mod_mmap_static.c
AddModule mod_vhost_alias.c
AddModule mod_env.c
AddModule mod_log_config.c
AddModule mod_log_ag