Page 1 of 1

Help with this PHP 5.1.5 build

Posted: Sun Aug 20, 2006 10:43 pm
by neophyte
Whats wrong with this configuration. I keep getting CGI only installs using this:

Code: Select all

--prefix=/usr --with-apxs2=/usr/bin/apxs2 --disable-cgi --with-config-file-path=/etc/php5 --with-layout=GNU --enable-memory-limit --enable-calendar --with-iconv --with-gettext --with-imap --with-kerberos=/usr --with-openssl --with-zlib --enable-bcmath --with-mime-magic --with-curl --enable-filepro --enable-ftp --with-gd=/usr --enable-gd-native-ttf --with-jpeg-dir=/usr --with-xpm-dir=/usr/X11R6 --with-png-dir=/usr --with-freetype-dir=/usr --with-imap --with-ldap
--with-ldap-sasl --enable-mbstring --with-mysql=/usr --with-mysqli=/usr --with-pdo-mysql --with-pdo-sqlite --enable-soap --with-unixODBC --with-pear=/usr/share/php5
What am I missing. BTW I'm trying to install PHP5.1.5

Posted: Tue Aug 22, 2006 12:51 am
by RobertGonzalez
Does doing it this way eliminate the need to edit the php.ini file? I know that sounds heck of newbie, but I have never built PHP on a linux machine, so this will help me learn too.

Posted: Tue Aug 22, 2006 1:01 am
by feyd
From my understanding they can be used as performance tuning by removing cruft you won't use. The catch is if you ever need to use that functionality, you have to recompile.

Posted: Tue Aug 22, 2006 8:48 am
by RobertGonzalez
So then, theoretically, this build directive

Code: Select all

--disable-cgi
Should set the install up in a way that CGI would be disabled, not enabled, as I guess neophyte is seing?