|
Posted by Dr. No on 01/03/07 08:24
Anthony Smith wrote:
> Let's say I installed php without the --enable-cli option. If I want to
> to update php do I have to re-install it with all of my options or can
> I just install it with the --enable-cli option?
>
Yes! The new binary will write over the old. Its not like doing a software
installation on Windows where you can run the setup program to change program
settings. The php program actually gets recompiled. Typically when I do a PHP
install, I save the configuration in a file in the source and run it as a script
in the bash shell. This makes changing the configuration easier. It also helps
when you go to upgrade. In my source file, I have a script called runconfig.sh.
I've set the permissions so I can execute it as root. My file looks like this:
#/bin/bash
../configure --prefix=/usr/local \
--with-config-file-path=/usr/local/php \
--enable-calendar \
--enable-cli \
--enable-sockets \
--enable-ftp \
--enable-mbstring=all \
--enable-mbregex \
--with-apxs2=/usr/local/httpd/bin/apxs \
--with-xsl \
--with-curl=/usr/local \
--with-mysql=/usr/local/mysql \
--with-mysqli=/usr/local/mysql/bin/mysql_config \
--with-gd=/usr/local \
--with-freetype-dir=/usr/local \
--with-zlib-dir=/usr/local
Doing this makes life much easier.
Navigation:
[Reply to this message]
|