Re: PHP doesn't process pages

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
> For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux