Re: [cowiki-dev] [PHP-DEV] PHP 5.1 Release Candidate 1

Paul Hanchett <[email protected]> Tue, 26 Jul 2005 20:56:44 -0700
Newsgroups gmane.comp.php.cowiki.devel
Message-ID <[email protected]>
Advanced Server reports Apache 2.0.53 but there is no apxs component at
all. Does that make any sense? You can see my server at https://216.99.211.49 .

Daniel T. Gorski wrote:

On 26 Jul 18:31, Paul Hanchett wrote:

As planned (a tiny bit delayed), I'd like to RC1 PHP 5.1 within the next
few days.

So how do I build it to get a mod_php5 or whatever?

* check out the PHP CVS
* cd to the directory
* ./buildconf
* ./configure --with-the-parameters-you-require
* make

If you've build a module (if you used --with-apxs), shutdown your apache,
copy ./.libs/libphp5.so to the httpd/libexec/ directory. If your httpd.conf
is correctly set, start apache.

If you've build a CGI (if you used --enable-force-cgi-redirect), copy
./sapi/cgi/php to the location where you've set it to be in the httpd.conf.
No apache restart required.

If you use Apache2 use apxs2 instead.

...

Here is the configure I use (for CGI):

./configure --enable-force-cgi-redirect --with-mysqli \
--with-mysql=/usr/local/mysql --with-pgsql --enable-memory-limit --with-gd \
--with-jpeg-dir=/usr/lib/ --enable-exif --with-config-file-path=../conf \
--with-zlib

You do not require --with-pgsql, --enable-memory-limit, --with-gd,
--with-jpeg-dir and --enable-exif. --with-config-file-path is the location
for the php.ini used by this CGI (here relative to the location of the PHP
binary)

If you want to build a module (DSO), just replace
--enable-force-cgi-redirect with --with-apxs. (--with-apxs2)

More information: cd /where/you/checked/php/out/ && ./configure --help

root@warpcore:/usr/src/php5-cvs> ./configure --help | grep apxs
--with-apxs=FILE Build shared Apache 1.x module. FILE is the optional
pathname to the Apache apxs tool; defaults to "apxs".
--with-apxs2filter=FILE pathname to the Apache apxs tool; defaults to "apxs".
--with-apxs2=FILE EXPERIMENTAL: Build shared Apache 2.0 Handler module.
FILE is the optional

Mandriva installs http://www.advx.org/ by default. There is no ASPX or

ASPX2 component at all. :-(

apxs is a Perl script and part of the Apache distribution. Has nothing to do
with your Mandriva (whatever this it).

locate apxs

regards dtg

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]