You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "motty.cruz" <mo...@gmail.com> on 2012/05/21 17:26:35 UTC
[users@httpd] Apache22 + PHP 54
Hello, I'm having issues configuring Apache22 & PHP54.
I'm running FreeBSD 8.2
Apache22
Php54
php5-extensions-1.7 A "meta-port" to install PHP extensions
I have default httpd.conf have not make any changes.
When I got to my server 192.168.1.6
I get Index Of / but my web file.
<IfModule dir_module>
DirectoryIndex index.html index.php5 </IfModule>
If I click on index.php, it shows text page.
Please help!
Thanks,
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
RE: [users@httpd] Apache22 + PHP 54
Posted by "motty.cruz" <mo...@gmail.com>.
Thanks John,
My server is a Virtual Machine, I rebuilt it install everything from ports
and now is working fine.
Thanks,
Motty
-----Original Message-----
From: John Iliffe [mailto:john.iliffe@iliffe.ca]
Sent: Tuesday, May 22, 2012 8:11 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache22 + PHP 54
On Monday 21 May 2012 13:16:35 Yehuda Katz wrote:
> On Mon, May 21, 2012 at 11:55 AM, motty.cruz <mo...@gmail.com>
wrote:
> > **
> > when i take 5 out i get server error, but httpd-error.log does not
> > tell me nothing actually it does not report any errors on the log.
> > i'm confuse. I have a similar server running Apache22 and PHP52, if
> > I installed Apache22 and PHP52 on this new server it works perfectly
> > fine, but when I installed php54 i get this server error. any
> > suggestions?
>
> It could be a PHP error (if you have display_errors off and log_errors
> off, then you will get a 500 error in your browser and nothing in the
> error log). You need to post more of your config. Specifically, you
> are looking for lines similar to:
> <FilesMatch \.php$> OR <FilesMatch \.php5$> SetHandler
> application/x-httpd-php </FilesMatch>
This sounds similar but not the same as a problem I incurred in April when
using PHP 5.4.0 on Apache 2.4.1.
See if your child processes segfault every time a PHP script is called. If
so, the raw (text/html) for the script is sent to the client. The solution
is to use one of the previous (5.3.x) versions of PHP.
John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2176 / Virus Database: 2425/5014 - Release Date: 05/21/12
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache22 + PHP 54
Posted by John Iliffe <jo...@iliffe.ca>.
On Monday 21 May 2012 13:16:35 Yehuda Katz wrote:
> On Mon, May 21, 2012 at 11:55 AM, motty.cruz <mo...@gmail.com>
wrote:
> > **
> > when i take 5 out i get server error, but httpd-error.log does not
> > tell me nothing actually it does not report any errors on the log.
> > i'm confuse. I have a similar server running Apache22 and PHP52, if I
> > installed Apache22 and PHP52 on this new server it works perfectly
> > fine, but when I installed php54 i get this server error. any
> > suggestions?
>
> It could be a PHP error (if you have display_errors off and log_errors
> off, then you will get a 500 error in your browser and nothing in the
> error log). You need to post more of your config. Specifically, you are
> looking for lines similar to:
> <FilesMatch \.php$> OR <FilesMatch \.php5$>
> SetHandler application/x-httpd-php
> </FilesMatch>
This sounds similar but not the same as a problem I incurred in April when
using PHP 5.4.0 on Apache 2.4.1.
See if your child processes segfault every time a PHP script is called. If
so, the raw (text/html) for the script is sent to the client. The solution
is to use one of the previous (5.3.x) versions of PHP.
John
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Apache22 + PHP 54
Posted by Yehuda Katz <ye...@ymkatz.net>.
On Mon, May 21, 2012 at 11:55 AM, motty.cruz <mo...@gmail.com> wrote:
> **
> when i take 5 out i get server error, but httpd-error.log does not tell me
> nothing actually it does not report any errors on the log.
> i'm confuse. I have a similar server running Apache22 and PHP52, if I
> installed Apache22 and PHP52 on this new server it works perfectly fine,
> but when I installed php54 i get this server error. any suggestions?
>
It could be a PHP error (if you have display_errors off and log_errors off,
then you will get a 500 error in your browser and nothing in the error log).
You need to post more of your config. Specifically, you are looking for
lines similar to:
<FilesMatch \.php$> OR <FilesMatch \.php5$>
SetHandler application/x-httpd-php
</FilesMatch>
RE: [users@httpd] Apache22 + PHP 54
Posted by "motty.cruz" <mo...@gmail.com>.
Thanks Yehuda,
when i take 5 out i get server error, but httpd-error.log does not tell me
nothing actually it does not report any errors on the log.
i'm confuse. I have a similar server running Apache22 and PHP52, if I
installed Apache22 and PHP52 on this new server it works perfectly fine, but
when I installed php54 i get this server error. any suggestions?
Thanks,
_____
From: Yehuda Katz [mailto:yehuda@ymkatz.net]
Sent: Monday, May 21, 2012 8:30 AM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Apache22 + PHP 54
On Mon, May 21, 2012 at 11:26 AM, motty.cruz <mo...@gmail.com> wrote:
I get Index Of / but my web file.
<IfModule dir_module>
DirectoryIndex index.html index.php5 </IfModule>
If I click on index.php, it shows text page.
Your DirectoryIndex says to load a file named index.php5 .
If you name your file that way, it will load.
You might want to take the 5 off the extension in the DirectoryIndex.
- Y
_____
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2176 / Virus Database: 2425/5013 - Release Date: 05/21/12
Re: [users@httpd] Apache22 + PHP 54
Posted by Yehuda Katz <ye...@ymkatz.net>.
On Mon, May 21, 2012 at 11:26 AM, motty.cruz <mo...@gmail.com> wrote:
> I get Index Of / but my web file.
>
> <IfModule dir_module>
> DirectoryIndex index.html index.php5 </IfModule>
>
> If I click on index.php, it shows text page.
>
Your DirectoryIndex says to load a file named index.php5 .
If you name your file that way, it will load.
You might want to take the 5 off the extension in the DirectoryIndex.
- Y