Quantcast
Channel: BitNami Answers - latest questions
Viewing all articles
Browse latest Browse all 2052

install a newer version of Apache

$
0
0

Hi, yesterday I've installed a newer version of pcre lib, infact I've seen that most of my problems with the mod-security core rules http://answers.bitnami.org/questions/5768/lamp-stack-and-mod_security are related with an old version of pcre. After the installation of that lib I've noticed a strange behaviour, if check the version of pcre with:

pcretest -C

I see:

PCRE version 8.30 2012-02-04

Compiled with

8-bit support only

No UTF-8 support

No Unicode properties support

No just-in-time compiler support

Newline sequence is LF

\R matches all Unicode newlines

Internal link size = 2

POSIX malloc threshold = 10

Default match limit = 10000000

Default recursion depth limit = 10000000

Match recursion uses stack

if I do a phpinfo(), I see again the old PCRE Library Version 8.12 2011-01-15. This happens because in the lampstack, apache 2.2 has been built with a default set of libraries (i.e. it's a bundle). for what I know the only way to solve this problem is to rebuild apache with this flag: “--with-pcre=” . So I've tried:

cd /opt/bitnami 
sudo su
./ctlscript.sh stop apache
cd
mkdir apache_inst
cd apache_inst
wget http://apache.fastbull.org//httpd/httpd-2.4.2.tar.gz
gzip -d httpd-2.4.2.tar.gz
tar xvf httpd-2.4.2.tar
cd httpd-2.4.2
./configure --prefix=/usr --with-pcre=/usr/bin/pcre-config
make
make install

unfortunately when I check the apache version:

/usr/sbin/apache2 -v

I see that I've the 2.2. I'm wondering if I must specify a different directory here: "--prefix=/usr". If I try to use a newer version of the Lamp Stack http://bitnami.org/files/stacks/lampstack/5.4.4-0/changelog.txt still find pcre v 8.12?


Viewing all articles
Browse latest Browse all 2052

Trending Articles