php compilieren

Apache, Lighttpd, nginx, Cherokee
Post Reply
randar
Posts: 73
Joined: 2002-08-31 12:01
 

php compilieren

Post 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?
sascha
Posts: 1325
Joined: 2002-04-22 23:08
 

Re: php compilieren

Post by sascha »

Du musst flex nachinstallieren. Gibts von SuSE als rpm.
randar
Posts: 73
Joined: 2002-08-31 12:01
 

Re: php compilieren

Post 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?
randar
Posts: 73
Joined: 2002-08-31 12:01
 

Re: php compilieren

Post 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?
Anonymous
 

Re: php compilieren

Post 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!
randar
Posts: 73
Joined: 2002-08-31 12:01
 

Re: php compilieren

Post by randar »

ich komm mit der ersten zeile net so klar, was muss den dahein?
Anonymous
 

Re: php compilieren

Post 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?
randar
Posts: 73
Joined: 2002-08-31 12:01
 

Re: php compilieren

Post 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
randar
Posts: 73
Joined: 2002-08-31 12:01
 

Re: php compilieren

Post by randar »

bitte helf mir wer, ich bin verzweifelt :(
mezga
Posts: 147
Joined: 2002-12-10 13:59
 

Re: php compilieren

Post 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 ???
Post Reply