Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

PHP doesn't process pages

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


john.iliffe at iliffe

Apr 20, 2012, 7:39 PM

Post #1 of 12 (972 views)
Permalink
PHP doesn't process pages

Apache-2.4.1, PHP 5.4.0 new installation.

PHP pages are being served as raw data, leading to a browser response "You
have chosen to download a file of type php; what should FireFox do with
this?" and an option to save or open with KWrite.

I asked this question before and it was suggested that I move PHP to be a
fast CGI module but after reading the PHP docs they strongly recommend that
you don't do that. Also recommended that I upgrade to Apache 2.4.2 but
unless that is the cause of the problem I don't want to get distracted. I
have a serious time constraint to get this going.

So, to recap the original question:

- apachectl -M responds: php5_module (shared)

- all PHP page requests are served as raw pages, not processed by PHP

- config file contains:
LoadModule php5_module modules/libphp5.so

<Filesmatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>

(these were added by PHP when I installed it). There are no other
references in the config file to PHP. There are no references to PHP in the
mime.types file.

I have checked the logs carefully with the result that I noticed that all
of the child processes will segfault at some point:

[Fri Apr 20 21:13:48.529397 2012] [lbmethod_heartbeat:notice] [pid
25507:tid 47082556861104] AH02282: No slotmem from mod_heartmonitor

[Fri Apr 20 21:13:48.559272 2012] [mpm_event:notice] [pid 25507:tid
47082556861104] AH00489: Apache/2.4.1 (Unix) OpenSSL/0.9.8e-fips-rhel5
PHP/5.4.0 configured -- resuming normal operations

[Fri Apr 20 21:13:48.559410 2012] [core:notice] [pid 25507:tid
47082556861104] AH00094: Command line: '/usr/apache-2.4.1/bin/httpd'

[Fri Apr 20 21:13:58.564721 2012] [core:notice] [pid 25507:tid
47082556861104] AH00052: child pid 25538 exit signal Segmentation fault
(11)

This is the first 4 lines of the log after a start up.

I have no evidence that the child failures are caused by PHP but the fact
that PHP used to work (2.2.14) and doesn't now suggests that this may be a
related issue.

Can anyone help?

Thanks.

John




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


noel.butler at ausics

Apr 20, 2012, 8:38 PM

Post #2 of 12 (944 views)
Permalink
Re: PHP doesn't process pages [In reply to]

On Fri, 2012-04-20 at 22:39 -0400, John Iliffe wrote:


> So, to recap the original question:
>
> - apachectl -M responds: php5_module (shared)
>
> - all PHP page requests are served as raw pages, not processed by PHP
>
> - config file contains:
> LoadModule php5_module modules/libphp5.so



AddType application/x-httpd-php .php
Attachments: signature.asc (0.48 KB)


noel.butler at ausics

Apr 20, 2012, 8:43 PM

Post #3 of 12 (947 views)
Permalink
Re: PHP doesn't process pages [In reply to]

On Sat, 2012-04-21 at 13:38 +1000, Noel Butler wrote:

Replying to ones self is a bad sign, but please forgive me its
Saturday, and I've just returned from a HUGE lunch and are ready to curl
up and have a nap :) But also check the DirectoryIndex option to
ensure it has index.php ... *BUT* that won't be your problem, my
previous suggestion should still correct that issue.
Attachments: face-smile.png (0.85 KB)
  signature.asc (0.48 KB)


john.iliffe at iliffe

Apr 21, 2012, 9:41 PM

Post #4 of 12 (986 views)
Permalink
Re: PHP doesn't process pages [In reply to]

On Friday 20 April 2012 23:38:47 Noel Butler wrote:
> On Fri, 2012-04-20 at 22:39 -0400, John Iliffe wrote:
> > So, to recap the original question:
> >
> > - apachectl -M responds: php5_module (shared)
> >
> > - all PHP page requests are served as raw pages, not processed by PHP
> >
> > - config file contains:
> > LoadModule php5_module modules/libphp5.so
>
> AddType application/x-httpd-php .php

