suPHP installieren?

Apache, Lighttpd, nginx, Cherokee
Post Reply
ferdi99
Posts: 16
Joined: 2003-06-24 15:34
 

suPHP installieren?

Post by ferdi99 »

Hallo zusammen,

also, ich versuche seit geraumer Zeit suPHP auf meinem Root-Server von 1&1 (Apache/1.3.26, (Linux/SuSE), mod_ssl/2.8.10, OpenSSL/0.9.6g, PHP/4.2.2) nach folgender Anleitung zu installieren:
http://www.rob-schulze.de/informatik/tu ... index.html

schon beim Befehl "make" erhalte ich folgende Fehlermeldung:
touch suphp.h
gcc -c -Wall suphp.c
gcc -c -Wall filesystem.c
gcc -c -Wall check.c
gcc -c -Wall error.c
error.c: In function `error_exit':
error.c:30: warning: implicit declaration of function `exit'
gcc -c -Wall log.c
log.c: In function `log':
log.c:83: warning: implicit declaration of function `strlen'
gcc -o suphp suphp.o filesystem.o check.o error.o log.o

Was mache ich (als blutiger Anfänger :? ) denn falsch? Die config.h habe ich meines Erachtens richtig editiert:
#define OPT_CHECKPATH
#define OPT_MIN_UID 100
#define OPT_MIN_GID 100
#define OPT_APACHE_USER "wwwrun"
#define OPT_PATH_TO_PHP "/usr/bin/php"
#define OPT_LOGFILE "/var/log/httpd/suphp.log"

Oder liegt da doch der Hase im Pfeffer??? Kann mir jemand weiterhelfen??

Grüße Ralph
jamesb
Posts: 661
Joined: 2002-05-08 15:35
Location: Karlsruhe
Contact:
 

Re: suPHP installieren?

Post by jamesb »

ferdi99 wrote:...
error.c: In function `error_exit':
error.c:30: warning: implicit declaration of function `exit'
gcc -c -Wall log.c
log.c: In function `log':
log.c:83: warning: implicit declaration of function `strlen'
gcc -o suphp suphp.o filesystem.o check.o error.o log.o
Das sind noch nur warnings. IMHO sollte dein SuPHP dann trozdem ohne Probleme laufen können.
Fehler, durch die sich das Programm nicht übersetzen lässt, werden beim gcc als "error:" ausgegeben.

JamesB
ferdi99
Posts: 16
Joined: 2003-06-24 15:34
 

Re: suPHP installieren?

Post by ferdi99 »

Hallo,

ok danke. Habe die Installation nun bis zum Ende durchgezogen. Gibt es eine Möglichkeit zu Ã?berprüfen, ob SuPHP nun richtig läuft??

Grüße Ralph
jamesb
Posts: 661
Joined: 2002-05-08 15:35
Location: Karlsruhe
Contact:
 

Re: suPHP installieren?

Post by jamesb »

Schau dir mal http://www.debianhowto.de/de/suphp/suph ... stallation an. Da wird das ganze zwar für Debian beschrieben, ist aber fast 1zu1 auf SuSE übertragbar (du musst nur die Pfade anpassen, und die apt-get Installation geht net :-)

JamesB
ferdi99
Posts: 16
Joined: 2003-06-24 15:34
 

Re: suPHP installieren?

Post by ferdi99 »

Ok, habs durchgelesen.

Beim Restart des Apache bekomme ich allerdings folgende Fehlermeldung:

Invalid command 'suPHP_Engine', perhaps mis-spelled or defined by a module not included in the server configuration failed

Und der Server ist nicht mehr erreichbar!

Woran liegt das??

Kann es sein, daß Confixx hier dazwischen funkt???

Grüße Ralph
sascha
Posts: 1325
Joined: 2002-04-22 23:08
 

Re: suPHP installieren?

Post by sascha »

Confixx ist nicht dran schuld. Wird das Modul denn geladen?
ferdi99
Posts: 16
Joined: 2003-06-24 15:34
 

Re: suPHP installieren?

Post by ferdi99 »

Hallo Sascha,

da bin ich mir nicht sicher, wie kann ich das denn definitiv feststellen?? in der httpd.conf sind Befehle LoadModule und AddModule zumindest drin.

Im Moment bin ich soweit, daß mir im Browser aufgerufene PHP-Dateien zum download angeboten werden!!

Habe folgende Ã?nderungen in der httpd.conf gemacht, bei denen ich mir auch nicht 100% sicher bin, ob sie richtig sind:

