Re: Best way to install php-gtk2 on unix systems?
| From: | Jp | Date: | Tue, 18 Oct 2005 23:49:43 +0000 |
| Subject: | Re: Best way to install php-gtk2 on unix systems? | ||
| References: | 1 2 | Groups: | php.gtk.general |
| Request: | Send a blank email to php-gtk-general+get-6251@lists.php.net to get a copy of this message | ||
Thanks for your reply!
I've been trying what you mentioned, ie. installing php in another
folder, but it isn't working like I expected it to. The main problem
(from what I can tell) is that the config-path isn't being set correctly.
I know this is not a problem that concerns php-gtk directly (it's about
building php), but I'm posting here hoping you can pinpoint any blatant
mistakes I might be making. =)
This are the configure options I used for PHP (fresh CVS checkout on
monday, v5.1RC3):
./configure --prefix=/opt/php4gtk \
--with-config-file-path=/opt/php4gtk/lib \
--exec-prefix=/opt/php4gtk \
--disable-cgi \
--without-pear
If I try:
/opt/php4gtk/bin/php -r 'phpinfo();'
I get (amongst the rest of phpinfo's data) this:
Configuration File (php.ini) Path => /usr/local/lib/php.ini
That is the path to my 'standard' php.ini, loaded as an apache2 module,
and not the one specified for this build... Am I doing something wrong,
or is this a bug in php?
Anyhow, I'll try rebuilding again after performing a CVS update
tomorrow, as well as rebuilding and reinstalling the version I use with
apache, and see how it turns out!
Thanks,
-Jp
James Cameron escreveu:
> 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.
>