Re: Compiling
| From: | Tom Carter | Date: | Fri, 23 Jun 2000 17:57:42 +0000 |
| Subject: | Re: Compiling | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-2826@lists.php.net to get a copy of this message | ||
What would be the performance detriment if PHP was compiled wiht all its
options? Obviously it may be hard to get to compile as such, but assuming
(!) that it does, would the perforamce be comparable to that of a
minimalist install.
Thanks,
Tom Carter
Web Programmer
roundcorners.com
On Fri, 23 Jun 2000, Rasmus Lerdorf wrote:
> > I often see people get to a situation where they are missing a module and
> > have to recompile PHP.
>
> Well, doing something like:
>
> ./configure --with-mysql=shared
> make
>
> does actually work. It creates modules/mysql.so (along with a standalone
> PHP binary, but you can ignore that)
>
> This mysql.so can be loaded into PHP using dl() or via the extension
> directive in the php.ini file, so you don't actually have to recompile PHP
> to add a module. This is true for both the static and the DSO version of
> PHP.
>
> > Is there a reason not to compile it all always? I mean, simply compile all
> > of the options like
> > LDAP, PDF,FTP, GD, ODBC etc... and the rest of the things most of us use or
> > maybe will use
> > sometime.
>
> The reason being that most of these things require third-party library
> support and trying to compile it all will be difficult since we would have
> to go hunting all over the file system looking for the needed stuff and
> most of it won't be available.
>
> -Rasmus
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>