New Nagios UI Released!

Andreas Ericsson ae at op5.se
Sat Aug 13 11:47:37 CEST 2005


Taylor Dondich wrote:
> I've never seen the AddHandler php5-script .php directive when configuring php.
> 

AddHandler is used for running PHP as CGI's

> I use:
> 
> AddType application/x-httpd-php .php
> 

This is with the module embedded. The LoadModule statement suggests this 
is what Chris should use.

> On 8/12/05, chris hammond <chris at tac.esi.net> wrote:
> 
>>I believe that is set correctly.  Here is my php.conf;
>>
>>#
>># PHP is an HTML-embedded scripting language which attempts to make it
>># easy for developers to write dynamically generated webpages.
>>#
>>
>>LoadModule php5_module modules/libphp5.so
>>
>>#
>># Cause the PHP interpreter to handle files with a .php extension.
>>#
>>AddHandler php5-script .php
>>AddType text/html .php
>>
>>#
>># Add index.php to the list of files that will be served as directory
>># indexes.
>>#
>>DirectoryIndex index.php
>>
>>#
>># Uncomment the following line to allow PHP to pretty-print .phps
>># files as PHP source code:
>>#
>>#AddType application/x-httpd-php-source .phps
>>
>>
>>
>>
>>>>>John Mark Walker <jmwalker at itgroundwork.com> 08/12/05 1:50 pm >>>
>>
>>On Friday 12 August 2005 10:36 am, chris hammond wrote:
>>
>>>I am trying to setup a sever with foundation and sv but when I try to
>>>bring up sv, all I see is the php code.  I have checked everything but
>>>can't seem find out why it wont show properly.  php5_module is loading
>>>when apache starts and I have restarted apache after changes.  The
>>>only error showing up in error_log is that there is no favicon.ico
>>>in /var/www/html.  Any ideas where else I should look?
>>>
>>
>>The first thing I would check is to make sure that you have PHP enabled
>>for the right file type. Apache checks the file extension to determine
>>how to parse it. I've made the mistake all too often of having PHP code
>>inside a file with a .html extension without defining PHP for that
>>extension. Are you running Apache 2.x or 1.3? Each has a different way
>>of defining interpreters for file extensions.
>>
>>-JM
>>
>>
>>-------------------------------------------------------
>>SF.Net email is Sponsored by the Better Software Conference & EXPO
>>September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
>>Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
>>Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
>>_______________________________________________
>>Nagios-users mailing list
>>Nagios-users at lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/nagios-users
>>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
>>::: Messages without supporting info will risk being sent to /dev/null
>>
> 
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list