I did this and get the same result as before.

The complete PHP configuration is:

LoadModule php5_module modules/libphp5.so

<Filesmatch \.php$>
SetHandler application/x-httpd-php
</FilesMatch>

AddType application/x-httpd-php .php

Here is the entire error_log for the test run. I selected 4 .php pages and
notice that I recorded 4 segfaults. It would appear that every reference
to the PHP handler causes a segfault and then serves the page in raw form.
Does this suggest anything to you? I checked but Apache is not writing any
core dumps at the moment.

The only other odd point I noticed is the first line about slotmem but I
really have no idea what this is or means.

[Sun Apr 22 00:16:39.307037 2012] [lbmethod_heartbeat:notice] [pid 3924:tid
47553958730416] AH02282: No slotmem from mod_heartmonitor

[Sun Apr 22 00:16:39.336773 2012] [mpm_event:notice] [pid 3924:tid
47553958730416] AH00489: Apache/2.4.1 (Unix) OpenSSL/0.9.8e-fips-rhel5
PHP/5.4.0 configured -- resuming normal operations

[Sun Apr 22 00:16:39.336913 2012] [core:notice] [pid 3924:tid
47553958730416] AH00094: Command line: '/usr/apache-2.4.1/bin/httpd'

[Sun Apr 22 00:16:47.341351 2012] [core:notice] [pid 3924:tid
47553958730416] AH00052: child pid 3926 exit signal Segmentation fault (11)

[Sun Apr 22 00:16:47.341478 2012] [core:notice] [pid 3924:tid
47553958730416] AH00052: child pid 3955 exit signal Segmentation fault (11)

[Sun Apr 22 00:17:02.348462 2012] [core:notice] [pid 3924:tid
47553958730416] AH00052: child pid 4009 exit signal Segmentation fault (11)

[Sun Apr 22 00:17:02.348598 2012] [core:notice] [pid 3924:tid
47553958730416] AH00052: child pid 4039 exit signal Segmentation fault (11)

[Sun Apr 22 00:17:09.602969 2012] [mpm_event:notice] [pid 3924:tid
47553958730416] AH00491: caught SIGTERM, shutting down



Finally, just in case it is of use, here is the entire console listing for
the run:

================================================

[root [at] prod John]# /usr/apache-2.2.14/bin/apachectl -k stop
[root [at] prod John]# /usr/apache-2.4.1/bin/apachectl -k stop
httpd (no pid file) not running
[root [at] prod John]# /usr/apache-2.4.1/bin/apachectl -k start <---2.4.1
starts here
[root [at] prod John]# ps -ef | grep httpd
root 4414 1 2 00:31 ? 00:00:00 /usr/apache-2.4.1/bin/httpd
-k start
apache 4415 4414 0 00:31 ? 00:00:00 /usr/apache-2.4.1/bin/httpd
-k start
apache 4417 4414 0 00:31 ? 00:00:00 /usr/apache-2.4.1/bin/httpd
-k start
apache 4445 4414 0 00:31 ? 00:00:00 /usr/apache-2.4.1/bin/httpd
-k start
root 4501 3891 0 00:31 pts/0 00:00:00 grep httpd
[root [at] prod John]# /usr/apache-2.4.1/bin/apachectl -M
Loaded Modules:
core_module (static)
so_module (static)
http_module (static)
mpm_event_module (static)
authn_file_module (shared)
authn_core_module (shared)
authz_host_module (shared)
authz_groupfile_module (shared)
authz_user_module (shared)
authz_core_module (shared)
access_compat_module (shared)
auth_basic_module (shared)
socache_shmcb_module (shared)
reqtimeout_module (shared)
filter_module (shared)
mime_module (shared)
log_config_module (shared)
env_module (shared)
headers_module (shared)
setenvif_module (shared)
version_module (shared)
proxy_module (shared)
proxy_connect_module (shared)
proxy_ftp_module (shared)
proxy_http_module (shared)
proxy_fcgi_module (shared)
proxy_scgi_module (shared)
proxy_ajp_module (shared)
proxy_balancer_module (shared)
proxy_express_module (shared)
slotmem_shm_module (shared)
ssl_module (shared)
lbmethod_byrequests_module (shared)
lbmethod_bytraffic_module (shared)
lbmethod_bybusyness_module (shared)
lbmethod_heartbeat_module (shared)
unixd_module (shared)
status_module (shared)
autoindex_module (shared)
dir_module (shared)
alias_module (shared)
php5_module (shared)
[root [at] prod John]# /usr/apache-2.4.1/bin/apachectl -k stop
[root [at] prod John]# /usr/apache-2.2.14/bin/apachectl -k start

