Apache/SSL und PHP3

Frank Matthieß frankm at lug-owl.de
Mon Aug 11 11:11:02 CEST 2003


Moin moin,

Auf einem debian woody System habe ich einen Apache/SSL laufen. Nun
möchte ich dort noch (vorhandene) PHP3 Scripte laufen lassen.

Nachdem ich das Pakete php3 installiert habe und die Parameter in der
/etc/apache-ssl/httpd.conf eingetragen habe, sollte es laufen...

[/etc/apache-ssl/httpd.conf]
...
LoadModule mime_magic_module /usr/lib/apache/1.3/mod_mime_magic.so
LoadModule mime_module /usr/lib/apache/1.3/mod_mime_ssl.so
LoadModule php3_module /usr/lib/apache/1.3/libphp3.so
...
<IfModule mod_mime.c>
...
    AddType application/x-httpd-php3 .php3
    AddType application/x-httpd-php3-source .phps
...
</IfModule>
...
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory /usr/lib/cgi-bin/>
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>
...
<IfModule mod_php3.c>
        php3_track_errors on
        php3_engine on
        php3_display_errors on
        php3_enable_dl on
        php3_expose_php on
        <Location /usr/lib/cgi-bin/>
                Options +ExecCGI
        </Location>
</IfModule>
[]

Mit dem Apache "server-info" habe ich geprüft, ob die Parameter auch
akzeptiert wurden. Das mod_mime.c listet die php3 Einträge ordnunggemäß
auf.

Als eine Art Verzweiflungstat habe ich den Kommanmdozeilen Interpreter
im Paket php3-cgi nachinstalliert. 

Wenn ich nun in den php3 Scripten kein Shellbang ala #!/usr/bin/php3
eintrage, dann meckert Apache:

[Mon Aug 11 10:57:31 2003] [error] (8)Exec format error: exec of /usr/lib/cgi-bin/status.php3 failed
[Mon Aug 11 10:57:31 2003] [error] [client 10.10.1.2] malformed header from script. Bad header=Launching... /usr/lib/apache-s: /usr/lib/cgi-bin/status.php3

Mit Shellbang geht es...
Was mache ich falsch? 
Oder was habe ich falsch verstanden?

Wird in jedem Fall /usr/bin/php3 ausgeführt oder führt das
Apacheservermodul libphp3.so die Scripte direkt aus?

Frank.
-- 
Frank Matthieß                                               frankm at lug-owl.de

  This is GNU/Linux Country.  On a quiet night, you can hear Windows reboot.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lug-owl.de/pipermail/linux/attachments/20030811/7a49a0a1/attachment.sig>


More information about the Linux mailing list