PHP: CGI-Version

Bash, Shell, PHP, Python, Perl, CGI
Post Reply
markusk
Posts: 140
Joined: 2003-05-04 20:14
 

PHP: CGI-Version

Post 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
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: PHP: CGI-Version

Post by Joe User »

PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
markusk
Posts: 140
Joined: 2003-05-04 20:14
 

Re: PHP: CGI-Version

Post 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?
hbaes
Posts: 70
Joined: 2002-10-08 21:04
 

Re: PHP: CGI-Version

Post 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 !!!
markusk
Posts: 140
Joined: 2003-05-04 20:14
 

Re: PHP: CGI-Version

Post by markusk »

er bricht überhaupt nicht ab, es läuft prima. Nur eben als CLI.
hbaes
Posts: 70
Joined: 2002-10-08 21:04
 

Re: PHP: CGI-Version

Post 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
markusk
Posts: 140
Joined: 2003-05-04 20:14
 

Re: PHP: CGI-Version

Post by markusk »

ja den schalter such ich ja *g* auf php.net hab ich nämlich nichts gefunden
hbaes
Posts: 70
Joined: 2002-10-08 21:04
 

Re: PHP: CGI-Version

Post by hbaes »

--enable-fastcgi schon probiert ?
--with-apxs baut nämlich immer modul
markusk
Posts: 140
Joined: 2003-05-04 20:14
 

Re: PHP: CGI-Version

Post by markusk »

--with-apxs also weglassen?
hbaes
Posts: 70
Joined: 2002-10-08 21:04
 

Re: PHP: CGI-Version

Post by hbaes »

??? probieren !

habs bislang immer nur als DSo Modul gebaut (unter linux)
markusk
Posts: 140
Joined: 2003-05-04 20:14
 

Re: PHP: CGI-Version

Post by markusk »

ok... ich probiere es mal. Wie binde ich es dann in den Apache ein?
hbaes
Posts: 70
Joined: 2002-10-08 21:04
 

Re: PHP: CGI-Version

Post by hbaes »

siehe httpd.apache.org/docs
LoadModule entfällt

dafür gibts Ã?nderungen im AddType Abschnitt
Post Reply