Archiv verlassen und diese Seite im Standarddesign anzeigen : apxs und php-4.2.2
Berufspenner
28.08.02, 17:44
Hi@all
Ich habe mir den Apachen 1.3.26 mit ./configure --prefix=/usr/local/apache/1.3.26/
\--datadir=/usr/local/www/ \--enable-module=most
\--enable-shared=max \--enable-module=so konfiguriert. Dann ganz normal make && make install. Das war auch so kein Problem er läuft ja auch. Als ich dann aber php mit ./configure \--with-apxs=/usr/local/apache/1.3.26/bin/apxs php \--with-mysql
\--enable-versioning \--enable-track-vars=yes
\--enable-url-includes \--enable-sysvshm=yes
\--enable-sysvsem=yes \--with-config-file-path=/etc vorbereiten wollte spuckt er mir folgendes ausConfiguring SAPI modules
checking for AOLserver support... no
checking for Apache 1.x module support via DSO through APXS...
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path. Try to use --with-apxs=/path/to/apxs
The output of /usr/local/apache/1.3.26/bin/apxs follows
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
configure: error: Aborting
Kann mir jetzt jemand sagen, was ich machen soll? Ich habe mal testweis vom Apachen 2.0.40 das apx-File an die Stelle des 1.3.26ers kopiert und da läuft der ohne Problme durch.
Cu
Hi,
was passiert wenn du apxs mal so aufrufst?
Was bedeutet das "php" in der Zeile?
./configure \--with-apxs=/usr/local/apache/1.3.26/bin/apxs php \--with-mysql
Ciao, Bernie
Koniguration.
./configure --prefix=/usr/local/apache/1.3.26/
\--datadir=/usr/local/www/ \--enable-module=most
\--enable-shared=max \--enable-module=so
Also --enable-module=so muss doch nicht angegeben werden und wenn ja, dann --enable-shared=so, da dies ein automatisches enable-module nach sich zieht.
Wahrscheinlich wurde deshalb 2. Apache was not compiled with DSO support (--enable-module=so);
T,o)Me
Berufspenner
29.08.02, 09:08
Hi@all
Erst einmal Danke für eure Antworten.was passiert wenn du apxs mal so aufrufst?Dann kommt einfach nur das hier herraus. webserver:/usr/local/apache/1.3.26/bin # ./apxs
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
Was bedeutet das "php" in der Zeile? Das ist nur ein Tipfehler. Das 'php' gehört da garnicht hin.
Cu
Edit: Es funktioniert immer noch nicht. Es wird wie oben immer nach irgendeinner angehänkten Funktion/Variable verlangt. Nun weis ich nicht was ich da machen soll.
Berufspenner
29.08.02, 10:35
Hi@all
Ich habe jetzt mal beim konfigurieren von php folgendes gemacht ./configure \--with-apxs1=/usr/local/apache/1.3.26/bin/apxs php und jetzt läuft er durch. Nur macht der apache jetzt Zicken, wenn ich ihn starten will. Dann spuckt er das hier aus webserver:/usr/local/apache/1.3.26/bin # ./httpd
Syntax error on line 205 of /usr/local/apache/1.3.26/conf/httpd.conf:
Invalid command 'LoadModule', perhaps mis-spelled or defined
by a module not included in the server configuration
Dabei steht das hier in der httpd.conf und das ist meiner Meinung nach so auch richtig, zumal es die unveränderte config ist, die die Installation ausgespuckt hat. Die angegebenen Module befinfen sich auch an der richtigen stelle
LoadModule vhost_alias_module libexec/mod_vhost_alias.so
LoadModule env_module libexec/mod_env.so
LoadModule config_log_module libexec/mod_log_config.so
LoadModule mime_magic_module libexec/mod_mime_magic.so
LoadModule mime_module libexec/mod_mime.so
LoadModule negotiation_module libexec/mod_negotiation.so
LoadModule status_module libexec/mod_status.so
LoadModule info_module libexec/mod_info.so
LoadModule includes_module libexec/mod_include.so
LoadModule autoindex_module libexec/mod_autoindex.so
LoadModule dir_module libexec/mod_dir.so
LoadModule cgi_module libexec/mod_cgi.so
LoadModule asis_module libexec/mod_asis.so
LoadModule imap_module libexec/mod_imap.so
LoadModule action_module libexec/mod_actions.so
LoadModule speling_module libexec/mod_speling.so
LoadModule userdir_module libexec/mod_userdir.so
LoadModule alias_module libexec/mod_alias.so
LoadModule rewrite_module libexec/mod_rewrite.so
LoadModule access_module libexec/mod_access.so
LoadModule auth_module libexec/mod_auth.so
LoadModule anon_auth_module libexec/mod_auth_anon.so
LoadModule dbm_auth_module libexec/mod_auth_dbm.so
LoadModule digest_module libexec/mod_digest.so
LoadModule proxy_module libexec/libproxy.so
LoadModule cern_meta_module libexec/mod_cern_meta.so
LoadModule expires_module libexec/mod_expires.so
LoadModule headers_module libexec/mod_headers.so
LoadModule usertrack_module libexec/mod_usertrack.so
LoadModule unique_id_module libexec/mod_unique_id.so
LoadModule setenvif_module libexec/mod_setenvif.so
Hat da jemand eine Idee woran das liegen kann?
Cu
jetzt mal installiert. Mit mod_ssl. PHP-4.2.2
Aus dem mod_ssl Verzeichniss mit folgender Konfiguration aufrufen:
./configure --with-apache=../apache_1.3.26 \
--with-ssl=/usr/local/ssl \
--prefix=/usr/local/lamp \
--datadir=/www \
--enable-module=most \
--enable-shared=max \
--enable-module=ssl
Funktioniert alles ohne Probleme.
Wenn du auf ssl verzichten willst --> dann lass die ersten beiden Zeilen und die letzte weg und starte das ganze im apache- Verzeichniss.
T;o)Mes
P.S.: Uebrigens der Fehler in Zeile 205 bedeutet, dass keine Module geladen werden koennen. Ist das erste Modul was gleich versagt ! (vhost_alias_modul)
Berufspenner
30.08.02, 21:03
Hi@all
Also erst einmal Danke. P.S.: Uebrigens der Fehler in Zeile 205 bedeutet, dass keine Module geladen werden
koennen. Ist das erste Modul was gleich versagt ! (vhost_alias_modul)
Das ist mir schon klar. Das ding ist nur, dass er die Module nicht findet/lädt obwohl sie da sind, wo sie hingehören und auch in der httpd.conf vermerkt sind.
Cu
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.