PHP-Installation....

Apache, Lighttpd, nginx, Cherokee
Post Reply
Anonymous
 

PHP-Installation....

Post by Anonymous »

Hi,

bei der Installation von PHP mit den Optionen
./configure --with-apxs=/usr/local/apache/bin/apxs --with-ftp --enable-versioning --enable-track-vars=yes --enable-url-includes --enable-sysvshm=yes --enable-sysvsem=yes --with-config-file-path=/etc --enable-safe-mode --enable-track-vars --with-db3 --with-gd --with-mysql=/usr/local/mysql --with-gettext --with-mm --enable-ftp --with-zlib --disable-debug --with-xml --with-mcrypt --enable-calendar --enable-versioning --enable-sockets --enable-ftp --with-regex=php --enable-memory-limit --enable-sysvmsg --enable-track-vars --enable-trans-sid --enable-bcmath --with-bz2 --enable-ctype --with-iconv --enable-exif --enable-filepro --with-gettext --enable-mbstring --with-pcre-regex --without-pgsql --with-exec-dir=/usr/local/apache/libexec --with-mysql-sock=/var/lib/mysql/mysql.sock
wird irgendwie keine libphp4.so - Datei erstellt. Woran liegt das? Liegt das an meinen Optionen???

Daniel
darkspirit
Posts: 553
Joined: 2002-10-05 16:39
Location: D'dorf
Contact:
 

Re: PHP-Installation....

Post by darkspirit »

Befindet sich apxs auch an der angegebenen Stelle? Was für Meldungen bringt "make install"?
Anonymous
 

Re: PHP-Installation....

Post by Anonymous »

make install
Installing PHP CLI binary: /usr/local/bin/
Installing PHP CLI man page: /usr/local/man/man1/
Installing PHP SAPI module: apache
[activating module `php4' in /usr/local/apache/conf/httpd.conf]
cp libs/libphp4.so /usr/local/apache/libexec/libphp4.so
cp: Aufruf von stat für »libs/libphp4.so« nicht möglich: Datei oder Verzeichnis nicht gefunden
apxs:Break: Command failed with rc=1
make: *** [install-sapi] Fehler 1
Pfade stimmen alle....

Daniel
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: PHP-Installation....

Post by oxygen »

*kopfschüttel*

Bitte nicht einfach den ./configure String übernehmen. Es empfiehlt sich immer selbst zu überlegen was man braucht. Dann ist die Chance auf Erfolg sehr viel höher. Dann kommen nicht solche Konstruktionen raus:

Code: Select all

--enable-track-vars=yes 
--enable-sysvshm=yes
--enable-sysvsem=yes
--enable-sysvmsg
--with-db3
--with-regex=php
--enable-filepro 
--enable-mbstring
--with-pcre-regex
Alles in höchstem Maße unsinnig.
darkspirit
Posts: 553
Joined: 2002-10-05 16:39
Location: D'dorf
Contact:
 

Re: PHP-Installation....

Post by darkspirit »

Gibt es schon Fehler beim "make" oder "configure"? Wenn die libphp4.so nicht gebaut wird, müsste sich das schon beim Kompilieren bemerkbar machen.
Anonymous
 

Re: PHP-Installation....

Post by Anonymous »

So, jetzt hab ich
./configure --with-apxs=/usr/local/apache/bin/apxs --with-ftp --enable-versioning --enable-url-includes --with-config-file-path=/etc --enable-safe-mode --with-gd --with-mysql=/usr/local/mysql --with-gettext --with-mm --enable-ftp --with-zlib --disable-debug --with-xml --with-mcrypt --enable-calendar --enable-versioning --enable-sockets --enable-ftp --enable-memory-limit --enable-trans-sid --enable-bcmath --with-bz2 --enable-ctype --with-iconv --enable-exif --with-gettext --without-pgsql --with-exec-dir=/usr/local/apache/libexec --with-mysql-sock=/var/lib/mysql/mysql.sock
genommen, gibt aber keine Fehler beim make oder configure, erst wieder beim make install, und zwar den selben wie oben...

Daniel
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: PHP-Installation....

Post by Joe User »

Starte bitte von einem frischem Sourcetree mit:

Code: Select all

./configure --with-apxs=/usr/local/apache/bin/apxs --with-exec-dir=/usr/local/apache/libexec --with-config-file-path=/etc && make && make install
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
oxygen
Posts: 2138
Joined: 2002-12-15 00:10
Location: Bergheim
 

Re: PHP-Installation....

Post by oxygen »

Damit das ich gesagt habe, obige ./configure Optionen sind unsinnig, wollte ich nicht sagen, das die anderen sinnvoll sind. Du solltest dir den String mal durchlesen, dann sollte aufallen das z.B. manche Optionen doppelt drin stehen....
Bei jeder Option muss abgewogen ob sie gebraucht wird. Für den Anfang könnte man z.B. mal nur mit mysql, ftp, zlib, gettext, gd, sockets arbeiten. Diese Erweiterungen werden in 95% der Fälle ausreichen. Oft wird noch xml benötig, aber das macht auch genauso viele Probleme.
Anonymous
 

Re: PHP-Installation....

Post by Anonymous »

OK ok, ich sehs ein. hab die so ohne zu gucken aus nem Tutorial.

Aber trotzdem, nach nun erfolgreicher Installation / einbindung in httpd.conf (Pfade stimmen) bekomme ich folgenden Fehler:
/usr/local/apache/bin/apachectl configtest
Syntax error on line 241 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: /usr/local/apache/libexec/libphp4.so: undefined symbol: gss_nt_service_name
Und nun?

Daniel
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: PHP-Installation....

Post by Joe User »

Wurden Apache und PHP gegen die gleiche libc gelinkt?
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
Post Reply