Re: Best way to install php-gtk2 on unix systems?

From: Date: Sun, 16 Oct 2005 22:55:29 +0000
Subject: Re: Best way to install php-gtk2 on unix systems?
References: 1  Groups: php.gtk.general 
Request: Send a blank email to php-gtk-general+get-6245@lists.php.net to get a copy of this message
On Sun, Oct 16, 2005 at 06:20:44PM +0100, Jp wrote: > I hope someone could point me out the best way to install php-gtk-2 in a > unix-like environment (currently running Fedora Core 4), without > associating php-gtk with a php-enabled webserver running on the same > machine. I did this for the previous version of PHP-GTK, when generating packages for the pptpconfig application. The main reason was that I used pcntl functions in the application, which if compiled into PHP used by Apache increased the risk of a denial of service attack by a user. In brief, build PHP with configure options to place the files in a different tree and do not build for apache. Then build php-gtk-2 in a way that uses this different tree. Here's my PHP 4 configure "line" ... I disabled and turned off as much as I could, to shrink the binary. ./configure --prefix=/usr/lib/php-pcntl \ --disable-cgi \ --disable-rpath \ --disable-ipv6 \ --disable-all \ --enable-pcntl \ --enable-posix \ --disable-xml \ --disable-safe-mode \ --disable-sigchild \ --disable-bcmath \ --disable-calendar \ --disable-ctype \ --disable-dba \ --disable-dbase \ --disable-dbx \ --disable-debug \ --disable-dio \ --disable-exit \ --disable-filepro \ --disable-ftp \ --disable-gd-native-ttf \ --disable-mbstring \ --disable-mbregex \ --disable-mime-magic \ --disable-overload \ --disable-session \ --disable-shmop \ --disable-ucd-snmp-hack \ --disable-sockets \ --disable-sysvmsg \ --disable-sysvsem \ --disable-sysvshm \ --disable-wddx \ --disable-xml \ --disable-xslt \ --disable-yp \ --without-bz2 \ --without-db3 \ --without-curl \ --without-gd \ --without-ttf \ --without-gdbm \ --without-gettext \ --without-ncurses \ --without-gmp \ --without-iconv \ --without-jpeg \ --without-mm \ --without-openssl \ --without-png \ --without-pspell \ --without-xml \ --without-zlib \ --without-imap \ --without-kerberos \ --without-ldap \ --without-mysql \ --without-pgsql \ --without-snmp \ --without-unixODBC \ --without-mnogosearch \ --with-pcre-regex And here's my PHP-GTK 1 configure line ... ./configure --with-php-config=/usr/lib/php-pcntl/bin/php-config The result is that the application can be installed and run without any web server or generic PHP support. -- James Cameron mailto:quozl@us.netrek.org http://quozl.netrek.org/

« previous php.gtk.general (#6245) next »