Page 1 of 1

PHP: CGI-Version

Posted: 2004-02-05 20:11
by markusk
Hallo!

Anscheinend habe ich die CLI-Version von PHP isntalliert. Wie kann ich denn die CGI-Version installieren (Apache: 1.3)?

Gruß und Danke
Markus

Re: PHP: CGI-Version

Posted: 2004-02-05 20:16
by Joe User

Re: PHP: CGI-Version

Posted: 2004-02-05 20:23
by markusk

Code: Select all

'./configure' '--prefix=/usr/share' '--datadir=/usr/share/php' '--bindir=/usr/bin' '--libdir=/usr/share' '--includedir=/usr/include' '--with-_lib=lib' '--with-config-file-path=/etc' '--with-exec-dir=/usr/lib/php/bin' '--disable-debug' '--enable-bcmath' '--enable-calendar' '--enable-ctype' '--enable-discard-path' '--enable-exif' '--enable-ftp' '--enable-gd-imgstrttf' '--enable-gd-native-ttf' '--enable-inline-optimization' '--enable-magic-quotes' '--enable-mbstr-enc-trans' '--enable-mbstring' '--enable-memory-limit' '--enable-safe-mode' '--enable-shmop' '--enable-sigchild' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-versioning' '--enable-wddx' '--with-bz2' '--with-ftp' '--with-gdbm' '--with-gettext' '--with-gmp' '--with-jpeg-dir=/usr' '--with-ldap' '--with-mcal=/usr' '--with-mcrypt' '--with-mysql=/usr' '--with-ndbm' '--with-png-dir=/usr' '--with-tiff-dir=/usr' '--with-ttf' '--with-freetype-dir' '--with-zlib' '--with-zip' '--with-gd' '--with-curl' '--with-openssl' '--with-apxs=/usr/sbin/apxs' '--with-mm' 'i586-suse-linux' '--silent' 
OK, anders gefragt: Warum geht es hiermit nicht?

Re: PHP: CGI-Version

Posted: 2004-02-05 21:09
by hbaes
--with-_lib=lib' ???? whats das ???

bricht er schon bei der kompilierung ab ? wenn ja nimm mal --silent weg und guck nach was er anmeckert !!!

Re: PHP: CGI-Version

Posted: 2004-02-05 21:14
by markusk
er bricht überhaupt nicht ab, es läuft prima. Nur eben als CLI.

Re: PHP: CGI-Version

Posted: 2004-02-05 21:19
by hbaes
als cli ???

von welcher php version sprichst du ?
die cli version (php) liegt immer im unterverzeichnis cli/
du scheinst aber php als modul kompiliert zu haben, und damit gibts ne libphp4 im Apache lib Verzeichnis (bei mir /usr/lib/apache/ )

um eien cgi version und kein modul (standard) zu kompilieren musst du einen schalter setzten, guck aber bitte unter ./configure --help
oder php.net

Re: PHP: CGI-Version

Posted: 2004-02-05 21:23
by markusk
ja den schalter such ich ja *g* auf php.net hab ich nämlich nichts gefunden

Re: PHP: CGI-Version

Posted: 2004-02-05 21:30
by hbaes
--enable-fastcgi schon probiert ?
--with-apxs baut nämlich immer modul

Re: PHP: CGI-Version

Posted: 2004-02-05 21:32
by markusk
--with-apxs also weglassen?

Re: PHP: CGI-Version

Posted: 2004-02-05 21:34
by hbaes
??? probieren !

habs bislang immer nur als DSo Modul gebaut (unter linux)

Re: PHP: CGI-Version

Posted: 2004-02-05 21:36
by markusk
ok... ich probiere es mal. Wie binde ich es dann in den Apache ein?

Re: PHP: CGI-Version

Posted: 2004-02-06 14:55
by hbaes
siehe httpd.apache.org/docs
LoadModule entfällt

dafür gibts Ã?nderungen im AddType Abschnitt