ERLEDIGT
NEIN
NEIN
ANTWORTEN
11
11
ZUGRIFFE
2478
2478
EMPFEHLEN
-
26.09.04 18:21 #1
- Registriert seit
- Sep 2004
- Beiträge
- 9
Hallo,
ich habe versucht php5 auf meinem Suse 9.0 Server mit Apache 1.3 zu installieren. Habe php5 geladen entpackt und versucht normal mit ./configure ./make ./make install zu installieren, aber habe immernoch php4 drauf. Weiß nicht wo/wie ich die http.conf oder php.ini entsprechend anpassen soll. Wäre nett wenn mir hier jemand kurz schreiben kann wie ich php5 installier und in Apache einbau. php4 kann von mir aus gelöscht werden. php5 soll ja abwärz kompatibel sein.
Gruß Daniel
-
26.09.04 20:43 #2
- Registriert seit
- Dec 2001
- Ort
- Hannover
- Beiträge
- 4.234
in der httpd.conf die Modulsektion suchen und einfach das PHP4 Modul deaktivieren und das PHP5 Modul aktivieren.
Das steht aber auch im Apache-Manual. Ich sage das jetzt höflich, bevor Dich jemand anschnauzt
. Bitte vorm Fragen das Handbuch und Google befragen.
Die tutorials-Suche spuckt auch eine Menge zu dem Thema aus.
DankeCopy for free - Yet another page for free software with soures:- BitUnlocker (Automatic unlock multiple Bitlocker secured drives - if you use the same password)
- W7 ScrollZoom (Use Windows 7 zoom tool through your mouse wheel)
- AppStarter (Somewhat like PortableApps launcher)
- QuakeConsole (Show/Hide windows console with your tilde key)
- BetterFileRenamer (Simple file renamer that adds date and version)
-
26.09.04 22:15 #3
- Registriert seit
- Sep 2004
- Beiträge
- 9
also bei google finde ich nicht brauchbares. und wenn ich hier suche finde ich zwar was aber das was bereits gepostet wurde passt nicht zu meinem "problem"
habe in der http.conf zwar das modul für php 4 gefunden, aber finde nirgends php5. bzw finde nicht wo php5 normal sein soll. hab zwar schonmal nen pfad gefunden wo php5 sein soll, aber da verzeichnisse exestieren nicht.
Mit der http://www.php.net/manual/de/install.unix.php Anleitung komme ich nicht zurecht. keine ahnung was ich mit
# emerge \<apache-2
# USE="-*" emerge php mod_php
# ebuild /var/db/pkg/dev-php/mod_php-<your PHP version>/mod_php-<your PHP version>.ebuild config
# nano /etc/conf.d/apache
Add "-D PHP4" to APACHE_OPTS
# rc-update add apache default
# /etc/init.d/apache start
machen soll. habe mir deswegen einfach das php5.gz geladen entpackt und einfach standartmäßig
./configure
.make
make install
ausgeführt. Habe gedacht das reicht und brauch nur in der http.conf php zeile hinzufügen. aber was nicht da ist kann ich nicht einfügen. Im internet finde ich nur sowas wie anleitungen zur install vom php mit apache und so zusammen.
Hoffe einer versteht wo mein problem mit php5 und kann mir etwas helfen.
Gruß Daniel
Geändert von danielhhrulez (27.09.04 um 05:53 Uhr)
-
27.09.04 00:16 #4
- Registriert seit
- Dec 2001
- Ort
- Hannover
- Beiträge
- 4.234
Mei, das is wirklich nicht schwer. Traut sich denn niemand was zu?
Also das PHP4-Modul heißt unter Linux: libphp4.so
Das ist das, welches in der httpd.conf steht. Mit ein wenig grauen Zellen im Schädel, reimen wir uns zusammen das die 4 vielleicht für die Version steht und suchen mal danach. Zusätzlich suchen wir nach libphp5.so. Falls die libphp4.so und libphp5.so NICHT am gleichen Ort sein sollten, verschieben wir die libphp5.so zur libphp4.so und ändern nun einfach zwei Zeichen in der httpd.conf:
LoadModule php4module libexec/libphp4.so
zu
LoadModule php5module libexec/libphp5.so
So, der Pfad im oberen Beispiel ist natürlich durch den eigenen Pfad auszutauschen:
Üblicherweise befindet sich der libexec-Ordner hier:
/usr/local/apache/[apacheversion]/libexec
oder direkt unter
/libexec
Aber das ist von Linux Distribution zu Linux Disti. verschieden. Ich kann Dir sagen wo die Debian-Apache-Module sind, aber bei Suse ist das garantiert woanders.
Ich nehme mal an Du weißt( ! ) wie man unter Linux nach Dateien und Ordner sucht
Geändert von Neurodeamon (27.09.04 um 00:20 Uhr)
Copy for free - Yet another page for free software with soures:- BitUnlocker (Automatic unlock multiple Bitlocker secured drives - if you use the same password)
- W7 ScrollZoom (Use Windows 7 zoom tool through your mouse wheel)
- AppStarter (Somewhat like PortableApps launcher)
- QuakeConsole (Show/Hide windows console with your tilde key)
- BetterFileRenamer (Simple file renamer that adds date and version)
-
27.09.04 05:50 #5
- Registriert seit
- Sep 2004
- Beiträge
- 9
Danke für deine bisherige Mühe, aber
auf die Idee mit umbenennen bin ich auch gekommen, aber der findet die lilphp5.so nicht. die libphp4.so hat der gefunden
/usr/lib/apache/libphp4.so
Keine Ahnung wo ich die nun herbekommen soll. Finde die nicht aufn Server und auchnet in der php5.gz Datei. Es kommen keine Errors oder Fehler.
Hab erst ./configure
dann make
und dann
Server:/php-5.0.2 # make install
Installing PHP SAPI module: cgi
Installing PHP CGI into: /usr/local/bin/
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Archive_Tar - already installed: 1.1
[PEAR] Console_Getopt - already installed: 1.2
[PEAR] PEAR - already installed: 1.3.2
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
[PEAR] XML_RPC - already installed: 1.1.0
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
program: phpextdist
Habs 2 3 mal probiert. Bin nun Ratlos. Würds reichen wenn ich mir die libphp5 von irgendwo herhole, oder mir dieses jemand zuschickt?
kill Daniel
exit to hell
-
27.09.04 06:30 #6
- Registriert seit
- Dec 2001
- Ort
- Hannover
- Beiträge
- 4.234
Wie es scheint hast Du PHP5 als CGI kompiliert und zwar in usr/local/bin.
Da kannst Du lange nach der .so-Datei suchen.
Probier mal folgende Anleitung, die deckt so ziemlich alles ab, was man braucht:
http://www.pointbeing.net/howto/index.php/installphp5/
Ich hoffe das hilft
Copy for free - Yet another page for free software with soures:- BitUnlocker (Automatic unlock multiple Bitlocker secured drives - if you use the same password)
- W7 ScrollZoom (Use Windows 7 zoom tool through your mouse wheel)
- AppStarter (Somewhat like PortableApps launcher)
- QuakeConsole (Show/Hide windows console with your tilde key)
- BetterFileRenamer (Simple file renamer that adds date and version)
-
27.09.04 15:23 #7
- Registriert seit
- Sep 2004
- Beiträge
- 9
Hi danke fürn Link
mit
./configure --prefix=/usr/local --with-apxs=/usr/local/apache/bin/apxs \
--with-ming=/usr/local --with-gd --with-jpeg-dir=/usr/local \
--with-png-dir=usr/local --enable-gd-native-ttf --with-xml \
--with-libxml-dir=/usr/local --with-expat-dir=/usr/local/lib \
--with-dom=/usr/local --enable-ftp --with-mysql=/usr/local \
--enable-shared=yes --enable-static=yes --with-xsl=/usr/local \
--enable-track-vars --enable-sockets --enable-wddx --with-xmlrpc \
--with-zlib-dir=/usr/local/include --with-iconv-dir=/usr/local/
hat es nicht geklappt. Etwas Modifiziert
(APXS Pfad angepasst und --with-xmlrpc und --with-ming=/usr/local entfernt)
./configure --prefix=/usr/local --with-apxs=/usr/sbin/apxs --with-gd --with-jpeg-dir=/usr/local --with-png-dir=usr/local --enable-gd-native-ttf --with-xml --with-libxml-dir=/usr/local --with-expat-dir=/usr/local/lib --with-dom=/usr/local --enable-ftp --with-mysql=/usr/local --enable-shared=yes --enable-static=yes --with-xsl=/usr/local --enable-track-vars --enable-sockets --enable-wddx --with-zlib-dir=/usr/local/include --with-iconv-dir=/usr/local/
kam zumindest kein Security Hinweis mehr wegen .htaccess
Diesmal stand da was von wegen Lizenz und nen Danke
So nach make und make install kam:
Installing PHP SAPI module: apache
[activating module `php5' in /etc/httpd/httpd.conf]
cp libs/libphp5.so /usr/lib/apache/libphp5.so
chmod 755 /usr/lib/apache/libphp5.so
cp /etc/httpd/httpd.conf /etc/httpd/httpd.conf.bak
cp /etc/httpd/httpd.conf.new /etc/httpd/httpd.conf
rm /etc/httpd/httpd.conf.new
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PEAR environment: /usr/local/lib/php/
[PEAR] Archive_Tar - installed: 1.1
[PEAR] Console_Getopt - installed: 1.2
[PEAR] PEAR - installed: 1.3.2
Wrote PEAR system config file at: /usr/local/etc/pear.conf
You may want to add: /usr/local/lib/php to your php.ini include_path
[PEAR] XML_RPC - installed: 1.1.0
Installing build environment: /usr/local/lib/php/build/
Installing header files: /usr/local/include/php/
Installing helper programs: /usr/local/bin/
program: phpize
program: php-config
program: phpextdist
sieht doch sehr gut aus
DANKE Neurodeamon
-
27.09.04 16:30 #8
- Registriert seit
- Sep 2004
- Beiträge
- 9
Der hat nun den Pfad /usr/local/lib für die php.ini udn nicht mehr /etc/ wo kann ich das ändern? finde im apache nichts
-
27.09.04 19:39 #9
- Registriert seit
- Dec 2001
- Ort
- Hannover
- Beiträge
- 4.234
Den Pfad kann man üblicherweise über ./configure einstellen. Mit
solltest Du das herausfinden können.Code :1
./configure --help
---
Hmm, eine gute alternative wäre XAMPP von www.apachefriends.org.
Draufmachen, entpacken, fertig
Copy for free - Yet another page for free software with soures:- BitUnlocker (Automatic unlock multiple Bitlocker secured drives - if you use the same password)
- W7 ScrollZoom (Use Windows 7 zoom tool through your mouse wheel)
- AppStarter (Somewhat like PortableApps launcher)
- QuakeConsole (Show/Hide windows console with your tilde key)
- BetterFileRenamer (Simple file renamer that adds date and version)
-
27.09.04 20:15 #10
- Registriert seit
- Sep 2004
- Beiträge
- 9
öhm hab die php5 install gelöscht, öhm muß ich php5 neu entpacken und dann in dem ordner den befehl ausführen?
Hab mal die Help aufgerufe, finde da sämtliche befehle, aber keine option zum ändern des pfades der php.ini
Gehts nicht anders?
kann man nicht einfach ne config datei ändern oder so?
-
27.09.04 21:01 #11
- Registriert seit
- Dec 2001
- Ort
- Hannover
- Beiträge
- 4.234
Nein, kann man nicht. Das wird vorm kompilieren festgelegt
Dies ist die configure Option als Beispiel (php sucht dann nach der php.ini in /etc/php5/):
Code :1
--with-config-file-path=/etc/php5/
Das hättest Du auch über die --help Option finden müssen
Naja, viel spaß beim neu kompilieren
Copy for free - Yet another page for free software with soures:- BitUnlocker (Automatic unlock multiple Bitlocker secured drives - if you use the same password)
- W7 ScrollZoom (Use Windows 7 zoom tool through your mouse wheel)
- AppStarter (Somewhat like PortableApps launcher)
- QuakeConsole (Show/Hide windows console with your tilde key)
- BetterFileRenamer (Simple file renamer that adds date and version)
-
27.09.04 22:08 #12
- Registriert seit
- Sep 2004
- Beiträge
- 9
OK hat geklappt
Also zur PHP5 Install.
PHP5 Laden und entpacken
ins php verzeichniss
dann folgende befehle ausführen:
./configure --prefix=/usr/local --with-apxs=/usr/sbin/apxs --with-gd --with-jpeg-dir=/usr/local --with-png-dir=usr/local --enable-gd-native---with-xml --with-libxml-dir=/usr/local --with-expat-dir=/usr/lib --with-dom=/usr/local --enable-ftp --with-mysql=/usr/local --enable-shared=yes --enable-static=yes --with-xsl=/usr/local --enable-track-vars --enable-sockets --enable-wddx --with-zlib-dir=/usr/include --with-iconv-dir=/usr/local --with-config-file-path=/etc
(configure befehl für Suse 9 bei Red Hat und Co sind Verzechnisse zum Teil anders)
make
make install
rcapache stop
rcapache start
FERTIG
Ähnliche Themen
-
PHP4 und PHP5
Von Maxm123 im Forum Hosting & WebserverAntworten: 8Letzter Beitrag: 05.05.09, 18:40 -
php4 auf php5
Von wachteldonk im Forum PHPAntworten: 2Letzter Beitrag: 08.10.07, 18:40 -
Unter Linux SuSe 9.2 php4 auf php5 updaten
Von nfsmw15 im Forum Linux & UnixAntworten: 1Letzter Beitrag: 25.06.07, 07:38 -
Php4 - Php5
Von piti66 im Forum PHPAntworten: 3Letzter Beitrag: 17.11.06, 10:31 -
php5 vs php4
Von vukodlac im Forum PHPAntworten: 1Letzter Beitrag: 12.01.04, 22:50





Zitieren
Login






[PHP][Snippet] Array zu XML konvertieren