==========================================

Regards,

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


noel.butler at ausics

Apr 22, 2012, 12:34 AM

Post #5 of 12 (938 views)
Permalink
Re: PHP doesn't process pages [In reply to]

On Sun, 2012-04-22 at 00:41 -0400, John Iliffe wrote:


> > AddType application/x-httpd-php .php
>
> I did this and get the same result as before.
>
> The complete PHP configuration is:
>
> LoadModule php5_module modules/libphp5.so
>
> <Filesmatch \.php$>
> SetHandler application/x-httpd-php
> </FilesMatch>
>
> AddType application/x-httpd-php .php
>



What's with the filesmatch, you don't need it here, simply

LoadModule php5_module modules/libphp5.so
AddType application/x-httpd-php .php

.... should get it working.


You need to tell us the exact command you used to configure and build,
both httpd and php, I have a standard way of configuring for my dev
stuff, which works, it has to, because its also what I use in
production.

./configure --prefix=/usr/local/apache --enable-so --enable-modules=all
--enable-mods-static=all --disable-dav --enable-suexec
--with-suexec-docroot=/var/www --with-suexec-caller=apache
--with-suexec-logfile=/var/log/apache/suexec_log --with-included-apr
--disable-option-checking --with-mysql --disable-util-dso --enable-ssl

and for php...

./configure --with-apxs2=/usr/local/apache/bin/apxs --enable-ftp
--enable-calendar --enable-bcmath --with-open
ssl --enable-magic-quotes --with-gd --with-zlib
--with-zlib-dir=/usr/include --with-gettext --with-mysql --wit
h-mysqli --with-mysql-sock --with-jpeg-dir=/usr --with-png-dir=/usr
--with-mcrypt --enable-mbstring


I note your using php 5.4.0 - all my testing has been with 5.3.10 and is
done on Slackware, but I do have one RHEL 5.2
I'll throw 5.4 on the dev box if I get a chance later (almost dinner
time here) and see what blows up :)


> The only other odd point I noticed is the first line about slotmem but I
> really have no idea what this is or means.
>

That's nothing to worry about, its a module thats been loaded, but
likely not used

Cheers
Attachments: face-smile.png (0.85 KB)
  signature.asc (0.48 KB)


noel.butler at ausics

Apr 22, 2012, 4:08 AM

Post #6 of 12 (966 views)
Permalink
Re: PHP doesn't process pages [In reply to]

John,

On Sun, 2012-04-22 at 17:34 +1000, Noel Butler wrote:


>
> I note your using php 5.4.0 - all my testing has been with 5.3.10 and
> is done on Slackware, but I do have one RHEL 5.2
> I'll throw 5.4 on the dev box if I get a chance later (almost dinner
> time here) and see what blows up :)
>

[Sun Apr 22 20:59:26.195710 2012] [core:notice] [pid 10108:tid
3068159760] AH00052: child pid 10200 exit signal Segmentation fault (11)
[Sun Apr 22 21:00:07.236804 2012] [core:notice] [pid 10108:tid
3068159760] AH00052: child pid 10111 exit signal Segmentation fault (11)
[Sun Apr 22 21:00:58.287673 2012] [core:notice] [pid 10108:tid
3068159760] AH00052: child pid 10308 exit signal Segmentation fault (11)
[Sun Apr 22 21:01:57.346649 2012] [core:notice] [pid 10108:tid
3068159760] AH00052: child pid 10112 exit signal Segmentation fault (11)


