Reply to Re: PHP install question

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация