Apache, Lighttpd, nginx, Cherokee
randar
Posts: 73 Joined: 2002-08-31 12:01
Post
by randar » 2003-01-30 20:44
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
Post
by sascha » 2003-01-30 20:48
Du musst flex nachinstallieren. Gibts von SuSE als rpm.
randar
Posts: 73 Joined: 2002-08-31 12:01
Post
by randar » 2003-01-30 20:55
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
Post
by randar » 2003-01-30 21:35
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
Post
by Anonymous » 2003-01-30 21:49
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
Post
by randar » 2003-02-05 14:37
ich komm mit der ersten zeile net so klar, was muss den dahein?
Anonymous
Post
by Anonymous » 2003-02-05 14:54
/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
Post
by randar » 2003-02-05 15:04
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
Post
by randar » 2003-02-13 17:43
bitte helf mir wer, ich bin verzweifelt :(
mezga
Posts: 147 Joined: 2002-12-10 13:59
Post
by mezga » 2003-02-14 07:56
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 ???