Confirmed bug 2.4.2 w/php 5.4.0: I suggest you log a bug report with
php development team

In the interim, 5.3.10 is safe and works very well without errors.

Note: partial pages load (I just used phpmyadmin, since I know its on my
dev box and is a little bit more than basic web pages)
sidebar loads then it fails to load centre and process exits, until a
refresh then it continues loading. repeat logins, same result.


Cheers
Attachments: face-smile.png (0.85 KB)
  signature.asc (0.48 KB)


wrowe at rowe-clan

Apr 22, 2012, 10:49 AM

Post #7 of 12 (978 views)
Permalink
Re: PHP doesn't process pages [In reply to]

On 4/22/2012 6:08 AM, Noel Butler wrote:
> John,
>
> On Sun, 2012-04-22 at 17:34 +1000, Noel Butler wrote:
>
>>
>> I note your using php 5.4.0 - all my testing has been with 5.3.10 and is done on
>> Slackware, but I do have one RHEL 5.2
>> I'll throw 5.4 on the dev box if I get a chance later (almost dinner time here) and see
>> what blows up :)
>>
> [Sun Apr 22 20:59:26.195710 2012] [core:notice] [pid 10108:tid 3068159760] AH00052: child
> pid 10200 exit signal Segmentation fault (11)
> [Sun Apr 22 21:00:07.236804 2012] [core:notice] [pid 10108:tid 3068159760] AH00052: child
> pid 10111 exit signal Segmentation fault (11)
> [Sun Apr 22 21:00:58.287673 2012] [core:notice] [pid 10108:tid 3068159760] AH00052: child
> pid 10308 exit signal Segmentation fault (11)
> [Sun Apr 22 21:01:57.346649 2012] [core:notice] [pid 10108:tid 3068159760] AH00052: child
> pid 10112 exit signal Segmentation fault (11)
>
>
> Confirmed bug 2.4.2 w/php 5.4.0: I suggest you log a bug report with php development team

Please don't do that to other dev teams either. Before you refer users, make sure
they know how to give something helpful to the OGP, the corresponding backtrace.
It radically improves the odds of their bug report being reviewed and acted on.

http://httpd.apache.org/dev/debugging.html



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


john.iliffe at iliffe

Apr 22, 2012, 5:42 PM

Post #8 of 12 (936 views)
Permalink
Re: PHP doesn't process pages [In reply to]

On Sunday 22 April 2012 03:34:35 Noel Butler wrote:
> On Sun, 2012-04-22 at 00:41 -0400, John Iliffe wrote:
> > > AddType application/x-httpd-php .php
> >
> > I did this and get the same result as before.
> >
> > The complete PHP configuration is:
> > LoadModule php5_module modules/libphp5.so
> >
> > <Filesmatch \.php$>
> >
> > SetHandler application/x-httpd-php
> >
> > </FilesMatch>
> >
> > AddType application/x-httpd-php .php
>
> What's with the filesmatch, you don't need it here, simply
>
> LoadModule php5_module modules/libphp5.so
> AddType application/x-httpd-php .php
>
> .... should get it working.
>
>
> You need to tell us the exact command you used to configure and build,
> both httpd and php, I have a standard way of configuring for my dev
> stuff, which works, it has to, because its also what I use in
> production.
>
> ./configure --prefix=/usr/local/apache --enable-so --enable-modules=all
> --enable-mods-static=all --disable-dav --enable-suexec
> --with-suexec-docroot=/var/www --with-suexec-caller=apache
> --with-suexec-logfile=/var/log/apache/suexec_log --with-included-apr
> --disable-option-checking --with-mysql --disable-util-dso --enable-ssl
>
> and for php...
>
> ./configure --with-apxs2=/usr/local/apache/bin/apxs --enable-ftp
> --enable-calendar --enable-bcmath --with-open
> ssl --enable-magic-quotes --with-gd --with-zlib
> --with-zlib-dir=/usr/include --with-gettext --with-mysql --wit
> h-mysqli --with-mysql-sock --with-jpeg-dir=/usr --with-png-dir=/usr
> --with-mcrypt --enable-mbstring
>
>
> I note your using php 5.4.0 - all my testing has been with 5.3.10 and is
> done on Slackware, but I do have one RHEL 5.2
> I'll throw 5.4 on the dev box if I get a chance later (almost dinner
> time here) and see what blows up :)
>
> > The only other odd point I noticed is the first line about slotmem but
> > I really have no idea what this is or means.
>
> That's nothing to worry about, its a module thats been loaded, but
> likely not used
>
> Cheers
Hi Noel:

