Re: [users@httpd] Re: Apache 2.4 PHP 5.5

2014-08-07 Thread Edgar Pettijohn
Of course we don't know what if anything you are attempting to use to
serve php content because you have not supplied your configuration file.

On 08/07/2014 09:20 AM, Francois Gingras wrote:
> D'arcy,
>
> Those are actually erroneous responses.
>
> You do not need mod_php to serve php content; that's the legacy
> approach. Also, AddType should never be used for dynamic content. The
> purpose of that directive is to change the content type for static files.
>
> Nowadays, you can use fcgi and even php-fpm as a fcgi backend, and
> those solutions perform far better.
>
> Please see http://wiki.apache.org/httpd/php for recipes on the various
> configuration options.
>
>
>
> On Thu, Aug 7, 2014 at 9:59 AM, D'Arcy J.M. Cain  > wrote:
>
> On Thu, 7 Aug 2014 06:42:31 -0700
> motty cruz mailto:motty.c...@gmail.com>> wrote:
> > I am not getting anything similar to the example you have, I get a
> > blank page, (using chrome) then I get "file download"
>
> Sounds like one of three things.
>
> 1. You have not built the PHP Apache module.  How to do this
> depends on
> the system that you are using.
>
> 2. You have built but have not installed the PHP Apache module.  Run
> httpd with the -M option (as well as any other options that you
> normally use) to see if this is the case.  Search for LoadModule for
> instructions on loading it.
>
> 2.  If the module is loaded then you may not have added php file
> types.  Search for AddType if that is the case.
>
> --
> D'Arcy J.M. Cain
> System Administrator, Vex.Net
> http://www.Vex.Net/ IM:da...@vex.net
> VoIP: sip:da...@vex.net
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> 
> For additional commands, e-mail: users-h...@httpd.apache.org
> 
>
>



Re: [users@httpd] Re: Apache 2.4 PHP 5.5

2014-08-07 Thread Francois Gingras
D'arcy,

Those are actually erroneous responses.

You do not need mod_php to serve php content; that's the legacy approach.
Also, AddType should never be used for dynamic content. The purpose of that
directive is to change the content type for static files.

Nowadays, you can use fcgi and even php-fpm as a fcgi backend, and those
solutions perform far better.

Please see http://wiki.apache.org/httpd/php for recipes on the various
configuration options.



On Thu, Aug 7, 2014 at 9:59 AM, D'Arcy J.M. Cain  wrote:

> On Thu, 7 Aug 2014 06:42:31 -0700
> motty cruz  wrote:
> > I am not getting anything similar to the example you have, I get a
> > blank page, (using chrome) then I get "file download"
>
> Sounds like one of three things.
>
> 1. You have not built the PHP Apache module.  How to do this depends on
> the system that you are using.
>
> 2. You have built but have not installed the PHP Apache module.  Run
> httpd with the -M option (as well as any other options that you
> normally use) to see if this is the case.  Search for LoadModule for
> instructions on loading it.
>
> 2.  If the module is loaded then you may not have added php file
> types.  Search for AddType if that is the case.
>
> --
> D'Arcy J.M. Cain
> System Administrator, Vex.Net
> http://www.Vex.Net/ IM:da...@vex.net
> VoIP: sip:da...@vex.net
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] Re: Apache 2.4 PHP 5.5

2014-08-07 Thread D'Arcy J.M. Cain
On Thu, 7 Aug 2014 06:42:31 -0700
motty cruz  wrote:
> I am not getting anything similar to the example you have, I get a
> blank page, (using chrome) then I get "file download"

Sounds like one of three things.

1. You have not built the PHP Apache module.  How to do this depends on
the system that you are using.

2. You have built but have not installed the PHP Apache module.  Run
httpd with the -M option (as well as any other options that you
normally use) to see if this is the case.  Search for LoadModule for
instructions on loading it.

2.  If the module is loaded then you may not have added php file
types.  Search for AddType if that is the case.

-- 
D'Arcy J.M. Cain
System Administrator, Vex.Net
http://www.Vex.Net/ IM:da...@vex.net
VoIP: sip:da...@vex.net

-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] Re: Apache 2.4 PHP 5.5

2014-08-07 Thread motty cruz
Thanks Good Guy,

I am not getting anything similar to the example you have, I get a blank
page, (using chrome) then I get "file download"

Thanks,



On Wed, Aug 6, 2014 at 5:38 PM, Good Guy  wrote:

>  On 06/08/2014 21:38, motty cruz wrote:
>
> Thanks, I created index.php with the following:
> phpinfo();
> ?>
>
>  when I go to localhost, it download file.
>
>  I don't get an error,
>
>
>
>
> Well I don't know what it means "it download file" because that small file
> is not supposed to download anything but it should show something like this:
>
> [image: PhP-Info]
> 
>
> Do you get anything like this?  If so then PHP module is working but it
> might need some tinkering if something doesn't work.
>
>
>