Page 1 of 1

php compilieren

Posted: 2003-01-30 20:44
by randar
hi ich hab alles nach der faq im forum gemacht. Also da wo man mysql 4.05a apache 2 und php 4.3.0 isntaliert.
So wenn ich php configureieren will kommt ein fehler.
Also das geb ich in die console ein

Code: Select all

linux:/home/randar/php-4.3.0 # ./configure --enable-track-vars --enable-versioning --enable-sysvshm --enable-sysvsem --enable-sysvmsg --enable-sockets --with-mysql-sock=/tmp/mysql.sock --with-mysql=/usr/local --with-zlib-dir=/usr/local --disable-ipv6 --disable-debug --with-apxs2=/usr/local/bin/apxs --with-config-file-path=/usr/local/conf --prefix=/usr/local --sysconfdir=/usr/local/conf --silent

loading cache ./config.cache
./configure: line 2482: lex: command not found
configure: error: cannot find output from lex; giving up
Wieso bekomme ich den fehler?

Re: php compilieren

Posted: 2003-01-30 20:48
by sascha
Du musst flex nachinstallieren. Gibts von SuSE als rpm.

Re: php compilieren

Posted: 2003-01-30 20:55
by randar
k thx

jetzt bekomm ich diese meldung.

Code: Select all

linux:/home/randar/php-4.3.0 # /usr/local/bin/apachectl start
Syntax error on line 241 of /usr/local/conf/httpd.conf:
Cannot load /usr/local/modules/mod_deflate.so into server: /usr/local/modules/mod_deflate.so: undefined symbol: deflate

Was muss ich da tun?

Re: php compilieren

Posted: 2003-01-30 21:35
by randar
hab das modul einfach mal aus der httpd.conf entfernt ^^
Geht auch eigentlich soweit, nur zeigt er mit keien php datein an :( Er zeigt mir nru den code, aber net wie se aussehn. Muss ich noch was in die httpd.conf schreiben oder so?

Re: php compilieren

Posted: 2003-01-30 21:49
by Anonymous
Laut offizieller PHP-Seite

ScriptAlias /php/ /path/
AddType application/x-httpd-php .php
Action application/x-httpd-php /usr/bin/php

Die 1. Zeile brauchst du nur, wenn du kein Modul hast, also PHP als CGI läuft!

Re: php compilieren

Posted: 2003-02-05 14:37
by randar
ich komm mit der ersten zeile net so klar, was muss den dahein?

Re: php compilieren

Posted: 2003-02-05 14:54
by Anonymous
/path/ muss durch das Verzeichnis ersetzt werden. z.B. /home/www/web1/php-bin/

brauchst du aber wie gesagt nur, wenns als CGI läuft. Ich denke aber du wirst das Modul installiert haben, oder?

Re: php compilieren

Posted: 2003-02-05 15:04
by randar
jo ich habs instaliert, aber ich finde e snirgend in der httpd.conf. Ich habs alles nach der faq hier im forum gemacht.
Plz Help

Re: php compilieren

Posted: 2003-02-13 17:43
by randar
bitte helf mir wer, ich bin verzweifelt :(

Re: php compilieren

Posted: 2003-02-14 07:56
by mezga
einfach das:

AddType application/x-httpd-php .php
Action application/x-httpd-php /usr/bin/php

in die httpd.conf reinschreiben.

und wenn kein Fehler beim Apache start kommt, dann hat er PHP auch erfolgreich geladen.

Haben deine PHP Scripte zufällig die Endung: .php3 ???