At the risk of becoming a real pest, can you tell me what version of PCRE
you used? I installed PCRE-8.30 and PHP 5.3.10 will not compile with it.
PHP-5.4.0 was OK but with PHP-5.3.10 I get

/tmp/php-5.3.10/ext/pcre/php_pcre.c:258: undefined reference to `pcre_info'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

The PHP config file has this entry:
--with-pcre-regex=/usr/pcre-8.30

I installed PCRE to support PHP 5.4.0 when I compiled it and previous PHP
installs and updates have worked without it. Sooo, I'm somewhat confused
here.

Regards,

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


john.iliffe at iliffe

Apr 22, 2012, 6:00 PM

Post #9 of 12 (939 views)
Permalink
Re: PHP doesn't process pages [In reply to]

On Sunday 22 April 2012 03:34:35 Noel Butler wrote:
> On Sun, 2012-04-22 at 00:41 -0400, John Iliffe wrote:
> > > AddType application/x-httpd-php .php
> >
> > I did this and get the same result as before.
> >
> > The complete PHP configuration is:
> > LoadModule php5_module modules/libphp5.so
> >
> > <Filesmatch \.php$>
> >
> > SetHandler application/x-httpd-php
> >
> > </FilesMatch>
> >
> > AddType application/x-httpd-php .php
>
> What's with the filesmatch, you don't need it here, simply
>
> LoadModule php5_module modules/libphp5.so
> AddType application/x-httpd-php .php
>
> .... should get it working.
>
>
> You need to tell us the exact command you used to configure and build,
> both httpd and php, I have a standard way of configuring for my dev
> stuff, which works, it has to, because its also what I use in
> production.
>
> ./configure --prefix=/usr/local/apache --enable-so --enable-modules=all
> --enable-mods-static=all --disable-dav --enable-suexec
> --with-suexec-docroot=/var/www --with-suexec-caller=apache
> --with-suexec-logfile=/var/log/apache/suexec_log --with-included-apr
> --disable-option-checking --with-mysql --disable-util-dso --enable-ssl
>
> and for php...
>
> ./configure --with-apxs2=/usr/local/apache/bin/apxs --enable-ftp
> --enable-calendar --enable-bcmath --with-open
> ssl --enable-magic-quotes --with-gd --with-zlib
> --with-zlib-dir=/usr/include --with-gettext --with-mysql --wit
> h-mysqli --with-mysql-sock --with-jpeg-dir=/usr --with-png-dir=/usr
> --with-mcrypt --enable-mbstring
>
>
> I note your using php 5.4.0 - all my testing has been with 5.3.10 and is
> done on Slackware, but I do have one RHEL 5.2
> I'll throw 5.4 on the dev box if I get a chance later (almost dinner
> time here) and see what blows up :)
>
> > The only other odd point I noticed is the first line about slotmem but
> > I really have no idea what this is or means.
>
> That's nothing to worry about, its a module thats been loaded, but
> likely not used
>
> Cheers

Noel:

To answer your questions and comments:

- the <FilesMatch> bit came from the PHP installation on the default Apache
config file. I don't think I coded it, but at this point I can't be sure.

- AddType probably worked as that is what lead to the PHP segfaults

- re PCRE I installed it to support PHP-8.4.0 because it is listed as
required there. When I compile PHP 5.3.10 with the same as your note, but
skipping the things I don't need (don't use MySQL and don't need the
graphics) I get one of two errors:

if I config using --with-pcre-regex=/usr/pcre-8.30 then I get an error

tmp/php-5.3.10/ext/pcre/php_pcre.c:258: undefined reference to `pcre_info'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

