PHP doesn't work on SuSE 9.1 out of the box with Apache2

From: Luc (luc.rems_at_nospam_pi.be)
Date: 07/06/04


Date: Mon, 05 Jul 2004 23:31:57 GMT

Hi,

Here is my problem and the things I did and checked so far (without any
luck).
I installed Apache2, the prefork MPM and PHP4 (everything which is needed by
dependencies).
So far, no problem.
I try to start Apache2 with the default prefork MPM and it ends up with a
"failed" error. Nothing special to see in the error_log, apart from an SSL
issue which can easily being solved.
I didn't get why it kept on failing until I deactivated the PHP4 module in
yast for the HTTP server.
Restarted Apache2 and yes... Done. Only problem left, no PHP support, no
phpMyAdmin :-(
I re-enabled the php4 module, restarted Apache2 and there it was again, the
Failed message. Deactivated PHP module and now Apache2 started correctly.

Then I tried something else. I installed the worker MPM and activated this
one, started the PHP4 module and apache seemed to start correctly where it
previously failed. But the only problem now is that when I open php files
(eg index.php) it proposes me to download the files ???
So I added index.php to the DirectoryIndex in httpd.conf, restarted apache
but he still gives me the download window until I found out in Yast Software
Installation that I couldn't remove the Prefork MPM because PHP depends on
it. So, PHP needs prefork to work but I cannot use it because it simply
fails to start.
PHP doesn't seem to work with the Worker MPM but this is the only MPM which
works together with PHP.

Now, does anyone knows how to solve this mistery, or is there anybody who
managed to installed both Apache2 and PHP and got it to work on SuSE 9.1 ??
If so, all suggestions are more than welcome.

Thanks,

Luc



Relevant Pages

  • Re: Moving to apache2
    ... And what about the various mods (like php, python, etc), ... php4 is stable under apache2 if you don't use threads. ...
    (freebsd-questions)
  • Re: php-4.3.4-Win + Apache2 + XP
    ... I run a nearly identical configuration for AMP (Apache, MySQL, PHP). ... > to undertake the installation of mySQL after PHP is successfully ... Is it the Apache2 server? ...
    (alt.php)
  • Re: php-4.3.4-Win + Apache2 + XP
    ... I run a nearly identical configuration for AMP (Apache, MySQL, PHP). ... > to undertake the installation of mySQL after PHP is successfully ... Is it the Apache2 server? ...
    (comp.lang.php)
  • Re: Why TCL?
    ... There already is a lot of PHP code. ... Apache2 from Apache 1.3 because of the incompatibility issue. ... Apache2, but I wonder if TCL, if it doesn't suffer the same constraints as ... was resolves the threading issue? ...
    (comp.lang.tcl)
  • Re: [PHP] LAMP Server setup help
    ... I have setup a test system on my home network in the past to develop & ... test PHP apps by installing an ISAPI PHP dll in IIS. ... Starting web server: apache2apache2: Syntax error on line 187 ... Apache2 should not use any modules/ directory. ...
    (php.general)