suPHP_Engine on
php_admin_flag engine off
AddType application/x-httpd-php .php
AddHandler x-httpd-php .php


#
# PHP 3.x:
#
#<IfModule mod_php3.c>
#AddType application/x-httpd-php .php
#AddType application/x-httpd-php3 .php3
#AddType application/x-httpd-php3-source .phps
#AddType application/x-httpd-php3 .phtml
#</IfModule>

#
# PHP 4.x:
#
#<IfModule mod_php4.c>
#AddType application/x-httpd-php .php
#AddType application/x-httpd-php .php4
#AddType application/x-httpd-php .php3
#AddType application/x-httpd-php-source .phps
#</IfModule>


Grüße Ralph
sascha
Posts: 1325
Joined: 2002-04-22 23:08
 

Re: suPHP installieren?

Post by sascha »

Es müsste auf jeden Fall noch eine LoadModule suphp.... Anweisung geben.
ferdi99
Posts: 16
Joined: 2003-06-24 15:34
 

Re: suPHP installieren?

Post by ferdi99 »

Ja klar,

hab ich mich nicht richtig ausgedrückt, die Befehle
LoadModule suphp_module /usr/lib/apache/mod_suphp.so
AddModule mod_suphp.c

sind auch in der httpd.conf!

Beim restart des apache wird allerdings PHP4 gestartet (so versteh ich zumindest diese Meldung:
Starting httpd [ PHP4 SSL ] done

Grüße Ralph
ferdi99
Posts: 16
Joined: 2003-06-24 15:34
 

Re: suPHP installieren?

Post by ferdi99 »

Also, nochmal kurz erklärt:

Wenn ich suPHP aktiviere, werden mir im Browser alle PHP-Dateien zum download angeboten und nicht ausgeführt!
Deaktiviere ich suPHP läuft alles wieder wie vorher.

Allerdings bräuchte ich ja suPHP und für Confixx mod_PHP oder sehe ich das falsch?? Kann denn jemand, der suPHP mit Confixx auf einem 1&1-Root lauffähig hat mal seine Einstellungen posten?? Das würde mir mit Sicherheit weiterhelfen!

Welche Einstellungen sind da falsch?

Grüße Ralph
bravesurfer
Posts: 170
Joined: 2003-05-08 12:17
Location: Stuttgart
 

Re: suPHP installieren?

Post by bravesurfer »

Also genau das selbe Problem habe ich auch. Nach der Installation und Aktiviereun von suphp werden mir sämtliche php Files zum Download angeboten.

Kann jemand bitte einen Tip geben, wo der Fehler liegen könnte?
arty
Userprojekt
Userprojekt
Posts: 729
Joined: 2002-06-12 10:11
Contact:
 

Re: suPHP installieren?

Post by arty »

Habt ihr auch mod_php auskommentiert?

bye
arty
bravesurfer
Posts: 170
Joined: 2003-05-08 12:17
Location: Stuttgart
 

Re: suPHP installieren?

Post by bravesurfer »

die Datei suse_loadmodules.conf in den Editor und setze ein # vor die Zeile mit PHP4. selbiges muss
mit der Datei suse_addmodule.conf geschehen.

# vi /etc/httpd/suse_addmodules.conf
Falls du das hier meinst, ja hab ich gemacht, leider nach wie vor o.g. Fehler!
arty
Userprojekt
Userprojekt
Posts: 729
Joined: 2002-06-12 10:11
Contact:
 

Re: suPHP installieren?

Post by arty »

clemenz wrote:Falls du das hier meinst, ja hab ich gemacht, leider nach wie vor o.g. Fehler!
Startet der Apache noch so?

Code: Select all

Starting httpd [ PHP4 SSL ] done
Wenn ja, ist das Modul noch aktiv.

bye
arty
bravesurfer
Posts: 170
Joined: 2003-05-08 12:17
Location: Stuttgart
 

Re: suPHP installieren?

Post by bravesurfer »

Starting httpd [frontpage Perl PHP4 SSL]

Aber wo hab ich dann vergessen es auszuschalten?
arty
Userprojekt
Userprojekt
Posts: 729
Joined: 2002-06-12 10:11
Contact:
 

Re: suPHP installieren?

Post by arty »

Irgendwo muss das PHP-Modul noch geladen werden, denn man sieht es ja noch beim Starten.

bye
arty
Post Reply