if I leave it out I get the following error:

ext/pcre/.libs/php_pcre.o: In function `zm_info_pcre':
/tmp/php-5.3.10/ext/pcre/php_pcre.c:128: undefined reference to
`pcre_version'
ext/pcre/.libs/php_pcre.o: In function `zm_startup_pcre':
/tmp/php-5.3.10/ext/pcre/php_pcre.c:154: undefined reference to
`pcre_version'
ext/pcre/.libs/php_pcre.o: In function `make_subpats_table':
/tmp/php-5.3.10/ext/pcre/php_pcre.c:193: undefined reference to
`pcre_fullinfo'
/tmp/php-5.3.10/ext/pcre/php_pcre.c:202: undefined reference to
`pcre_fullinfo'
/tmp/php-5.3.10/ext/pcre/php_pcre.c:203: undefined reference to
`pcre_fullinfo'

and about 30 more lines in the same vein. Obviously a different version of
PCRE is a requirement!


FYI, here is the full configuration I used:

./configure --prefix=/usr/php-5.3.10 --with-apxs2=/usr/apache-2.4.2/bin/apxs
--with-openssl --with-zlib --with-ldap --with-pgsql=/usr/postgres-8.4.2 --
with-bz2 --enable-sockets --enable-zip --with-pear --enable-ftp --with-
config-file-path=/usr/php-5.3.0/lib

plus, of course, the --with-pcre-regex=... bit.

I hope that I haven't made any obvious mistakes. I've been working on this
for over a week and because we don't have a test server I have to test in
the middle of the night when nobody is on and I can take down the
production server. So, a bit bleary eyed.

Regards, and thanks for the help to date.

John

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


john.iliffe at iliffe

Apr 23, 2012, 2:05 PM

Post #10 of 12 (941 views)
Permalink
Re: PHP doesn't process pages [In reply to]

