You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Jonathan Vanasco <jv...@mastersofbranding.com> on 2005/04/01 00:13:08 UTC
Re: Segmentation Fault
All you need to do is rebuild php.
On Mar 31, 2005, at 4:26 PM, Rodger Castle wrote:
> I had no success with this fix, however. Not that I tried very hard.
> I've been getting irritated with PHP lately anyway.
Re: Segmentation Fault
Posted by Rodger Castle <ro...@profocusdesigns.com>.
> >> All you need to do is rebuild php.
> >
> > Ehm, in what way?
> >
> > So, I first need to build mod_perl, THEN build php?
...
>
> cd PHP
> ./configure --with-apxs2=/usr/local/apache2/bin/apxs
> --with-config-file-path=/usr/local/lib/php4.3.9.ini --with-mysql
> make
> make install
> cp php.ini-dist /usr/local/lib/php4.3.9.ini
>
...
Andreas,
As I understand it (I'm sure someone will correct me if I'm wrong), you'll need to rebuild PHP using the libraries from the MySQL source distribution and not PHP's built-in routines. I believe this is done with --with-mysql=[DIR] where DIR is the MySQL base directory.
Rodger
Re: Segmentation Fault
Posted by jonathan vanasco <jv...@mastersofbranding.com>.
On Apr 1, 2005, at 9:39 AM, Andreas Krüger wrote:
>> All you need to do is rebuild php.
>
> Ehm, in what way?
>
> So, I first need to build mod_perl, THEN build php?
This is my build order notepad that i refer to when updating. It
should help.
download:
apache2 - httpd.apache.org
berkeleydb - sleepycat.org
libapreq2 - httpd.apache.org
mod_perl2 - perl.apache.org
php 4.x - php.net
subversion - subversion.tigris.org
cd APACHE2
./configure prefix=/usr/local/apache2 --with-mpm=prefork --enable-dav
--enable-so --enable-deflate --enable-maintainer-mode --with-dbm=db4
--with-berkeley-db=/usr/local/BerkeleyDB.4.2
make
sudo make install
cd SUBVERSION
./configure --with-apr=/usr/local/apache2
--with-apr-util=/usr/local/apache2
cd MOD_PERL_2
perl Makefile.PL MP_INST_APACHE2=1 MP_APXS=/usr/local/apache2/bin/apxs
make
make test
sudo make install
cd LIBAPREQ2
perl Makefile.PL --with-apache2-apxs=/usr/local/apache2/bin/apxs
make
make test
sudo make install
cd PHP
./configure --with-apxs2=/usr/local/apache2/bin/apxs
--with-config-file-path=/usr/local/lib/php4.3.9.ini --with-mysql
make
make install
cp php.ini-dist /usr/local/lib/php4.3.9.ini
edit httpd.conf
LoadModule php4_module libexec/libphp4.so
AddType application/x-httpd-php .php .phtml
RE: Segmentation Fault
Posted by Andreas Krüger <an...@kruger.nu>.
>All you need to do is rebuild php.
Ehm, in what way?
So, I first need to build mod_perl, THEN build php?