Hallo Forum!
Brauche dringend Eure Hilfe.
Komme einfach nicht weiter... :(
Wollte laut Beschreibung von http://www.serversupportforum.de/forum/ ... #post13592
PHP5 auf mein Server installieren.
Habe also brav die .configure von meiner phpinfo() kopiert, die wie folgt aussieht:
'./configure' '--prefix=/usr/share' '--datadir=/usr/share/php' '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-dbase' '--enable-discard-path' '--enable-exif' '--enable-filepro' '--enable-force-cgi-redirect' '--enable-ftp' '--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--enable-inline-optimization' '--enable-magic-quotes' '--enable-mbstr-enc-trans' '--enable-mbstring' '--enable-mbregex' '--enable-memory-limit' '--enable-safe-mode' '--enable-shmop' '--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--enable-wddx' '--enable-yp' '--with-bz2' '--with-dom=/usr/include/libxml2' '--with-ftp' '--with-gdbm' '--with-gettext' '--with-gmp' '--with-imap=yes' '--with-iodbc' '--with-jpeg-dir=/usr' '--with-ldap=yes' '--with-mcal=/usr' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr' '--with-ndbm' '--with-pgsql=/usr' '--with-png-dir=/usr' '--with-readline' '--with-snmp' '--with-t1lib' '--with-tiff-dir=/usr' '--with-ttf' '--with-freetype-dir=yes' '--with-xml' '--with-xpm-dir=/usr/X11R6' '--with-zlib=yes' '--with-qtdom=/usr/lib/qt3' '--with-gd' '--with-openssl' '--with-curl' '--with-swf=/usr/src/packages/BUILD/swf/dist/' '--with-imap-ssl' '--enable-xslt' '--with-xslt-sablot' '--with-iconv' '--with-apxs2=/usr/sbin/apxs2-prefork' 'i586-suse-linux'
,es kommt aber bei diesem Befehl folgende Fehlermeldung:
loading cache ./config.cache
checking host system type... i586-suse-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... exit 0;
checking for ranlib... ranlib
checking whether ln -s works... yes
checking for mawk... no
checking for gawk... gawk
checking for bison... bison -y
checking bison version... 1.75 (ok)
checking for flex... flex
checking for yywrap in -lfl... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... yes
checking for working const... yes
checking flex version... 2.5.4 (ok)
checking for pthreads_cflags... -pthread
checking for pthreads_lib...
Configuring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS... no
checking for Apache 1.x module support... no
checking for member fd in BUFF *... no
checking for mod_charset compatibility option... no
checking for Apache 2.0 filter-module support via DSO through APXS... no
checking for Apache 2.0 handler-module support via DSO through APXS...
Sorry, I cannot run apxs. Possible reasons follow:
1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)
The output of /usr/sbin/apxs2-prefork follows:
./configure: line 5085: /usr/sbin/apxs2-prefork: No such file or directory
configure: error: Aborting
Was ist falsch?? Ich kenne mich fast gar nicht mit Linux aus und deswegen wäre es super, wenn Ihr mir sagen könntet, welches Packet bei mir evtl. fehlt.
Meine Daten:
°Strato High-End Server
°SUSE Linux 9.0
°momentan PHP 4.3.10
°Apache2
Danke schon mal für jede Antwort!!
Stelly
PHP5 Installation auf root-server suse 9.0 apache2
-
manfred, das mammut
- Posts: 48
- Joined: 2005-02-16 13:06
- Location: 127.0.0.1
Re: PHP5 Installation auf root-server suse 9.0 apache2
Ganz einfach:
"The output of /usr/sbin/apxs2-prefork follows:
./configure: line 5085: /usr/sbin/apxs2-prefork: No such file or directory "
hängt mit der configure-Option --with-apxs2=/usr/sbin/apxs2-prefork
zusammen und sagt aus, das dir apxs2-prefork unter dem angegebenen Pfad nicht existiert.
Also entweder mit "whereis apxs2-prefork" den richtigen Dateipfad ermitteln und an die "--with-apxs2="-Option anhängen oder die Option ganz weglassen.
Jetzt kommt der 08/15 Standardkommentar zur Aussage "ich kenne mich fast gar nicht mit Linux aus": Es ist keine gute Idee als Anfänger direkt mit einem Rootserver "rumzuspielen". Lieber erst einmal zu hause Linux aufsetzen und sich darin einarbeiten.
Viele Grüße
sp@php.net
"The output of /usr/sbin/apxs2-prefork follows:
./configure: line 5085: /usr/sbin/apxs2-prefork: No such file or directory "
hängt mit der configure-Option --with-apxs2=/usr/sbin/apxs2-prefork
zusammen und sagt aus, das dir apxs2-prefork unter dem angegebenen Pfad nicht existiert.
Also entweder mit "whereis apxs2-prefork" den richtigen Dateipfad ermitteln und an die "--with-apxs2="-Option anhängen oder die Option ganz weglassen.
Jetzt kommt der 08/15 Standardkommentar zur Aussage "ich kenne mich fast gar nicht mit Linux aus": Es ist keine gute Idee als Anfänger direkt mit einem Rootserver "rumzuspielen". Lieber erst einmal zu hause Linux aufsetzen und sich darin einarbeiten.
Viele Grüße
sp@php.net
Re: PHP5 Installation auf root-server suse 9.0 apache2
Hallo Manfred!
Danke für die schnelle Antwort!!! :)
Also ich habe das mit dem apxs weggelassen, aber braucht man das? wie kann ich das denn nachträglich installieren?
Also nach dem ich das mit apxs weggelassen habe, kam auch schon wie erwartet der nächste Fehler:
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2 installation.
Ich habe mir schon ein Packet runtergeladen, aber es will irgendwie nicht.
Installiert man die rpms nicht mit rpb -i packetname?
gruß
stelly
Danke für die schnelle Antwort!!! :)
Also ich habe das mit dem apxs weggelassen, aber braucht man das? wie kann ich das denn nachträglich installieren?
Also nach dem ich das mit apxs weggelassen habe, kam auch schon wie erwartet der nächste Fehler:
Configuring extensions
checking whether to enable LIBXML support... yes
checking libxml2 install dir... no
configure: error: xml2-config not found. Please check your libxml2 installation.
Ich habe mir schon ein Packet runtergeladen, aber es will irgendwie nicht.
Installiert man die rpms nicht mit rpb -i packetname?
gruß
stelly
-
manfred, das mammut
- Posts: 48
- Joined: 2005-02-16 13:06
- Location: 127.0.0.1
Re: PHP5 Installation auf root-server suse 9.0 apache2
Bin gerade auf dem Sprung, deshalb nur ne kurze Antwort:
RPMS-Pakete sind Source-Pakete. D.h. die musst Du erstmal selber kompilieren. RPM-Pakete sind die Binaries, die Du einfach mit rpm -i zum laufen bringen kannst.
Du solltest Dich einfach fragen, welche PHP-Funktionen Du brauchst. Wenn Du nix mit XML machen willst, brauchst Du auch nicht XML mit einkompilieren (je weniger Du einkompilierst, desto weniger Memory verbraucht PHP bei der Ausführung).
RPMS-Pakete sind Source-Pakete. D.h. die musst Du erstmal selber kompilieren. RPM-Pakete sind die Binaries, die Du einfach mit rpm -i zum laufen bringen kannst.
Du solltest Dich einfach fragen, welche PHP-Funktionen Du brauchst. Wenn Du nix mit XML machen willst, brauchst Du auch nicht XML mit einkompilieren (je weniger Du einkompilierst, desto weniger Memory verbraucht PHP bei der Ausführung).
Re: PHP5 Installation auf root-server suse 9.0 apache2
Okay Super! Danke!
Wo kann ich denn lesen, was beim configure befehl was ist?
bei meiner php4 configure steht:
'./configure' '--prefix=/usr/share' '--datadir=/usr/share/php' '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-dbase' '--enable-discard-path' '--enable-exif' '--enable-filepro' '--enable-force-cgi-redirect' '--enable-ftp' '--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--enable-inline-optimization' '--enable-magic-quotes' '--enable-mbstr-enc-trans' '--enable-mbstring' '--enable-mbregex' '--enable-memory-limit' '--enable-safe-mode' '--enable-shmop' '--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--enable-wddx' '--enable-yp' '--with-bz2' '--with-dom=/usr/include/libxml2' '--with-ftp' '--with-gdbm' '--with-gettext' '--with-gmp' '--with-imap=yes' '--with-iodbc' '--with-jpeg-dir=/usr' '--with-ldap=yes' '--with-mcal=/usr' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr' '--with-ndbm' '--with-pgsql=/usr' '--with-png-dir=/usr' '--with-readline' '--with-snmp' '--with-t1lib' '--with-tiff-dir=/usr' '--with-ttf' '--with-freetype-dir=yes' '--with-xml' '--with-xpm-dir=/usr/X11R6' '--with-zlib=yes' '--with-qtdom=/usr/lib/qt3' '--with-gd' '--with-openssl' '--with-curl' '--with-swf=/usr/src/packages/BUILD/swf/dist/' '--with-imap-ssl' '--enable-xslt' '--with-xslt-sablot' '--with-iconv' '--with-apxs2=/usr/sbin/apxs2-prefork' 'i586-suse-linux'
was wäre denn hier überflüssig?
gibt es irgendwo eine seite, wo ich rausfinden kann, was was ist?
gruß und vielen vielen dank!!
Wo kann ich denn lesen, was beim configure befehl was ist?
bei meiner php4 configure steht:
'./configure' '--prefix=/usr/share' '--datadir=/usr/share/php' '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include' '--sysconfdir=/etc' '--with-_lib=lib' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-dbase' '--enable-discard-path' '--enable-exif' '--enable-filepro' '--enable-force-cgi-redirect' '--enable-ftp' '--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--enable-inline-optimization' '--enable-magic-quotes' '--enable-mbstr-enc-trans' '--enable-mbstring' '--enable-mbregex' '--enable-memory-limit' '--enable-safe-mode' '--enable-shmop' '--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--enable-wddx' '--enable-yp' '--with-bz2' '--with-dom=/usr/include/libxml2' '--with-ftp' '--with-gdbm' '--with-gettext' '--with-gmp' '--with-imap=yes' '--with-iodbc' '--with-jpeg-dir=/usr' '--with-ldap=yes' '--with-mcal=/usr' '--with-mcrypt' '--with-mhash' '--with-mysql=/usr' '--with-ndbm' '--with-pgsql=/usr' '--with-png-dir=/usr' '--with-readline' '--with-snmp' '--with-t1lib' '--with-tiff-dir=/usr' '--with-ttf' '--with-freetype-dir=yes' '--with-xml' '--with-xpm-dir=/usr/X11R6' '--with-zlib=yes' '--with-qtdom=/usr/lib/qt3' '--with-gd' '--with-openssl' '--with-curl' '--with-swf=/usr/src/packages/BUILD/swf/dist/' '--with-imap-ssl' '--enable-xslt' '--with-xslt-sablot' '--with-iconv' '--with-apxs2=/usr/sbin/apxs2-prefork' 'i586-suse-linux'
was wäre denn hier überflüssig?
gibt es irgendwo eine seite, wo ich rausfinden kann, was was ist?
gruß und vielen vielen dank!!
-
manfred, das mammut
- Posts: 48
- Joined: 2005-02-16 13:06
- Location: 127.0.0.1
Re: PHP5 Installation auf root-server suse 9.0 apache2
Na ja, ist eigentlich ganz einfach:
--prefix --datadir --bindir --libdir --includedir --sysconfdir geben die Zielpfade an (die Parameter sind bei fast allen Programmen identisch)
--enable-XXXX und --disable-XXXX aktivieren/deaktivieren eingebaute Features von PHP, wie z.B. SafeMode
--with-XXX kompiliert das Modul XXX mit ein
Vielleicht hilft Dir dieses ->http://www.aditus.nu/jpgraph/apache2suse.php Tutorial weiter. Dort wird ein Standard-PHP5-Setup inkl. abhängiger Pakete beschrieben.[/url]
--prefix --datadir --bindir --libdir --includedir --sysconfdir geben die Zielpfade an (die Parameter sind bei fast allen Programmen identisch)
--enable-XXXX und --disable-XXXX aktivieren/deaktivieren eingebaute Features von PHP, wie z.B. SafeMode
--with-XXX kompiliert das Modul XXX mit ein
Vielleicht hilft Dir dieses ->http://www.aditus.nu/jpgraph/apache2suse.php Tutorial weiter. Dort wird ein Standard-PHP5-Setup inkl. abhängiger Pakete beschrieben.[/url]
Re: PHP5 Installation auf root-server suse 9.0 apache2
DANKEEE!!!
Probier das gleich mal aus!
Probier das gleich mal aus!