On Sunday 22 April 2012 20:42:26 John Iliffe wrote:
> On Sunday 22 April 2012 03:34:35 Noel Butler wrote:
> > On Sun, 2012-04-22 at 00:41 -0400, John Iliffe wrote:
> > > > AddType application/x-httpd-php .php
> > >
> > > I did this and get the same result as before.
> > >
> > > The complete PHP configuration is:
> > > LoadModule php5_module modules/libphp5.so
> > >
> > > <Filesmatch \.php$>
> > >
> > > SetHandler application/x-httpd-php
> > >
> > > </FilesMatch>
> > >
> > > AddType application/x-httpd-php .php
> >
> > What's with the filesmatch, you don't need it here, simply
> >
> > LoadModule php5_module modules/libphp5.so
> > AddType application/x-httpd-php .php
> >
> > .... should get it working.
> >
> >
> > You need to tell us the exact command you used to configure and build,
> > both httpd and php, I have a standard way of configuring for my dev
> > stuff, which works, it has to, because its also what I use in
> > production.
> >
> > ./configure --prefix=/usr/local/apache --enable-so
> > --enable-modules=all --enable-mods-static=all --disable-dav
> > --enable-suexec
> > --with-suexec-docroot=/var/www --with-suexec-caller=apache
> > --with-suexec-logfile=/var/log/apache/suexec_log --with-included-apr
> > --disable-option-checking --with-mysql --disable-util-dso --enable-ssl
> >
> > and for php...
> >
> > ./configure --with-apxs2=/usr/local/apache/bin/apxs --enable-ftp
> > --enable-calendar --enable-bcmath --with-open
> > ssl --enable-magic-quotes --with-gd --with-zlib
> > --with-zlib-dir=/usr/include --with-gettext --with-mysql --wit
> > h-mysqli --with-mysql-sock --with-jpeg-dir=/usr --with-png-dir=/usr
> > --with-mcrypt --enable-mbstring
> >
> >
> > I note your using php 5.4.0 - all my testing has been with 5.3.10 and
> > is done on Slackware, but I do have one RHEL 5.2
> > I'll throw 5.4 on the dev box if I get a chance later (almost dinner
> > time here) and see what blows up :)
> >
> > > The only other odd point I noticed is the first line about slotmem
> > > but I really have no idea what this is or means.
> >
> > That's nothing to worry about, its a module thats been loaded, but
> > likely not used
> >
> > Cheers
>
> Hi Noel:
>
> At the risk of becoming a real pest, can you tell me what version of
> PCRE you used? I installed PCRE-8.30 and PHP 5.3.10 will not compile
> with it. PHP-5.4.0 was OK but with PHP-5.3.10 I get
>
> /tmp/php-5.3.10/ext/pcre/php_pcre.c:258: undefined reference to
> `pcre_info' collect2: ld returned 1 exit status
> make: *** [sapi/cli/php] Error 1
>
> The PHP config file has this entry:
> --with-pcre-regex=/usr/pcre-8.30
>
> I installed PCRE to support PHP 5.4.0 when I compiled it and previous
> PHP installs and updates have worked without it. Sooo, I'm somewhat
> confused here.
>
> Regards,
>
> John
>
I finally got Apache-2.4.2 running stably with PHP but to do so it was
necessary to back off to level PHP 5.3.6 since this is the last version that
seems to have had PCRE bundled with it.

PHP compiles with external PCRE (8.30) that I did PHP 5.3.9 and PHP 5.3.10
ended with errors due to missing entry points in PCRE, and PHP 5.4.0 ALWAYS
segfaults in Apache 2.4.x.

So, an undesirable workaround, but at least we are back on the air!


> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe [at] httpd
> For additional commands, e-mail: users-help [at] httpd

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


noel.butler at ausics

Apr 24, 2012, 4:26 AM

Post #11 of 12 (919 views)
Permalink
Re: PHP doesn't process pages [In reply to]

On Sun, 2012-04-22 at 20:42 -0400, John Iliffe wrote:


> Hi Noel:
>
> At the risk of becoming a real pest, can you tell me what version of PCRE
> you used? I installed PCRE-8.30 and PHP 5.3.10 will not compile with it.
> PHP-5.4.0 was OK but with PHP-5.3.10 I get
>


It does seem horribly broken, I use the PCRE version with Slackware,
8.02 from 2010, not that badm they seem to have massive jumps in
version numbers...strange.. but each to their own, I tried building php
with 5.3.10 and yes, it failed, I have no idea what they've done, but
left hand doesnt know what the rights doing, and neither seem to know
what the connecting limbs or upper torso are doing, seems a right mess.
When I build 5.3.10, checking the configure history, indicated bundled,
so ar you sure they have removed it?

Problem with 5.4.0, is, its still so green, its not in wide enough use
to be called "stable", but thats just my personal opinion


> /tmp/php-5.3.10/ext/pcre/php_pcre.c:258: undefined reference to `pcre_info'
> collect2: ld returned 1 exit status
> make: *** [sapi/cli/php] Error 1
>
Attachments: signature.asc (0.48 KB)


noel.butler at ausics

Apr 24, 2012, 4:29 AM

Post #12 of 12 (925 views)
Permalink
Re: PHP doesn't process pages [In reply to]

On Sun, 2012-04-22 at 21:00 -0400, John Iliffe wrote:

> O
> - the <FilesMatch> bit came from the PHP installation on the default Apache
> config file. I don't think I coded it, but at this point I can't be sure.
>



That's strange, I only ever do source builds, because no package
maintainer can build packages for every scenario, and I've never seen
php ad that, it will however always add AddType, and module section,
but, IIRC , only adds the module section if a pre existing module entry
exists
Attachments: signature.asc (0.48 KB)

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.