Anders Norrbring wrote:
Anders Norrbring Norrbring Consulting
I was able to duplicate your problem on an 8.2 box. After installing the apache2 and php4 stuff and doing no configuration, attempts to access a test php page resulted in a dowload dialogue. Edit the file "/etc/sysconfig/apache2" and add "libphp4" to the APACHE_MODULES line. If you don't change anything else, it'll look like this:
APACHE_MODULES="access actions alias auth auth_dbm autoindex cgi dir env expires include libphp4 log_config mime negotiation setenvif status suexec userdir"
Then run the SuSEconfig command and restart apache2. Php pages should load up fine.
Jason ===========
Is SuSEConfig still enabled in /etc/sysconfig/apache2? ENABLE_SUSECONFIG_APACHE="yes"
What does 'SuSEconfig --module apache2' report?
Jason ===========
From /etc/sysconfig/apache2:
# your settings APACHE_MODULES="access actions alias auth auth_dbm autoindex cgi dir env expires include /usr/lib/apache2-prefork/libphp4 log_config mime negotiation setenvif status suexec userdir"
The resulting /etc/apache2/suse_loadmodule.conf:
# # This file is created at apache start time by /usr/sbin/rcapache2. Do not edit it! #
# as listed in APACHE_MODULES (/etc/sysconfig/apache2)
LoadModule access_module /usr/lib/apache2-prefork/mod_access.so LoadModule actions_module /usr/lib/apache2-prefork/mod_actions.so LoadModule alias_module /usr/lib/apache2-prefork/mod_alias.so LoadModule auth_module /usr/lib/apache2-prefork/mod_auth.so LoadModule auth_dbm_module /usr/lib/apache2-prefork/mod_auth_dbm.so LoadModule autoindex_module /usr/lib/apache2-prefork/mod_autoindex.so LoadModule cgi_module /usr/lib/apache2-prefork/mod_cgi.so LoadModule dir_module /usr/lib/apache2-prefork/mod_dir.so LoadModule env_module /usr/lib/apache2-prefork/mod_env.so LoadModule expires_module /usr/lib/apache2-prefork/mod_expires.so LoadModule include_module /usr/lib/apache2-prefork/mod_include.so LoadModule log_config_module /usr/lib/apache2-prefork/mod_log_config.so LoadModule mime_module /usr/lib/apache2-prefork/mod_mime.so LoadModule negotiation_module /usr/lib/apache2-prefork/mod_negotiation.so LoadModule setenvif_module /usr/lib/apache2-prefork/mod_setenvif.so LoadModule status_module /usr/lib/apache2-prefork/mod_status.so LoadModule suexec_module /usr/lib/apache2-prefork/mod_suexec.so LoadModule userdir_module /usr/lib/apache2-prefork/mod_userdir.so #
And here's the "SuSEconfig --module apache2" output:
Starting SuSEconfig, the SuSE Configuration Tool... Running module apache2 only Reading /etc/sysconfig and updating the system... Executing /sbin/conf.d/SuSEconfig.apache2... APACHE_MPM= Looking for multi-processing modules (MPM)... 1 MPM installed (prefork) Choosing the only installed MPM (prefork) create symbolic link `/usr/sbin/httpd2' to `/usr/sbin/httpd2-prefork' create symbolic link `/usr/share/apache2/build/config_vars.mk' to `config_vars.mk-prefork' Processing module files (/etc/apache2/modules/*) Finished.
I'm REALLY confused.. Seems like the libphp4 won't "bite" in the processing, I also tried to put in the whole path "/usr/lib/apache2-prefork/libphp4.so" in the config file before running SuSEconfig, same result?
Anders.
You definitely don't need the full path. Mine looks like this: APACHE_MODULES="access actions alias auth auth_dbm autoindex cgi dir env expires include libphp4 log_config mime negotiation setenvif status suexec userdir" Then running SuSEconfig added this to /etc/apache2/suse_loadmodule.conf: LoadModule php4_module /usr/lib/apache2-prefork/libphp4.so I imagine that adding that to /etc/apache2/suse_loadmodule.conf manually will do the trick but I don't know why SuSEconfig isn't putting it in for you. It may be computing md5 stuff to see if some file has been changed manually, then skipping stuff because it has. I knwo from reading /sbin/conf.d/SuSEconfig.apache2 that it checks to see if suse_include.conf has been modified. I don't get the "create symbolic link `/usr/share/apache2/build/config_vars.mk' to`config_vars.mk-prefork'" part when I run SuSEconfig. I do have both the file config_vars.mk and config_vars.mk-prefork. Neither is a symbolic link. In config_vars.mk-prefork I have the lines: exp_libexecdir = /usr/lib/apache2-prefork rel_libexecdir = /usr/lib/apache2-prefork Both of these refer to the folder where the libphp4.so is. You might check to see if those lines are in your config_vars.mk-prefork. Jason ===========