Web.py + FastCGI + Lighttpd?

So, I'm trying to make an extremely simple page that simply says "Hello World!" with fastcgi, web.py, etc. as I'm trying desperately to migrate from openshift to linode due to speed constraints, etc.
I have a working python application, but currently I can't even get simple pages to run. So given this example...
/etc/lighttpd/lighttpd.conf
include "conf.d/cgi.conf"
include "conf.d/fastcgi.conf"
server.port = 80
server.username = "http"
server.groupname = "http"
server.document-root = "/srv/http"
server.errorlog = "/var/log/lighttpd/error.log"
dir-listing.activate = "enable"
#index-file.names = ( "index.html" )
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".css" => "text/css",
".js" => "application/x-javascript",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".gif" => "image/gif",
".png" => "image/png",
"" => "application/octet-stream"
/etc/lighttpd/conf.d/cgi.conf
server.modules += ( "mod_cgi" )
cgi.assign = ( ".pl" => "/usr/bin/perl",
".cgi" => "/usr/bin/perl",
".rb" => "/usr/bin/ruby",
".erb" => "/usr/bin/eruby",
".py" => "/usr/bin/python",
".php" => "/usr/bin/php-cgi" )
index-file.names += ( "index.pl", "default.pl",
"index.rb", "default.rb",
"index.erb", "default.erb",
"index.py", "default.py",
"index.php", "default.php" )
/etc/lighttpd/conf.d/fastcgi.conf
server.modules += ( "mod_fastcgi" )
fastcgi.server = (
".py" =>
"python-fcgi" =>
"socket" => "/run/lighttpd/fastcgi.python.socket",
"bin-path" => "test.py",
"check-local" => "disable",
"max-procs" => 1,
/srv/http/test.py
import web
urls = ("/.*", "hello")
app = web.application(urls, globals())
class hello:
def GET(self):
return 'Hello, world!'
if __name__ == "__main__":
app.run()
Why am I currently getting an error starting lighttpd saying:
2014-08-04 15:53:47: (log.c.164) server started
2014-08-04 15:53:47: (mod_fastcgi.c.1112) the fastcgi-backend test.py failed to start:
2014-08-04 15:53:47: (mod_fastcgi.c.1116) child exited with status 2 test.py
2014-08-04 15:53:47: (mod_fastcgi.c.1119) If you're trying to run your app as a FastCGI backend, make sure you're using the FastCGI-enabled version.
If this is PHP on Gentoo, add 'fastcgi' to the USE flags.
2014-08-04 15:53:47: (mod_fastcgi.c.1406) [ERROR]: spawning fcgi failed.
2014-08-04 15:53:47: (server.c.1022) Configuration of plugins failed. Going down

Okay, so for what it's worth I have a working Hello World now. I don't really get what I was doing wrong, but here are the config files of the working version.
I haven't found many simple lighttpd+web.py+fastcgi examples out there, so hopefully this is useful for someone... This is for Arch on linode.
/etc/lighttpd/lighttpd.conf
#include "conf.d/cgi.conf"
include "conf.d/fastcgi.conf"
server.modules = (
"mod_access",
"mod_fastcgi",
"mod_alias",
"mod_rewrite",
"mod_accesslog",
"mod_compress",
server.port = 80
server.username = "http"
server.groupname = "http"
server.document-root = "/srv/http"
server.errorlog = "/var/log/lighttpd/error.log"
dir-listing.activate = "enable"
#index-file.names = ( "index.html" )
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".css" => "text/css",
".js" => "application/x-javascript",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".gif" => "image/gif",
".png" => "image/png",
"" => "application/octet-stream"
/etc/lighttpd/conf.d/fastcgi.conf
fastcgi.server = ( "/" =>
"socket" => "/tmp/fastcgi.socket",
"bin-path" => "/srv/http/index.py",
"max-procs" => 1,
"bin-environment" => (
"REAL_SCRIPT_NAME" => ""
"check-local" => "disable"
index.py:
#!/usr/bin/python2.7
import web
urls = ("/", "hello",
"/pies", "hello2")
app = web.application(urls, globals())
class hello:
def GET(self):
return 'Hello, world!'
class hello2:
def GET(self):
return 'Hello, world AGAIN!'
if __name__ == "__main__":
app.run()
/etc/lighttpd/conf.d/cgi.conf (though this shouldn't matter as it is commented out, presented for completion as plain CGI works as well...)
server.modules += ( "mod_cgi" )
cgi.assign = ( ".pl" => "/usr/bin/perl",
".cgi" => "/usr/bin/perl",
".rb" => "/usr/bin/ruby",
".erb" => "/usr/bin/eruby",
".py" => "/usr/bin/python",
".php" => "/usr/bin/php-cgi" )
index-file.names += ( "index.pl", "default.pl",
"index.rb", "default.rb",
"index.erb", "default.erb",
"index.py", "default.py",
"index.php", "default.php" )

Similar Messages

  • How to enable fastcgi on sun one web server 6.1 SP6

    Hi, all
    I fail to install fastcgi on sun one web server 6.1 SP6. When i access php page, the following errors are displayed in error log.
    [18/Oct/2006:14:08:45] failure (21781): for host x.x.x.x trying to GET /chkwww.php, responder-fastcgi reports: FCGI1062: Stat failure
    [18/Oct/2006:14:08:45] failure (21781): for host x.x.x.x trying to GET /chkwww.php, responder-fastcgi reports: FCGI1073: Unable to service the request even after trying 0 times
    The following is the environment:
    Web Server path: /i03_01/SUNWebSP6
    PHP 4.4.2 installation path: /i03_01/php-fcgi
    PHP library path: /i03_01/php-lib
    PHP configuration: ./configure prefix=/i03_01/php-fcgi enable-fastcgi with-mysql=/i03_01/tmp/mysql-standard-4.1.12-sun-solaris2.8-sparc enable-mbstring=all enable-mbregex enable-exif with-gd with-png-dir=/i03_01/php-lib with-zlib-dir=/i03_01/php-lib with-jpeg-dir=/i03_01/php-lib with-t1lib=/i03_01/php-lib with-freetype-dir=/i03_01/php-lib
    libfastcgi.so path: /i03_01/SUNWebSP6/bin
    The following is my configuration:
    In mime.types, add this line at the bottom:
    type=magnus-internal/fastcgi exts=php,php3,php4
    In magnus.conf, add this line at the bottom:
    Init fn=load-modules shlib="/i03_01/SUNWebSP6/bin/libfastcgi.so"
    In obj.conf, add these lines at the top.
    <Object name="default">
    Service type="magnus-internal/fastcgi"
    fn="responder-fastcgi"
    app-path="/i03_01/php-fcgi/bin/php"
    min-procs="1"
    app-env="PHP_FCGI_CHILDREN=1"
    app-env="PHP_FCGI_MAX_REQUEST=200"
    app-env="PHPRC=/i03_01/SUNWebSP6/https-www/config"
    </Object>
    Anyone can help me? Thanks.
    Message was edited by:
    polyuitjerry

    Stat failure is caused when either Fastcgistub or app-path is not accessible.
    Is "Fastcgistub" executable too in /i03_01/SUNWebSP6/bin directory ? If not, then copy it to that directory. Make sure it has exec permission.
    Do you see Fastcgistub process ? If yes, then check the app-path (/i03_01/php-fcgi/bin/php). Is it accessible ?
    And also, check "Fastcgistub.log" file under <webserver-temp-dir> directory for any error msgs.

  • Need help on lighttpd + php + fastcgi

    I am having one terrible time trying to get the above configured.  Every time I access a .php script I get a "No input file specified" error.  Pulling up .html pages works fine... just not .php.
    The following are installed:
    php 5.2.4-1, lighttpd 1.4.18-1, fcgi 2.4.0-2
    And here is the relevent section of the /etc/lighttpd/lighttpd.conf file:
    server.modules              = (
                                    "mod_rewrite",
                                    "mod_redirect",
                                    "mod_access",
                                    "mod_fastcgi",
                                    "mod_proxy",
                                    "mod_simple_vhost",
                                    "mod_compress",
                                    "mod_accesslog" )
    server.document-root        = "/data/srv/www/"
    static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
    simple-vhost.server-root   = "/data/srv/www/vhosts/"
    simple-vhost.default-host  = "ncc1701a.test.adtran.com"
    simple-vhost.document-root = "/"
    $HTTP["host"] == "ncc1701a.test.xxxxx.com" {
      server.document-root = "/data/srv/www/vhosts/ncc1701a.test.xxxxx.com/"
    server.username             = "lighttpd"
    server.groupname           = "lighttpd"
    fastcgi.server             = ( ".php" =>
                                   ( "localhost" =>
                                       "socket" => "/tmp/php-fastcgi.socket",
                                       "bin-path" => "/usr/bin/php-cgi",
    fastcgi.debug = 1
    All the logs look good (I think)... just cannot get this to work.  If have spent the past six hours reading Google and cannot find anything.  Anyone have any answers?

    Well after about three days of tinkering I finally fixed the problem...
    My original /etc/php.ini did not have the "open_basedir" set... so it was not used.  But when I upgraded the php the new php.ini had a value in it.  Of course that value did not included the path to my scripts... so I added the path to my scripts as follows:
    open_basedir = /data/srv/www/:/tmp/:/usr/share/pear/
    And now everything works fine.

  • Installing fastcgi support for php on Sun Java Web Server 6.1

    Can anyone help outline the processes i need to take to configure the web server 6.1 to process .php

    Take a look at the following article.
    http://developers.sun.com/webserver/reference/techart/php2.html

  • Lighttpd not showing graphics/layout. Any idea?

    Hi there!
    I finally managed to get the whole lighttpd,php,sqlite,fast_cgi Thing going on the dockstar (archlinuxarm).
    I wanted to use a Blogging software like "flatpress" or "chyrp" but I ran into some issue.
    On both of these Sites (index.php from flatpress and chyrp) I do not have any graphics/style and layout. It shows only the Page with the basic text and links but no style/theme/graphics.
    Does anyone know how to get the styles/graphics and layout working.
    I have made a chmod -R 777 on those folders of chyrp and also flatpress but this does not change anything regardnig  the issue.
    Following some Informations which could help to determine the issue:
    php-v
    php -v
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/sqlite.so' - /usr/lib/php/modules/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP 5.4.8 (cli) (built: Oct 21 2012 05:22:39)
    Copyright (c) 1997-2012 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    php-cgi --version
    PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/sqlite.so' - /usr/lib/php/modules/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP 5.4.8 (cgi-fcgi) (built: Oct 21 2012 05:25:27)
    Copyright (c) 1997-2012 The PHP Group
    Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
    /etc/php/php.ini
    [PHP]
    ; About php.ini ;
    ; PHP's initialization file, generally called php.ini, is responsible for
    ; configuring many of the aspects of PHP's behavior.
    ; PHP attempts to find and load this configuration from a number of locations.
    ; The following is a summary of its search order:
    ; 1. SAPI module specific location.
    ; 2. The PHPRC environment variable. (As of PHP 5.2.0)
    ; 3. A number of predefined registry keys on Windows (As of PHP 5.2.0)
    ; 4. Current working directory (except CLI)
    ; 5. The web server's directory (for SAPI modules), or directory of PHP
    ; (otherwise in Windows)
    ; 6. The directory from the --with-config-file-path compile time option, or the
    ; Windows directory (C:\windows or C:\winnt)
    ; See the PHP docs for more specific information.
    ; http://php.net/configuration.file
    ; The syntax of the file is extremely simple. Whitespace and lines
    ; beginning with a semicolon are silently ignored (as you probably guessed).
    ; Section headers (e.g. [Foo]) are also silently ignored, even though
    ; they might mean something in the future.
    ; Directives following the section heading [PATH=/www/mysite] only
    ; apply to PHP files in the /www/mysite directory. Directives
    ; following the section heading [HOST=www.example.com] only apply to
    ; PHP files served from www.example.com. Directives set in these
    ; special sections cannot be overridden by user-defined INI files or
    ; at runtime. Currently, [PATH=] and [HOST=] sections only work under
    ; CGI/FastCGI.
    ; http://php.net/ini.sections
    ; Directives are specified using the following syntax:
    ; directive = value
    ; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
    ; Directives are variables used to configure PHP or PHP extensions.
    ; There is no name validation. If PHP can't find an expected
    ; directive because it is not set or is mistyped, a default value will be used.
    ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
    ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
    ; (e.g. E_ALL & ~E_NOTICE), a quoted string ("bar"), or a reference to a
    ; previously set variable or directive (e.g. ${foo})
    ; Expressions in the INI file are limited to bitwise operators and parentheses:
    ; | bitwise OR
    ; ^ bitwise XOR
    ; & bitwise AND
    ; ~ bitwise NOT
    ; ! boolean NOT
    ; Boolean flags can be turned on using the values 1, On, True or Yes.
    ; They can be turned off using the values 0, Off, False or No.
    ; An empty string can be denoted by simply not writing anything after the equal
    ; sign, or by using the None keyword:
    ; foo = ; sets foo to an empty string
    ; foo = None ; sets foo to an empty string
    ; foo = "None" ; sets foo to the string 'None'
    ; If you use constants in your value, and these constants belong to a
    ; dynamically loaded extension (either a PHP extension or a Zend extension),
    ; you may only use these constants *after* the line that loads the extension.
    ; About this file ;
    ; PHP comes packaged with two INI files. One that is recommended to be used
    ; in production environments and one that is recommended to be used in
    ; development environments.
    ; php.ini-production contains settings which hold security, performance and
    ; best practices at its core. But please be aware, these settings may break
    ; compatibility with older or less security conscience applications. We
    ; recommending using the production ini in production and testing environments.
    ; php.ini-development is very similar to its production variant, except it's
    ; much more verbose when it comes to errors. We recommending using the
    ; development version only in development environments as errors shown to
    ; application users can inadvertently leak otherwise secure information.
    ; Quick Reference ;
    ; The following are all the settings which are different in either the production
    ; or development versions of the INIs with respect to PHP's default behavior.
    ; Please see the actual settings later in the document for more details as to why
    ; we recommend these changes in PHP's behavior.
    ; display_errors
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off
    ; display_startup_errors
    ; Default Value: Off
    ; Development Value: On
    ; Production Value: Off
    ; error_reporting
    ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
    ; Development Value: E_ALL
    ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
    ; html_errors
    ; Default Value: On
    ; Development Value: On
    ; Production value: On
    ; log_errors
    ; Default Value: Off
    ; Development Value: On
    ; Production Value: On
    ; max_input_time
    ; Default Value: -1 (Unlimited)
    ; Development Value: 60 (60 seconds)
    ; Production Value: 60 (60 seconds)
    ; output_buffering
    ; Default Value: Off
    ; Development Value: 4096
    ; Production Value: 4096
    ; register_argc_argv
    ; Default Value: On
    ; Development Value: Off
    ; Production Value: Off
    ; request_order
    ; Default Value: None
    ; Development Value: "GP"
    ; Production Value: "GP"
    ; session.bug_compat_42
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off
    ; session.bug_compat_warn
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off
    ; session.gc_divisor
    ; Default Value: 100
    ; Development Value: 1000
    ; Production Value: 1000
    ; session.hash_bits_per_character
    ; Default Value: 4
    ; Development Value: 5
    ; Production Value: 5
    ; short_open_tag
    ; Default Value: On
    ; Development Value: Off
    ; Production Value: Off
    ; track_errors
    ; Default Value: Off
    ; Development Value: On
    ; Production Value: Off
    ; url_rewriter.tags
    ; Default Value: "a=href,area=href,frame=src,form=,fieldset="
    ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
    ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
    ; variables_order
    ; Default Value: "EGPCS"
    ; Development Value: "GPCS"
    ; Production Value: "GPCS"
    ; php.ini Options ;
    ; Name for user-defined php.ini (.htaccess) files. Default is ".user.ini"
    ;user_ini.filename = ".user.ini"
    ; To disable this feature set this option to empty value
    ;user_ini.filename =
    ; TTL for user-defined php.ini files (time-to-live) in seconds. Default is 300 seconds (5 minutes)
    ;user_ini.cache_ttl = 300
    ; Language Options ;
    ; Enable the PHP scripting language engine under Apache.
    ; http://php.net/engine
    engine = On
    ; This directive determines whether or not PHP will recognize code between
    ; <? and ?> tags as PHP source which should be processed as such. It's been
    ; recommended for several years that you not use the short tag "short cut" and
    ; instead to use the full <?php and ?> tag combination. With the wide spread use
    ; of XML and use of these tags by other languages, the server can become easily
    ; confused and end up parsing the wrong code in the wrong context. But because
    ; this short cut has been a feature for such a long time, it's currently still
    ; supported for backwards compatibility, but we recommend you don't use them.
    ; Default Value: On
    ; Development Value: Off
    ; Production Value: Off
    ; http://php.net/short-open-tag
    short_open_tag = Off
    ; Allow ASP-style <% %> tags.
    ; http://php.net/asp-tags
    asp_tags = Off
    ; The number of significant digits displayed in floating point numbers.
    ; http://php.net/precision
    precision = 14
    ; Output buffering is a mechanism for controlling how much output data
    ; (excluding headers and cookies) PHP should keep internally before pushing that
    ; data to the client. If your application's output exceeds this setting, PHP
    ; will send that data in chunks of roughly the size you specify.
    ; Turning on this setting and managing its maximum buffer size can yield some
    ; interesting side-effects depending on your application and web server.
    ; You may be able to send headers and cookies after you've already sent output
    ; through print or echo. You also may see performance benefits if your server is
    ; emitting less packets due to buffered output versus PHP streaming the output
    ; as it gets it. On production servers, 4096 bytes is a good setting for performance
    ; reasons.
    ; Note: Output buffering can also be controlled via Output Buffering Control
    ; functions.
    ; Possible Values:
    ; On = Enabled and buffer is unlimited. (Use with caution)
    ; Off = Disabled
    ; Integer = Enables the buffer and sets its maximum size in bytes.
    ; Note: This directive is hardcoded to Off for the CLI SAPI
    ; Default Value: Off
    ; Development Value: 4096
    ; Production Value: 4096
    ; http://php.net/output-buffering
    output_buffering = 4096
    ; You can redirect all of the output of your scripts to a function. For
    ; example, if you set output_handler to "mb_output_handler", character
    ; encoding will be transparently converted to the specified encoding.
    ; Setting any output handler automatically turns on output buffering.
    ; Note: People who wrote portable scripts should not depend on this ini
    ; directive. Instead, explicitly set the output handler using ob_start().
    ; Using this ini directive may cause problems unless you know what script
    ; is doing.
    ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
    ; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
    ; Note: output_handler must be empty if this is set 'On' !!!!
    ; Instead you must use zlib.output_handler.
    ; http://php.net/output-handler
    ;output_handler =
    ; Transparent output compression using the zlib library
    ; Valid values for this option are 'off', 'on', or a specific buffer size
    ; to be used for compression (default is 4KB)
    ; Note: Resulting chunk size may vary due to nature of compression. PHP
    ; outputs chunks that are few hundreds bytes each as a result of
    ; compression. If you prefer a larger chunk size for better
    ; performance, enable output_buffering in addition.
    ; Note: You need to use zlib.output_handler instead of the standard
    ; output_handler, or otherwise the output will be corrupted.
    ; http://php.net/zlib.output-compression
    zlib.output_compression = Off
    ; http://php.net/zlib.output-compression-level
    ;zlib.output_compression_level = -1
    ; You cannot specify additional output handlers if zlib.output_compression
    ; is activated here. This setting does the same as output_handler but in
    ; a different order.
    ; http://php.net/zlib.output-handler
    ;zlib.output_handler =
    ; Implicit flush tells PHP to tell the output layer to flush itself
    ; automatically after every output block. This is equivalent to calling the
    ; PHP function flush() after each and every call to print() or echo() and each
    ; and every HTML block. Turning this option on has serious performance
    ; implications and is generally recommended for debugging purposes only.
    ; http://php.net/implicit-flush
    ; Note: This directive is hardcoded to On for the CLI SAPI
    implicit_flush = Off
    ; The unserialize callback function will be called (with the undefined class'
    ; name as parameter), if the unserializer finds an undefined class
    ; which should be instantiated. A warning appears if the specified function is
    ; not defined, or if the function doesn't include/implement the missing class.
    ; So only set this entry, if you really want to implement such a
    ; callback-function.
    unserialize_callback_func =
    ; When floats & doubles are serialized store serialize_precision significant
    ; digits after the floating point. The default value ensures that when floats
    ; are decoded with unserialize, the data will remain the same.
    serialize_precision = 17
    ; open_basedir, if set, limits all file operations to the defined directory
    ; and below. This directive makes most sense if used in a per-directory
    ; or per-virtualhost web server configuration file. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    ; http://php.net/open-basedir
    open_basedir = /srv/http/:/home/:/tmp/:/usr/share/pear/
    ; This directive allows you to disable certain functions for security reasons.
    ; It receives a comma-delimited list of function names. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    ; http://php.net/disable-functions
    disable_functions =
    ; This directive allows you to disable certain classes for security reasons.
    ; It receives a comma-delimited list of class names. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    ; http://php.net/disable-classes
    disable_classes =
    ; Colors for Syntax Highlighting mode. Anything that's acceptable in
    ; <span style="color: ???????"> would work.
    ; http://php.net/syntax-highlighting
    ;highlight.string = #DD0000
    ;highlight.comment = #FF9900
    ;highlight.keyword = #007700
    ;highlight.default = #0000BB
    ;highlight.html = #000000
    ; If enabled, the request will be allowed to complete even if the user aborts
    ; the request. Consider enabling it if executing long requests, which may end up
    ; being interrupted by the user or a browser timing out. PHP's default behavior
    ; is to disable this feature.
    ; http://php.net/ignore-user-abort
    ;ignore_user_abort = On
    ; Determines the size of the realpath cache to be used by PHP. This value should
    ; be increased on systems where PHP opens many files to reflect the quantity of
    ; the file operations performed.
    ; http://php.net/realpath-cache-size
    ;realpath_cache_size = 16k
    ; Duration of time, in seconds for which to cache realpath information for a given
    ; file or directory. For systems with rarely changing files, consider increasing this
    ; value.
    ; http://php.net/realpath-cache-ttl
    ;realpath_cache_ttl = 120
    ; Enables or disables the circular reference collector.
    ; http://php.net/zend.enable-gc
    zend.enable_gc = On
    ; If enabled, scripts may be written in encodings that are incompatible with
    ; the scanner. CP936, Big5, CP949 and Shift_JIS are the examples of such
    ; encodings. To use this feature, mbstring extension must be enabled.
    ; Default: Off
    ;zend.multibyte = Off
    ; Allows to set the default encoding for the scripts. This value will be used
    ; unless "declare(encoding=...)" directive appears at the top of the script.
    ; Only affects if zend.multibyte is set.
    ; Default: ""
    ;zend.script_encoding =
    ; Miscellaneous ;
    ; Decides whether PHP may expose the fact that it is installed on the server
    ; (e.g. by adding its signature to the Web server header). It is no security
    ; threat in any way, but it makes it possible to determine whether you use PHP
    ; on your server or not.
    ; http://php.net/expose-php
    expose_php = On
    ; Resource Limits ;
    ; Maximum execution time of each script, in seconds
    ; http://php.net/max-execution-time
    ; Note: This directive is hardcoded to 0 for the CLI SAPI
    max_execution_time = 30
    ; Maximum amount of time each script may spend parsing request data. It's a good
    ; idea to limit this time on productions servers in order to eliminate unexpectedly
    ; long running scripts.
    ; Note: This directive is hardcoded to -1 for the CLI SAPI
    ; Default Value: -1 (Unlimited)
    ; Development Value: 60 (60 seconds)
    ; Production Value: 60 (60 seconds)
    ; http://php.net/max-input-time
    max_input_time = 60
    ; Maximum input variable nesting level
    ; http://php.net/max-input-nesting-level
    ;max_input_nesting_level = 64
    ; How many GET/POST/COOKIE input variables may be accepted
    ; max_input_vars = 1000
    ; Maximum amount of memory a script may consume (128MB)
    ; http://php.net/memory-limit
    memory_limit = 128M
    ; Error handling and logging ;
    ; This directive informs PHP of which errors, warnings and notices you would like
    ; it to take action for. The recommended way of setting values for this
    ; directive is through the use of the error level constants and bitwise
    ; operators. The error level constants are below here for convenience as well as
    ; some common settings and their meanings.
    ; By default, PHP is set to take action on all errors, notices and warnings EXCEPT
    ; those related to E_NOTICE and E_STRICT, which together cover best practices and
    ; recommended coding standards in PHP. For performance reasons, this is the
    ; recommend error reporting setting. Your production server shouldn't be wasting
    ; resources complaining about best practices and coding standards. That's what
    ; development servers and development settings are for.
    ; Note: The php.ini-development file has this setting as E_ALL. This
    ; means it pretty much reports everything which is exactly what you want during
    ; development and early testing.
    ; Error Level Constants:
    ; E_ALL - All errors and warnings (includes E_STRICT as of PHP 5.4.0)
    ; E_ERROR - fatal run-time errors
    ; E_RECOVERABLE_ERROR - almost fatal run-time errors
    ; E_WARNING - run-time warnings (non-fatal errors)
    ; E_PARSE - compile-time parse errors
    ; E_NOTICE - run-time notices (these are warnings which often result
    ; from a bug in your code, but it's possible that it was
    ; intentional (e.g., using an uninitialized variable and
    ; relying on the fact it's automatically initialized to an
    ; empty string)
    ; E_STRICT - run-time notices, enable to have PHP suggest changes
    ; to your code which will ensure the best interoperability
    ; and forward compatibility of your code
    ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
    ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
    ; initial startup
    ; E_COMPILE_ERROR - fatal compile-time errors
    ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
    ; E_USER_ERROR - user-generated error message
    ; E_USER_WARNING - user-generated warning message
    ; E_USER_NOTICE - user-generated notice message
    ; E_DEPRECATED - warn about code that will not work in future versions
    ; of PHP
    ; E_USER_DEPRECATED - user-generated deprecation warnings
    ; Common Values:
    ; E_ALL (Show all errors, warnings and notices including coding standards.)
    ; E_ALL & ~E_NOTICE (Show all errors, except for notices)
    ; E_ALL & ~E_NOTICE & ~E_STRICT (Show all errors, except for notices and coding standards warnings.)
    ; E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR (Show only errors)
    ; Default Value: E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED
    ; Development Value: E_ALL
    ; Production Value: E_ALL & ~E_DEPRECATED & ~E_STRICT
    ; http://php.net/error-reporting
    error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
    ; This directive controls whether or not and where PHP will output errors,
    ; notices and warnings too. Error output is very useful during development, but
    ; it could be very dangerous in production environments. Depending on the code
    ; which is triggering the error, sensitive information could potentially leak
    ; out of your application such as database usernames and passwords or worse.
    ; It's recommended that errors be logged on production servers rather than
    ; having the errors sent to STDOUT.
    ; Possible Values:
    ; Off = Do not display any errors
    ; stderr = Display errors to STDERR (affects only CGI/CLI binaries!)
    ; On or stdout = Display errors to STDOUT
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off
    ; http://php.net/display-errors
    display_errors = Off
    ; The display of errors which occur during PHP's startup sequence are handled
    ; separately from display_errors. PHP's default behavior is to suppress those
    ; errors from clients. Turning the display of startup errors on can be useful in
    ; debugging configuration problems. But, it's strongly recommended that you
    ; leave this setting off on production servers.
    ; Default Value: Off
    ; Development Value: On
    ; Production Value: Off
    ; http://php.net/display-startup-errors
    display_startup_errors = Off
    ; Besides displaying errors, PHP can also log errors to locations such as a
    ; server-specific log, STDERR, or a location specified by the error_log
    ; directive found below. While errors should not be displayed on productions
    ; servers they should still be monitored and logging is a great way to do that.
    ; Default Value: Off
    ; Development Value: On
    ; Production Value: On
    ; http://php.net/log-errors
    log_errors = On
    ; Set maximum length of log_errors. In error_log information about the source is
    ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
    ; http://php.net/log-errors-max-len
    log_errors_max_len = 1024
    ; Do not log repeated messages. Repeated errors must occur in same file on same
    ; line unless ignore_repeated_source is set true.
    ; http://php.net/ignore-repeated-errors
    ignore_repeated_errors = Off
    ; Ignore source of message when ignoring repeated messages. When this setting
    ; is On you will not log errors with repeated messages from different files or
    ; source lines.
    ; http://php.net/ignore-repeated-source
    ignore_repeated_source = Off
    ; If this parameter is set to Off, then memory leaks will not be shown (on
    ; stdout or in the log). This has only effect in a debug compile, and if
    ; error reporting includes E_WARNING in the allowed list
    ; http://php.net/report-memleaks
    report_memleaks = On
    ; This setting is on by default.
    ;report_zend_debug = 0
    ; Store the last error/warning message in $php_errormsg (boolean). Setting this value
    ; to On can assist in debugging and is appropriate for development servers. It should
    ; however be disabled on production servers.
    ; Default Value: Off
    ; Development Value: On
    ; Production Value: Off
    ; http://php.net/track-errors
    track_errors = Off
    ; Turn off normal error reporting and emit XML-RPC error XML
    ; http://php.net/xmlrpc-errors
    ;xmlrpc_errors = 0
    ; An XML-RPC faultCode
    ;xmlrpc_error_number = 0
    ; When PHP displays or logs an error, it has the capability of formatting the
    ; error message as HTML for easier reading. This directive controls whether
    ; the error message is formatted as HTML or not.
    ; Note: This directive is hardcoded to Off for the CLI SAPI
    ; Default Value: On
    ; Development Value: On
    ; Production value: On
    ; http://php.net/html-errors
    html_errors = On
    ; If html_errors is set to On *and* docref_root is not empty, then PHP
    ; produces clickable error messages that direct to a page describing the error
    ; or function causing the error in detail.
    ; You can download a copy of the PHP manual from http://php.net/docs
    ; and change docref_root to the base URL of your local copy including the
    ; leading '/'. You must also specify the file extension being used including
    ; the dot. PHP's default behavior is to leave these settings empty, in which
    ; case no links to documentation are generated.
    ; Note: Never use this feature for production boxes.
    ; http://php.net/docref-root
    ; Examples
    ;docref_root = "/phpmanual/"
    ; http://php.net/docref-ext
    ;docref_ext = .html
    ; String to output before an error message. PHP's default behavior is to leave
    ; this setting blank.
    ; http://php.net/error-prepend-string
    ; Example:
    ;error_prepend_string = "<span style='color: #ff0000'>"
    ; String to output after an error message. PHP's default behavior is to leave
    ; this setting blank.
    ; http://php.net/error-append-string
    ; Example:
    ;error_append_string = "</span>"
    ; Log errors to specified file. PHP's default behavior is to leave this value
    ; empty.
    ; http://php.net/error-log
    ; Example:
    ;error_log = php_errors.log
    ; Log errors to syslog (Event Log on NT, not valid in Windows 95).
    ;error_log = syslog
    ;windows.show_crt_warning
    ; Default value: 0
    ; Development value: 0
    ; Production value: 0
    ; Data Handling ;
    ; The separator used in PHP generated URLs to separate arguments.
    ; PHP's default setting is "&".
    ; http://php.net/arg-separator.output
    ; Example:
    ;arg_separator.output = "&amp;"
    ; List of separator(s) used by PHP to parse input URLs into variables.
    ; PHP's default setting is "&".
    ; NOTE: Every character in this directive is considered as separator!
    ; http://php.net/arg-separator.input
    ; Example:
    ;arg_separator.input = ";&"
    ; This directive determines which super global arrays are registered when PHP
    ; starts up. G,P,C,E & S are abbreviations for the following respective super
    ; globals: GET, POST, COOKIE, ENV and SERVER. There is a performance penalty
    ; paid for the registration of these arrays and because ENV is not as commonly
    ; used as the others, ENV is not recommended on productions servers. You
    ; can still get access to the environment variables through getenv() should you
    ; need to.
    ; Default Value: "EGPCS"
    ; Development Value: "GPCS"
    ; Production Value: "GPCS";
    ; http://php.net/variables-order
    variables_order = "GPCS"
    ; This directive determines which super global data (G,P,C,E & S) should
    ; be registered into the super global array REQUEST. If so, it also determines
    ; the order in which that data is registered. The values for this directive are
    ; specified in the same manner as the variables_order directive, EXCEPT one.
    ; Leaving this value empty will cause PHP to use the value set in the
    ; variables_order directive. It does not mean it will leave the super globals
    ; array REQUEST empty.
    ; Default Value: None
    ; Development Value: "GP"
    ; Production Value: "GP"
    ; http://php.net/request-order
    request_order = "GP"
    ; This directive determines whether PHP registers $argv & $argc each time it
    ; runs. $argv contains an array of all the arguments passed to PHP when a script
    ; is invoked. $argc contains an integer representing the number of arguments
    ; that were passed when the script was invoked. These arrays are extremely
    ; useful when running scripts from the command line. When this directive is
    ; enabled, registering these variables consumes CPU cycles and memory each time
    ; a script is executed. For performance reasons, this feature should be disabled
    ; on production servers.
    ; Note: This directive is hardcoded to On for the CLI SAPI
    ; Default Value: On
    ; Development Value: Off
    ; Production Value: Off
    ; http://php.net/register-argc-argv
    register_argc_argv = Off
    ; When enabled, the ENV, REQUEST and SERVER variables are created when they're
    ; first used (Just In Time) instead of when the script starts. If these
    ; variables are not used within a script, having this directive on will result
    ; in a performance gain. The PHP directive register_argc_argv must be disabled
    ; for this directive to have any affect.
    ; http://php.net/auto-globals-jit
    auto_globals_jit = On
    ; Whether PHP will read the POST data.
    ; This option is enabled by default.
    ; Most likely, you won't want to disable this option globally. It causes $_POST
    ; and $_FILES to always be empty; the only way you will be able to read the
    ; POST data will be through the php://input stream wrapper. This can be useful
    ; to proxy requests or to process the POST data in a memory efficient fashion.
    ; http://php.net/enable-post-data-reading
    ;enable_post_data_reading = Off
    ; Maximum size of POST data that PHP will accept.
    ; Its value may be 0 to disable the limit. It is ignored if POST data reading
    ; is disabled through enable_post_data_reading.
    ; http://php.net/post-max-size
    post_max_size = 8M
    ; Automatically add files before PHP document.
    ; http://php.net/auto-prepend-file
    auto_prepend_file =
    ; Automatically add files after PHP document.
    ; http://php.net/auto-append-file
    auto_append_file =
    ; By default, PHP will output a character encoding using
    ; the Content-type: header. To disable sending of the charset, simply
    ; set it to be empty.
    ; PHP's built-in default is text/html
    ; http://php.net/default-mimetype
    default_mimetype = "text/html"
    ; PHP's default character set is set to empty.
    ; http://php.net/default-charset
    ;default_charset = "UTF-8"
    ; Always populate the $HTTP_RAW_POST_DATA variable. PHP's default behavior is
    ; to disable this feature. If post reading is disabled through
    ; enable_post_data_reading, $HTTP_RAW_POST_DATA is *NOT* populated.
    ; http://php.net/always-populate-raw-post-data
    ;always_populate_raw_post_data = On
    ; Paths and Directories ;
    ; UNIX: "/path1:/path2"
    include_path = ".:/usr/share/pear"
    ; Windows: "\path1;\path2"
    ;include_path = ".;c:\php\includes"
    ; PHP's default setting for include_path is ".;/path/to/php/pear"
    ; http://php.net/include-path
    ; The root of the PHP pages, used only if nonempty.
    ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
    ; if you are running php as a CGI under any web server (other than IIS)
    ; see documentation for security issues. The alternate is to use the
    ; cgi.force_redirect configuration below
    ; http://php.net/doc-root
    doc_root =
    ; The directory under which PHP opens the script using /~username used only
    ; if nonempty.
    ; http://php.net/user-dir
    user_dir =
    ; Directory in which the loadable extensions (modules) reside.
    ; http://php.net/extension-dir
    extension_dir = "/usr/lib/php/modules/"
    ; On windows:
    ; extension_dir = "ext"
    ; Whether or not to enable the dl() function. The dl() function does NOT work
    ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
    ; disabled on them.
    ; http://php.net/enable-dl
    enable_dl = Off
    ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
    ; most web servers. Left undefined, PHP turns this on by default. You can
    ; turn it off here AT YOUR OWN RISK
    ; **You CAN safely turn this off for IIS, in fact, you MUST.**
    ; http://php.net/cgi.force-redirect
    ;cgi.force_redirect = 1
    ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
    ; every request. PHP's default behavior is to disable this feature.
    ;cgi.nph = 1
    ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
    ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
    ; will look for to know it is OK to continue execution. Setting this variable MAY
    ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
    ; http://php.net/cgi.redirect-status-env
    ;cgi.redirect_status_env =
    ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
    ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
    ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
    ; this to 1 will cause PHP CGI to fix its paths to conform to the spec. A setting
    ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
    ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
    ; http://php.net/cgi.fix-pathinfo
    cgi.fix_pathinfo=1
    ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
    ; security tokens of the calling client. This allows IIS to define the
    ; security context that the request runs under. mod_fastcgi under Apache
    ; does not currently support this feature (03/17/2002)
    ; Set to 1 if running under IIS. Default is zero.
    ; http://php.net/fastcgi.impersonate
    ;fastcgi.impersonate = 1
    ; Disable logging through FastCGI connection. PHP's default behavior is to enable
    ; this feature.
    ;fastcgi.logging = 0
    ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
    ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
    ; is supported by Apache. When this option is set to 1 PHP will send
    ; RFC2616 compliant header.
    ; Default is zero.
    ; http://php.net/cgi.rfc2616-headers
    ;cgi.rfc2616_headers = 0
    ; File Uploads ;
    ; Whether to allow HTTP file uploads.
    ; http://php.net/file-uploads
    file_uploads = On
    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ; http://php.net/upload-tmp-dir
    ;upload_tmp_dir =
    ; Maximum allowed size for uploaded files.
    ; http://php.net/upload-max-filesize
    upload_max_filesize = 2M
    ; Maximum number of files that can be uploaded via a single request
    max_file_uploads = 20
    ; Fopen wrappers ;
    ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
    ; http://php.net/allow-url-fopen
    allow_url_fopen = On
    ; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
    ; http://php.net/allow-url-include
    allow_url_include = Off
    ; Define the anonymous ftp password (your email address). PHP's default setting
    ; for this is empty.
    ; http://php.net/from
    ;from="[email protected]"
    ; Define the User-Agent string. PHP's default setting for this is empty.
    ; http://php.net/user-agent
    ;user_agent="PHP"
    ; Default timeout for socket based streams (seconds)
    ; http://php.net/default-socket-timeout
    default_socket_timeout = 60
    ; If your scripts have to deal with files from Macintosh systems,
    ; or you are running on a Mac and need to deal with files from
    ; unix or win32 systems, setting this flag will cause PHP to
    ; automatically detect the EOL character in those files so that
    ; fgets() and file() will work regardless of the source of the file.
    ; http://php.net/auto-detect-line-endings
    ;auto_detect_line_endings = Off
    ; Dynamic Extensions ;
    ; If you wish to have an extension loaded automatically, use the following
    ; syntax:
    ; extension=modulename.extension
    ; For example, on Windows:
    ; extension=msql.dll
    ; ... or under UNIX:
    ; extension=msql.so
    ; ... or with a path:
    ; extension=/path/to/extension/msql.so
    ; If you only provide the name of the extension, PHP will look for it in its
    ; default extension directory.
    ;extension=bcmath.so
    ;extension=bz2.so
    ;extension=calendar.so
    extension=curl.so
    ;extension=dba.so
    ;extension=enchant.so
    ;extension=exif.so
    ;extension=ftp.so
    ;extension=gd.so
    extension=gettext.so
    ;extension=gmp.so
    ;extension=iconv.so
    ;extension=imap.so
    ;extension=intl.so
    ;extension=ldap.so
    ;extension=mcrypt.so
    ;extension=mssql.so
    ;extension=mysqli.so
    ;extension=mysql.so
    ;extension=odbc.so
    ;extension=openssl.so
    ;extension=pdo_mysql.so
    ;extension=pdo_odbc.so
    ;extension=pdo_pgsql.so
    extension=pdo_sqlite.so
    ;extension=pgsql.so
    ;extension=phar.so
    ;extension=posix.so
    ;extension=pspell.so
    ;extension=shmop.so
    ;extension=snmp.so
    ;extension=soap.so
    ;extension=sockets.so
    extension=sqlite.so
    extension=sqlite3.so
    ;extension=sysvmsg.so
    ;extension=sysvsem.so
    ;extension=sysvshm.so
    ;extension=tidy.so
    ;extension=xmlrpc.so
    ;extension=xsl.so
    ;extension=zip.so
    ; Module Settings ;
    [CLI Server]
    ; Whether the CLI web server uses ANSI color coding in its terminal output.
    cli_server.color = On
    [Date]
    ; Defines the default timezone used by the date functions
    ; http://php.net/date.timezone
    ;date.timezone =
    ; http://php.net/date.default-latitude
    ;date.default_latitude = 31.7667
    ; http://php.net/date.default-longitude
    ;date.default_longitude = 35.2333
    ; http://php.net/date.sunrise-zenith
    ;date.sunrise_zenith = 90.583333
    ; http://php.net/date.sunset-zenith
    ;date.sunset_zenith = 90.583333
    [filter]
    ; http://php.net/filter.default
    ;filter.default = unsafe_raw
    ; http://php.net/filter.default-flags
    ;filter.default_flags =
    [iconv]
    ;iconv.input_encoding = ISO-8859-1
    ;iconv.internal_encoding = ISO-8859-1
    ;iconv.output_encoding = ISO-8859-1
    [intl]
    ;intl.default_locale =
    ; This directive allows you to produce PHP errors when some error
    ; happens within intl functions. The value is the level of the error produced.
    ; Default is 0, which does not produce any errors.
    ;intl.error_level = E_WARNING
    [sqlite]
    ; http://php.net/sqlite.assoc-case
    ;sqlite.assoc_case = 0
    [sqlite3]
    ;sqlite3.extension_dir =
    [Pcre]
    ;PCRE library backtracking limit.
    ; http://php.net/pcre.backtrack-limit
    ;pcre.backtrack_limit=100000
    ;PCRE library recursion limit.
    ;Please note that if you set this value to a high number you may consume all
    ;the available process stack and eventually crash PHP (due to reaching the
    ;stack size limit imposed by the Operating System).
    ; http://php.net/pcre.recursion-limit
    ;pcre.recursion_limit=100000
    [Pdo]
    ; Whether to pool ODBC connections. Can be one of "strict", "relaxed" or "off"
    ; http://php.net/pdo-odbc.connection-pooling
    ;pdo_odbc.connection_pooling=strict
    ;pdo_odbc.db2_instance_name
    [Pdo_mysql]
    ; If mysqlnd is used: Number of cache slots for the internal result set cache
    ; http://php.net/pdo_mysql.cache_size
    pdo_mysql.cache_size = 2000
    ; Default socket name for local MySQL connects. If empty, uses the built-in
    ; MySQL defaults.
    ; http://php.net/pdo_mysql.default-socket
    pdo_mysql.default_socket=
    [Phar]
    ; http://php.net/phar.readonly
    ;phar.readonly = On
    ; http://php.net/phar.require-hash
    ;phar.require_hash = On
    ;phar.cache_list =
    [mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = localhost
    ; http://php.net/smtp-port
    smtp_port = 25
    ; For Win32 only.
    ; http://php.net/sendmail-from
    ;sendmail_from = [email protected]
    ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
    ; http://php.net/sendmail-path
    ;sendmail_path =
    ; Force the addition of the specified parameters to be passed as extra parameters
    ; to the sendmail binary. These parameters will always replace the value of
    ; the 5th parameter to mail(), even in safe mode.
    ;mail.force_extra_parameters =
    ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
    mail.add_x_header = On
    ; The path to a log file that will log all mail() calls. Log entries include
    ; the full path of the script, line number, To address and headers.
    ;mail.log =
    ; Log mail to syslog (Event Log on NT, not valid in Windows 95).
    ;mail.log = syslog
    [SQL]
    ; http://php.net/sql.safe-mode
    sql.safe_mode = Off
    [ODBC]
    ; http://php.net/odbc.default-db
    ;odbc.default_db = Not yet implemented
    ; http://php.net/odbc.default-user
    ;odbc.default_user = Not yet implemented
    ; http://php.net/odbc.default-pw
    ;odbc.default_pw = Not yet implemented
    ; Controls the ODBC cursor model.
    ; Default: SQL_CURSOR_STATIC (default).
    ;odbc.default_cursortype
    ; Allow or prevent persistent links.
    ; http://php.net/odbc.allow-persistent
    odbc.allow_persistent = On
    ; Check that a connection is still valid before reuse.
    ; http://php.net/odbc.check-persistent
    odbc.check_persistent = On
    ; Maximum number of persistent links. -1 means no limit.
    ; http://php.net/odbc.max-persistent
    odbc.max_persistent = -1
    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    ; http://php.net/odbc.max-links
    odbc.max_links = -1
    ; Handling of LONG fields. Returns number of bytes to variables. 0 means
    ; passthru.
    ; http://php.net/odbc.defaultlrl
    odbc.defaultlrl = 4096
    ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
    ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
    ; of odbc.defaultlrl and odbc.defaultbinmode
    ; http://php.net/odbc.defaultbinmode
    odbc.defaultbinmode = 1
    ;birdstep.max_links = -1
    [Interbase]
    ; Allow or prevent persistent links.
    ibase.allow_persistent = 1
    ; Maximum number of persistent links. -1 means no limit.
    ibase.max_persistent = -1
    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    ibase.max_links = -1
    ; Default database name for ibase_connect().
    ;ibase.default_db =
    ; Default username for ibase_connect().
    ;ibase.default_user =
    ; Default password for ibase_connect().
    ;ibase.default_password =
    ; Default charset for ibase_connect().
    ;ibase.default_charset =
    ; Default timestamp format.
    ibase.timestampformat = "%Y-%m-%d %H:%M:%S"
    ; Default date format.
    ibase.dateformat = "%Y-%m-%d"
    ; Default time format.
    ibase.timeformat = "%H:%M:%S"
    [MySQL]
    ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
    ; http://php.net/mysql.allow_local_infile
    mysql.allow_local_infile = On
    ; Allow or prevent persistent links.
    ; http://php.net/mysql.allow-persistent
    mysql.allow_persistent = On
    ; If mysqlnd is used: Number of cache slots for the internal result set cache
    ; http://php.net/mysql.cache_size
    mysql.cache_size = 2000
    ; Maximum number of persistent links. -1 means no limit.
    ; http://php.net/mysql.max-persistent
    mysql.max_persistent = -1
    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    ; http://php.net/mysql.max-links
    mysql.max_links = -1
    ; Default port number for mysql_connect(). If unset, mysql_connect() will use
    ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
    ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
    ; at MYSQL_PORT.
    ; http://php.net/mysql.default-port
    mysql.default_port =
    ; Default socket name for local MySQL connects. If empty, uses the built-in
    ; MySQL defaults.
    ; http://php.net/mysql.default-socket
    mysql.default_socket =
    ; Default host for mysql_connect() (doesn't apply in safe mode).
    ; http://php.net/mysql.default-host
    mysql.default_host =
    ; Default user for mysql_connect() (doesn't apply in safe mode).
    ; http://php.net/mysql.default-user
    mysql.default_user =
    ; Default password for mysql_connect() (doesn't apply in safe mode).
    ; Note that this is generally a *bad* idea to store passwords in this file.
    ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
    ; and reveal this password! And of course, any users with read access to this
    ; file will be able to reveal the password as well.
    ; http://php.net/mysql.default-password
    mysql.default_password =
    ; Maximum time (in seconds) for connect timeout. -1 means no limit
    ; http://php.net/mysql.connect-timeout
    mysql.connect_timeout = 60
    ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
    ; SQL-Errors will be displayed.
    ; http://php.net/mysql.trace-mode
    mysql.trace_mode = Off
    [MySQLi]
    ; Maximum number of persistent links. -1 means no limit.
    ; http://php.net/mysqli.max-persistent
    mysqli.max_persistent = -1
    ; Allow accessing, from PHP's perspective, local files with LOAD DATA statements
    ; http://php.net/mysqli.allow_local_infile
    ;mysqli.allow_local_infile = On
    ; Allow or prevent persistent links.
    ; http://php.net/mysqli.allow-persistent
    mysqli.allow_persistent = On
    ; Maximum number of links. -1 means no limit.
    ; http://php.net/mysqli.max-links
    mysqli.max_links = -1
    ; If mysqlnd is used: Number of cache slots for the internal result set cache
    ; http://php.net/mysqli.cache_size
    mysqli.cache_size = 2000
    ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
    ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
    ; compile-time value defined MYSQL_PORT (in that order). Win32 will only look
    ; at MYSQL_PORT.
    ; http://php.net/mysqli.default-port
    mysqli.default_port = 3306
    ; Default socket name for local MySQL connects. If empty, uses the built-in
    ; MySQL defaults.
    ; http://php.net/mysqli.default-socket
    mysqli.default_socket =
    ; Default host for mysql_connect() (doesn't apply in safe mode).
    ; http://php.net/mysqli.default-host
    mysqli.default_host =
    ; Default user for mysql_connect() (doesn't apply in safe mode).
    ; http://php.net/mysqli.default-user
    mysqli.default_user =
    ; Default password for mysqli_connect() (doesn't apply in safe mode).
    ; Note that this is generally a *bad* idea to store passwords in this file.
    ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
    ; and reveal this password! And of course, any users with read access to this
    ; file will be able to reveal the password as well.
    ; http://php.net/mysqli.default-pw
    mysqli.default_pw =
    ; Allow or prevent reconnect
    mysqli.reconnect = Off
    [mysqlnd]
    ; Enable / Disable collection of general statistics by mysqlnd which can be
    ; used to tune and monitor MySQL operations.
    ; http://php.net/mysqlnd.collect_statistics
    mysqlnd.collect_statistics = On
    ; Enable / Disable collection of memory usage statistics by mysqlnd which can be
    ; used to tune and monitor MySQL operations.
    ; http://php.net/mysqlnd.collect_memory_statistics
    mysqlnd.collect_memory_statistics = Off
    ; Size of a pre-allocated buffer used when sending commands to MySQL in bytes.
    ; http://php.net/mysqlnd.net_cmd_buffer_size
    ;mysqlnd.net_cmd_buffer_size = 2048
    ; Size of a pre-allocated buffer used for reading data sent by the server in
    ; bytes.
    ; http://php.net/mysqlnd.net_read_buffer_size
    ;mysqlnd.net_read_buffer_size = 32768
    [OCI8]
    ; Connection: Enables privileged connections using external
    ; credentials (OCI_SYSOPER, OCI_SYSDBA)
    ; http://php.net/oci8.privileged-connect
    ;oci8.privileged_connect = Off
    ; Connection: The maximum number of persistent OCI8 connections per
    ; process. Using -1 means no limit.
    ; http://php.net/oci8.max-persistent
    ;oci8.max_persistent = -1
    ; Connection: The maximum number of seconds a process is allowed to
    ; maintain an idle persistent connection. Using -1 means idle
    ; persistent connections will be maintained forever.
    ; http://php.net/oci8.persistent-timeout
    ;oci8.persistent_timeout = -1
    ; Connection: The number of seconds that must pass before issuing a
    ; ping during oci_pconnect() to check the connection validity. When
    ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
    ; pings completely.
    ; http://php.net/oci8.ping-interval
    ;oci8.ping_interval = 60
    ; Connection: Set this to a user chosen connection class to be used
    ; for all pooled server requests with Oracle 11g Database Resident
    ; Connection Pooling (DRCP). To use DRCP, this value should be set to
    ; the same string for all web servers running the same application,
    ; the database pool must be configured, and the connection string must
    ; specify to use a pooled server.
    ;oci8.connection_class =
    ; High Availability: Using On lets PHP receive Fast Application
    ; Notification (FAN) events generated when a database node fails. The
    ; database must also be configured to post FAN events.
    ;oci8.events = Off
    ; Tuning: This option enables statement caching, and specifies how
    ; many statements to cache. Using 0 disables statement caching.
    ; http://php.net/oci8.statement-cache-size
    ;oci8.statement_cache_size = 20
    ; Tuning: Enables statement prefetching and sets the default number of
    ; rows that will be fetched automatically after statement execution.
    ; http://php.net/oci8.default-prefetch
    ;oci8.default_prefetch = 100
    ; Compatibility. Using On means oci_close() will not close
    ; oci_connect() and oci_new_connect() connections.
    ; http://php.net/oci8.old-oci-close-semantics
    ;oci8.old_oci_close_semantics = Off
    [PostgreSQL]
    ; Allow or prevent persistent links.
    ; http://php.net/pgsql.allow-persistent
    pgsql.allow_persistent = On
    ; Detect broken persistent links always with pg_pconnect().
    ; Auto reset feature requires a little overheads.
    ; http://php.net/pgsql.auto-reset-persistent
    pgsql.auto_reset_persistent = Off
    ; Maximum number of persistent links. -1 means no limit.
    ; http://php.net/pgsql.max-persistent
    pgsql.max_persistent = -1
    ; Maximum number of links (persistent+non persistent). -1 means no limit.
    ; http://php.net/pgsql.max-links
    pgsql.max_links = -1
    ; Ignore PostgreSQL backends Notice message or not.
    ; Notice message logging require a little overheads.
    ; http://php.net/pgsql.ignore-notice
    pgsql.ignore_notice = 0
    ; Log PostgreSQL backends Notice message or not.
    ; Unless pgsql.ignore_notice=0, module cannot log notice message.
    ; http://php.net/pgsql.log-notice
    pgsql.log_notice = 0
    [Sybase-CT]
    ; Allow or prevent persistent links.
    ; http://php.net/sybct.allow-persistent
    sybct.allow_persistent = On
    ; Maximum number of persistent links. -1 means no limit.
    ; http://php.net/sybct.max-persistent
    sybct.max_persistent = -1
    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    ; http://php.net/sybct.max-links
    sybct.max_links = -1
    ; Minimum server message severity to display.
    ; http://php.net/sybct.min-server-severity
    sybct.min_server_severity = 10
    ; Minimum client message severity to display.
    ; http://php.net/sybct.min-client-severity
    sybct.min_client_severity = 10
    ; Set per-context timeout
    ; http://php.net/sybct.timeout
    ;sybct.timeout=
    ;sybct.packet_size
    ; The maximum time in seconds to wait for a connection attempt to succeed before returning failure.
    ; Default: one minute
    ;sybct.login_timeout=
    ; The name of the host you claim to be connecting from, for display by sp_who.
    ; Default: none
    ;sybct.hostname=
    ; Allows you to define how often deadlocks are to be retried. -1 means "forever".
    ; Default: 0
    ;sybct.deadlock_retry_count=
    [bcmath]
    ; Number of decimal digits for all bcmath functions.
    ; http://php.net/bcmath.scale
    bcmath.scale = 0
    [browscap]
    ; http://php.net/browscap
    ;browscap = extra/browscap.ini
    [Session]
    ; Handler used to store/retrieve data.
    ; http://php.net/session.save-handler
    session.save_handler = files
    ; Argument passed to save_handler. In the case of files, this is the path
    ; where data files are stored. Note: Windows users have to change this
    ; variable in order to use PHP's session functions.
    ; The path can be defined as:
    ; session.save_path = "N;/path"
    ; where N is an integer. Instead of storing all the session files in
    ; /path, what this will do is use subdirectories N-levels deep, and
    ; store the session data in those directories. This is useful if you
    ; or your OS have problems with lots of files in one directory, and is
    ; a more efficient layout for servers that handle lots of sessions.
    ; NOTE 1: PHP will not create this directory structure automatically.
    ; You can use the script in the ext/session dir for that purpose.
    ; NOTE 2: See the section on garbage collection below if you choose to
    ; use subdirectories for session storage
    ; The file storage module creates files using mode 600 by default.
    ; You can change that by using
    ; session.save_path = "N;MODE;/path"
    ; where MODE is the octal representation of the mode. Note that this
    ; does not overwrite the process's umask.
    ; http://php.net/session.save-path
    ;session.save_path = "/tmp"
    ; Whether to use cookies.
    ; http://php.net/session.use-cookies
    session.use_cookies = 1
    ; http://php.net/session.cookie-secure
    ;session.cookie_secure =
    ; This option forces PHP to fetch and use a cookie for storing and maintaining
    ; the session id. We encourage this operation as it's very helpful in combating
    ; session hijacking when not specifying and managing your own session id. It is
    ; not the end all be all of session hijacking defense, but it's a good start.
    ; http://php.net/session.use-only-cookies
    session.use_only_cookies = 1
    ; Name of the session (used as cookie name).
    ; http://php.net/session.name
    session.name = PHPSESSID
    ; Initialize session on request startup.
    ; http://php.net/session.auto-start
    session.auto_start = 0
    ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
    ; http://php.net/session.cookie-lifetime
    session.cookie_lifetime = 0
    ; The path for which the cookie is valid.
    ; http://php.net/session.cookie-path
    session.cookie_path = /
    ; The domain for which the cookie is valid.
    ; http://php.net/session.cookie-domain
    session.cookie_domain =
    ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
    ; http://php.net/session.cookie-httponly
    session.cookie_httponly =
    ; Handler used to serialize data. php is the standard serializer of PHP.
    ; http://php.net/session.serialize-handler
    session.serialize_handler = php
    ; Defines the probability that the 'garbage collection' process is started
    ; on every session initialization. The probability is calculated by using
    ; gc_probability/gc_divisor. Where session.gc_probability is the numerator
    ; and gc_divisor is the denominator in the equation. Setting this value to 1
    ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
    ; the gc will run on any give request.
    ; Default Value: 1
    ; Development Value: 1
    ; Production Value: 1
    ; http://php.net/session.gc-probability
    session.gc_probability = 1
    ; Defines the probability that the 'garbage collection' process is started on every
    ; session initialization. The probability is calculated by using the following equation:
    ; gc_probability/gc_divisor. Where session.gc_probability is the numerator and
    ; session.gc_divisor is the denominator in the equation. Setting this value to 1
    ; when the session.gc_divisor value is 100 will give you approximately a 1% chance
    ; the gc will run on any give request. Increasing this value to 1000 will give you
    ; a 0.1% chance the gc will run on any give request. For high volume production servers,
    ; this is a more efficient approach.
    ; Default Value: 100
    ; Development Value: 1000
    ; Production Value: 1000
    ; http://php.net/session.gc-divisor
    session.gc_divisor = 1000
    ; After this number of seconds, stored data will be seen as 'garbage' and
    ; cleaned up by the garbage collection process.
    ; http://php.net/session.gc-maxlifetime
    session.gc_maxlifetime = 1440
    ; NOTE: If you are using the subdirectory option for storing session files
    ; (see session.save_path above), then garbage collection does *not*
    ; happen automatically. You will need to do your own garbage
    ; collection through a shell script, cron entry, or some other method.
    ; For example, the following script would is the equivalent of
    ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
    ; find /path/to/sessions -cmin +24 | xargs rm
    ; PHP 4.2 and less have an undocumented feature/bug that allows you to
    ; to initialize a session variable in the global scope.
    ; PHP 4.3 and later will warn you, if this feature is used.
    ; You can disable the feature and the warning separately. At this time,
    ; the warning is only displayed, if bug_compat_42 is enabled. This feature
    ; introduces some serious security problems if not handled correctly. It's
    ; recommended that you do not use this feature on production servers. But you
    ; should enable this on development servers and enable the warning as well. If you
    ; do not enable the feature on development servers, you won't be warned when it's
    ; used and debugging errors caused by this can be difficult to track down.
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off
    ; http://php.net/session.bug-compat-42
    session.bug_compat_42 = Off
    ; This setting controls whether or not you are warned by PHP when initializing a
    ; session value into the global space. session.bug_compat_42 must be enabled before
    ; these warnings can be issued by PHP. See the directive above for more information.
    ; Default Value: On
    ; Development Value: On
    ; Production Value: Off
    ; http://php.net/session.bug-compat-warn
    session.bug_compat_warn = Off
    ; Check HTTP Referer to invalidate externally stored URLs containing ids.
    ; HTTP_REFERER has to contain this substring for the session to be
    ; considered as valid.
    ; http://php.net/session.referer-check
    session.referer_check =
    ; How many bytes to read from the file.
    ; http://php.net/session.entropy-length
    ;session.entropy_length = 32
    ; Specified here to create the session id.
    ; http://php.net/session.entropy-file
    ; Defaults to /dev/urandom
    ; On systems that don't have /dev/urandom but do have /dev/arandom, this will default to /dev/arandom
    ; If neither are found at compile time, the default is no entropy file.
    ; On windows, setting the entropy_length setting will activate the
    ; Windows random source (using the CryptoAPI)
    ;session.entropy_file = /dev/urandom
    ; Set to {nocache,private,public,} to determine HTTP caching aspects
    ; or leave this empty to avoid sending anti-caching headers.
    ; http://php.net/session.cache-limiter
    session.cache_limiter = nocache
    ; Document expires after n minutes.
    ; http://php.net/session.cache-expire
    session.cache_expire = 180
    ; trans sid support is disabled by default.
    ; Use of trans sid may risk your users security.
    ; Use this option with caution.
    ; - User may send URL contains active session ID
    ; to other person via. email/irc/etc.
    ; - URL that contains active session ID may be stored
    ; in publicly accessible computer.
    ; - User may access your site with the same session ID
    ; always using URL stored in browser's history or bookmarks.
    ; http://php.net/session.use-trans-sid
    session.use_trans_sid = 0
    ; Select a hash function for use in generating session ids.
    ; Possible Values
    ; 0 (MD5 128 bits)
    ; 1 (SHA-1 160 bits)
    ; This option may also be set to the name of any hash function supported by
    ; the hash extension. A list of available hashes is returned by the hash_algos()
    ; function.
    ; http://php.net/session.hash-function
    session.hash_function = 0
    ; Define how many bits are stored in each character when converting
    ; the binary hash data to something readable.
    ; Possible values:
    ; 4 (4 bits: 0-9, a-f)
    ; 5 (5 bits: 0-9, a-v)
    ; 6 (6 bits: 0-9, a-z, A-Z, "-", ",")
    ; Default Value: 4
    ; Development Value: 5
    ; Production Value: 5
    ; http://php.net/session.hash-bits-per-character
    session.hash_bits_per_character = 5
    ; The URL rewriter will look for URLs in a defined set of HTML tags.
    ; form/fieldset are special; if you include them here, the rewriter will
    ; add a hidden <input> field with the info which is otherwise appended
    ; to URLs. If you want XHTML conformity, remove the form entry.
    ; Note that all valid entries require a "=", even if no value follows.
    ; Default Value: "a=href,area=href,frame=src,form=,fieldset="
    ; Development Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
    ; Production Value: "a=href,area=href,frame=src,input=src,form=fakeentry"
    ; http://php.net/url-rewriter.tags
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
    ; Enable upload progress tracking in $_SESSION
    ; Default Value: On
    ; Development Value: On
    ; Production Value: On
    ; http://php.net/session.upload-progress.enabled
    ;session.upload_progress.enabled = On
    ; Cleanup the progress information as soon as all POST data has been read
    ; (i.e. upload completed).
    ; Default Value: On
    ; Development Value: On
    ; Production Value: On
    ; http://php.net/session.upload-progress.cleanup
    ;session.upload_progress.cleanup = On
    ; A prefix used for the upload progress key in $_SESSION
    ; Default Value: "upload_progress_"
    ; Development Value: "upload_progress_"
    ; Production Value: "upload_progress_"
    ; http://php.net/session.upload-progress.prefix
    ;session.upload_progress.prefix = "upload_progress_"
    ; The index name (concatenated with the prefix) in $_SESSION
    ; containing the upload progress information
    ; Default Value: "PHP_SESSION_UPLOAD_PROGRESS"
    ; Development Value: "PHP_SESSION_UPLOAD_PROGRESS"
    ; Production Value: "PHP_SESSION_UPLOAD_PROGRESS"
    ; http://php.net/session.upload-progress.name
    ;session.upload_progress.name = "PHP_SESSION_UPLOAD_PROGRESS"
    ; How frequently the upload progress should be updated.
    ; Given either in percentages (per-file), or in bytes
    ; Default Value: "1%"
    ; Development Value: "1%"
    ; Production Value: "1%"
    ; http://php.net/session.upload-progress.freq
    ;session.upload_progress.freq = "1%"
    ; The minimum delay between updates, in seconds
    ; Default Value: 1
    ; Development Value: 1
    ; Production Value: 1
    ; http://php.net/session.upload-progress.min-freq
    ;session.upload_progress.min_freq = "1"
    [MSSQL]
    ; Allow or prevent persistent links.
    mssql.allow_persistent = On
    ; Maximum number of persistent links. -1 means no limit.
    mssql.max_persistent = -1
    ; Maximum number of links (persistent+non persistent). -1 means no limit.
    mssql.max_links = -1
    ; Minimum error severity to display.
    mssql.min_error_severity = 10
    ; Minimum message severity to display.
    mssql.min_message_severity = 10
    ; Compatibility mode with old versions of PHP 3.0.
    mssql.compatability_mode = Off
    ; Connect timeout
    ;mssql.connect_timeout = 5
    ; Query timeout
    ;mssql.timeout = 60
    ; Valid range 0 - 2147483647. Default = 4096.
    ;mssql.textlimit = 4096
    ; Valid range 0 - 2147483647. Default = 4096.
    ;mssql.textsize = 4096
    ; Limits the number of records in each batch. 0 = all records in one batch.
    ;mssql.batchsize = 0
    ; Specify how datetime and datetim4 columns are returned
    ; On => Returns data converted to SQL server settings
    ; Off => Returns values as YYYY-MM-DD hh:mm:ss
    ;mssql.datetimeconvert = On
    ; Use NT authentication when connecting to the server
    mssql.secure_connection = Off
    ; Specify max number of processes. -1 = library default
    ; msdlib defaults to 25
    ; FreeTDS defaults to 4096
    ;mssql.max_procs = -1
    ; Specify client character set.
    ; If empty or not set the client charset from freetds.conf is used
    ; This is only used when compiled with FreeTDS
    ;mssql.charset = "ISO-8859-1"
    [Assertion]
    ; Assert(expr); active by default.
    ; http://php.net/assert.active
    ;assert.active = On
    ; Issue a PHP warning for each failed assertion.
    ; http://php.net/assert.warning
    ;assert.warning = On
    ; Don't bail out by default.
    ; http://php.net/assert.bail
    ;assert.bail = Off
    ; User-function to be called if an assertion fails.
    ; http://php.net/assert.callback
    ;assert.callback = 0
    ; Eval the expression with current error_reporting(). Set to true if you want
    ; error_reporting(0) around the eval().
    ; http://php.net/assert.quiet-eval
    ;assert.quiet_eval = 0
    [COM]
    ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
    ; http://php.net/com.typelib-file
    ;com.typelib_file =
    ; allow Distributed-COM calls
    ; http://php.net/com.allow-dcom
    ;com.allow_dcom = true
    ; autoregister constants of a components typlib on com_load()
    ; http://php.net/com.autoregister-typelib
    ;com.autoregister_typelib = true
    ; register constants casesensitive
    ; http://php.net/com.autoregister-casesensitive
    ;com.autoregister_casesensitive = false
    ; show warnings on duplicate constant registrations
    ; http://php.net/com.autoregister-verbose
    ;com.autoregister_verbose = true
    ; The default character set code-page to use when passing strings to and from COM objects.
    ; Default: system ANSI code page
    ;com.code_page=
    [mbstring]
    ; language for internal character representation.
    ; http://php.net/mbstring.language
    ;mbstring.language = Japanese
    ; internal/script encoding.
    ; Some encoding cannot work as internal encoding.
    ; (e.g. SJIS, BIG5, ISO-2022-*)
    ; http://php.net/mbstring.internal-encoding
    ;mbstring.internal_encoding = EUC-JP
    ; http input encoding.
    ; http://php.net/mbstring.http-input
    ;mbstring.http_input = auto
    ; http output encoding. mb_output_handler must be
    ; registered as output buffer to function
    ; http://php.net/mbstring.http-output
    ;mbstring.http_output = SJIS
    ; enable automatic encoding translation according to
    ; mbstring.internal_encoding setting. Input chars are
    ; converted to internal encoding by setting this to On.
    ; Note: Do _not_ use automatic encoding translation for
    ; portable libs/applications.
    ; http://php.net/mbstring.encoding-translation
    ;mbstring.encoding_translation = Off
    ; automatic encoding detection order.
    ; auto means
    ; http://php.net/mbstring.detect-order
    ;mbstring.detect_order = auto
    ; substitute_character used when character cannot be converted
    ; one from another
    ; http://php.net/mbstring.substitute-character
    ;mbstring.substitute_character = none;
    ; overload(replace) single byte functions by mbstring functions.
    ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
    ; etc. Po

    Hi there! Thank you for your kind help.
    I searched for the *.css File of the Theme which is used.
    FOR CHYRP:
    This file is shown as plain Text in the Browser itself
    http://192.168.xxx.xxx/chyrp/admin/themes/default/style.css
    style.css
    /* @group Reset */
    body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td { margin: 0; padding: 0; }
    table { border-collapse: collapse; border-spacing: 0; }
    fieldset,img { border: 0; }
    address,caption,cite,code,dfn,em,strong,th,var { font-style: normal; font-weight: normal; }
    li { list-style: none; }
    caption,th { text-align: left; }
    h1,h2,h3,h4,h5,h6 { font-size: 100%; font-weight: normal; }
    abbr,acronym { border: 0; font-variant: normal; }
    input,textarea,select { font-family: inherit; font-size: inherit; font-weight: inherit; }
    a:link, a:visited { text-decoration: none; color: inherit; }
    /* @end */
    /* @group Core */
    html {
    font-size: 62.5%;
    body {
    font: 1.25em/1.5em normal Lucida Grande, Helvetica, Arial, sans-serif;
    color: #333;
    background: #efefef;
    h1, h2, h3, h4, h5, h6{
    font-weight: normal !important;
    font-family: "Palatino Linotype", Chaparral Pro, Georgia, serif;
    em {
    font-style: italic;
    strong {
    font-weight: bold;
    small,
    .small {
    font-size: .9em;
    color: #999;
    p {
    margin: 0 0 1em;
    a:link,
    a:visited {
    text-decoration: underline;
    /* @end */
    /* @group Header */
    #header {
    background: #353535;
    padding: 2em 0;
    color: #fff;
    position: relative;
    #header h1 {
    font-size: 2em;
    line-height: 1.25em;
    text-shadow: #000 0 1px 1px;
    #header h1 a {
    text-decoration: none;
    #header #navigation {
    float: right;
    position: absolute;
    bottom: 0;
    right: 5em;
    #header #navigation li {
    display: inline;
    #header #navigation li a:link,
    #header #navigation li a:visited {
    float: left;
    margin-left: 1em;
    text-shadow: #000 0 0 0;
    background: #444;
    color: #ebeeee;
    height: 4em;
    line-height: 4em;
    text-transform: uppercase;
    width: 8em;
    text-align: center;
    text-decoration: none;
    font-family: "Palatino Linotype", Chaparral Pro, Georgia, serif;
    letter-spacing: 0.2em;
    font-size: 0.8em;
    #header #navigation li.selected a:link,
    #header #navigation li.selected a:visited {
    background: #fff;
    color: #333;
    #header #navigation li a:hover {
    background: #4c4c4c;
    #welcome {
    background: #fff;
    padding: .9em 0;
    border-bottom: 1px solid #e1e1e1;
    #welcome a:link,
    #welcome a:visited {
    text-decoration: none;
    background: #fcfcfc;
    padding: 1em;
    margin: -1em 0 -.8em;
    #welcome .right {
    padding: .9em 1em !important;
    margin-top: -.9em !important;
    #welcome a:hover {
    background: #f5f5f5;
    #welcome a:active {
    background: #f0f0f0;
    /* @end */
    /* @group Footer */
    #footer {
    width: 425px;
    margin: 2.5em auto !important;
    font-size: 1.25em;
    text-align: center;
    #footer .sub {
    color: #acacac;
    font-size: .7em;
    /* @end */
    /* @group Sub-Navigation */
    #sub-nav {
    margin-top: 2em;
    #sub-nav li {
    float: left;
    position: relative;
    top: 1px;
    z-index: 1;
    #sub-nav li a:link,
    #sub-nav li a:visited {
    float: left;
    padding: .4em .75em;
    background: #dfdfdf;
    border-bottom: 0;
    color: #737373;
    text-decoration: none;
    margin: 0 0.7em 0 0;
    #sub-nav li a:hover {
    background: #e5e5e5;
    #sub-nav li.selected a:link,
    #sub-nav li.selected a:visited {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-bottom: none;
    #sub-nav li.right {
    margin: .75em 0 0;
    #sub-nav li.right a:link,
    #sub-nav li.right a:visited {
    float: none;
    background: transparent;
    padding: 0;
    font-size: .95em;
    color: #444;
    .feathers_sort {
    background: #eee;
    margin-top: .2em;
    height: 2.3em !important;
    border-left: .1em dashed #ccc;
    border-right: .1em dashed #ccc;
    /* @end */
    /* @group Content */
    #content {
    background: #fff;
    padding: 1em;
    border: 1px solid #e1e1e1;
    position: relative;
    #content > form {
    /* margin-top: .5em; */
    #content h1 {
    font-size: 2em;
    margin: .2em 0 1em;
    color: #aaa;
    font-weight: bold;
    #content h2 {
    font-size: 1.5em;
    margin: 0 0 .5em;
    color: #666;
    font-weight: normal;
    #content h3 {
    font-weight: bold;
    font-size: 1.25em;
    margin-bottom: 1.5em;
    #content h4 {
    font-weight: bold;
    font-size: 1.2em;
    /* @end */
    /* @group Extend */
    .enable,
    .disable {
    width: 49%;
    .enable h2,
    .disable h2 {
    font-weight: normal !important;
    font-size: 1.1em !important;
    .enable h2 .sub,
    .disable h2 .sub {
    font-size: .8em;
    color: #bcbcbc;
    .enable ul,
    .disable ul {
    padding: 1em 1em .5em;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    .enable ul li,
    .disable ul li {
    padding: .1em .25em .1em .7em;
    margin: 0 0 .5em;
    list-style: disc inside !important;
    position: relative;
    .enable ul li img,
    .disable ul li img {
    position: absolute;
    top: 4px;
    right: 4px;
    .enable ul li a.help img,
    .disable ul li a.help img {
    top: 3px;
    right: 20px;
    width: 15px;
    height: 15px;
    .enable ul li .sub,
    .disable ul li .sub {
    font-size: .9em;
    .enable ul li .enable_button,
    .disable ul li .disable_button {
    display: block;
    padding: .25em .5em;
    text-align: right;
    ul.extend .expand {
    margin: 0 -.25em 0 -.7em;
    .enable h2 {
    color: #4f8f62 !important;
    .enable ul {
    background: #dbffe6;
    border: 1px solid #dbffe6;
    .enable ul li {
    background: #e6ffee;
    color: #386345;
    .enable ul.hover {
    border: 1px solid #b3d1bb;
    .enable ul li a:link,
    .enable ul li a:visited,
    .enable ul li .sub a:hover {
    text-decoration: none;
    color: #386345;
    .enable ul li .sub,
    .enable ul li .sub a:link,
    .enable ul li .sub a:visited {
    color: #74a683;
    .enable ul li .description {
    padding: .5em;
    background: #F7FFF9;
    .enable ul li .enable_button {
    color: #189100;
    .enable ul li .enable_button:hover {
    background: #189100;
    color: #fff;
    .enable ul li .enable_button:active {
    background: #067000;
    .disable h2 {
    color: #ff7070 !important;
    .disable ul {
    background: #ffdbdb;
    border: 1px solid #ffdbdb;
    .disable h2 .sub {
    color: #bcbcbc;
    .disable ul li {
    background: #ffe6e6;
    color: #653b3d;
    .disable ul.hover {
    border: 1px solid #cfb2b2;
    .disable ul li a:link,
    .disable ul li a:visited,
    .disable ul li .sub a:hover {
    text-decoration: none;
    color: #7b4d4d;
    .disable ul li .sub,
    .disable ul li .sub a:link,
    .disable ul li .sub a:visited {
    color: #a97f7f;
    .disable ul li .description {
    padding: .5em;
    background: #FFF1F1;
    .disable ul li .disable_button {
    color: #d51800;
    .disable ul li .disable_button:hover {
    background: #d51800;
    color: #fff;
    .disable ul li .disable_button:active {
    background: #b30600;
    /* @end */
    /* @group Theme Changing */
    .theme {
    text-align: center;
    margin-right: 15px !important;
    border: 0 !important;
    padding-bottom: 20px !important;
    position: relative;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    .theme.last {
    margin-right: 0 !important;
    .theme .link {
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    .theme .link span {
    display: block;
    .theme.current {
    background: #EBFAE4;
    color: #65845e;
    .theme.current small,
    .theme.current small a:link,
    .theme.current small a:visited {
    color: #789f72;
    .theme.current .button {
    background: #189100;
    color: #FFF;
    border: 0;
    .theme img.screenshot {
    padding: 5px;
    background: #FFF;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    .theme a:hover img.screenshot {
    background: #CCC;
    .theme small {
    font-weight: normal;
    /* @end */
    /* @group Forms */
    form.delete blockquote {
    width: 75%;
    margin: 0 auto;
    font-style: italic;
    form.delete blockquote h2,
    form.delete .noitalic {
    font-style: normal;
    form.delete blockquote h2 input[type="checkbox"] {
    position: relative;
    top: -.125em;
    form.delete h2.inline {
    display: inline;
    form.delete select {
    position: relative;
    top: -2px;
    form.split label {
    width: 41%;
    float: left;
    text-align: right;
    font-weight: bold;
    padding: 4px 2% 5px;
    color: #999;
    form.split label .sub {
    display: block;
    form.split label input {
    margin: -.5em 0;
    form.split select {
    margin: 3px 0 .5em;
    form.split small,
    form.split .small {
    display: block;
    margin-left: 45%;
    form.split button {
    margin-left: 45%;
    form .buttons {
    margin-top: 2em;
    label {
    display: block;
    font-size: 1.1em;
    form p .sub,
    label .sub,
    tr .sub {
    font-size: .8em;
    color: #999;
    font-weight: normal;
    input.text,
    input[type="text"],
    input[type="password"],
    input.file,
    textarea {
    font-size: 1.25em;
    padding: 3px;
    border: 1px solid #ddd;
    background: #fff;
    input.file {
    border: none;
    input.text,
    input.file,
    select,
    textarea {
    margin-bottom: .25em;
    input.text {
    /* width: 15em; */
    input.checkbox {
    margin: .6em .5em .75em 0;
    span.checkbox {
    position: relative;
    top: -3px;
    textarea {
    font-size: 1.1em;
    font-family: "Monaco", "Consolas", monospace;
    textarea.wide,
    input.text.wide {
    padding: .5%;
    width: 99%;
    _width: 100%; /* Hooray for IE6's randomized box model. */
    input.code,
    textarea.code,
    code {
    font-family: "Consolas", "Monaco", monospace;
    /* @end */
    /* @group Tables */
    table thead tr {
    background: #555;
    color: #fff;
    border: 0 !important;
    border-bottom: 2px solid #444;
    text-shadow: #333 0px 1px 0px;
    table thead tr th {
    padding: .25em .5em;
    font-weight: bold;
    table thead tr th input {
    vertical-align: middle;
    margin: -5px 0 0 !important;
    table thead tr th.header {
    cursor: pointer;
    table thead tr th.headerSortDown,
    table thead tr th.headerSortUp {
    background: #444;
    table tbody tr {
    table tbody tr.last {
    table tbody tr td {
    padding: .5em .7em;
    border-right: 1px solid #eee;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    table tbody tr td.main {
    background: #f9f9f9;
    table tbody tr td.center {
    text-align: center;
    vertical-align: middle;
    table tbody tr td.controls {
    text-align: center;
    font-size: .95em;
    color: #888;
    table tbody tr td.controls img {
    margin-bottom: -3px;
    margin-right: 1px;
    table tbody tr td.main a:link,
    table tbody tr td.main a:visited,
    table tbody tr td.controls a:link,
    table tbody tr td.controls a:visited {
    text-decoration: none;
    tr.draft,
    tr.excerpt,
    tr.scheduled,
    tr.draft td,
    tr.excerpt td,
    tr.scheduled td,
    tr.draft td.main,
    tr.scheduled td.main {
    background-color: #dff4ff;
    border-color: #c2e1ef !important;
    color: #336699;
    tr.excerpt p {
    margin: 0;
    /* @end */
    /* @group Preview */
    h1.preview-header {
    margin: 0 0 .5em !important;
    .preview-content {
    margin: 0 0 2em;
    padding-bottom: .75em;
    border-bottom: 1px dotted #ddd;
    .preview-content ul,
    .preview-content ol {
    margin: 0 0 1em 2em;
    list-style: square;
    .preview-content ol li {
    list-style: decimal;
    .preview-content a:link,
    .preview-content a:visited {
    text-decoration: underline;
    color: #222;
    .preview-content hr {
    margin: 2em 0;
    .preview-content blockquote {
    margin: 0 2em;
    color: #999;
    /* @end */
    /* @group Messages */
    p.message {
    font-size: 1.1em;
    padding: .6em;
    margin-bottom: 1.75em;
    background: #f1f1f1;
    border: 1px solid #ccc;
    p.message.yay {
    background: #189100;
    color: #fff;
    border-color: #105f00;
    p.message.boo {
    background: #d51800;
    color: #fff;
    border-color: #9f1000;
    /* @end */
    /* @group Buttons */
    /* Inspiration from Chawlk. */
    button,
    .button,
    a.next_page,
    a.prev_page {
    display: inline-block;
    font-family: Verdana, Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 1.125em;
    margin: 0 .5em 0 0;
    color: #333;
    padding: .5em .75em;
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-top-color: #f1f1f1;
    border-left-color: #f1f1f1;
    border-bottom: 1px solid #ccc !important;
    cursor: pointer;
    text-decoration: none !important;
    .button {
    padding: .6em 1em .5em .9em;
    button.lite {
    padding: .15em .375em .25em .275em;
    .button.lite,
    a.next_page,
    a.prev_page {
    padding: .1em .4em .2em;
    button.inline {
    position: relative;
    top: -1px;
    padding: 4px 5px 4px 4px;
    button.right,
    .button.right,
    a.next_page {
    margin: 0 0 0 .5em;
    float: right;
    button:hover,
    .button:hover,
    a.next_page:hover,
    a.prev_page:hover {
    background: #f7f7f7;
    border-color: #f7f7f7;
    border-bottom-color: #d1d1d1 !important;
    border-right-color: #d1d1d1;
    button:active,
    .button:active,
    .button.selected,
    a.next_page:active,
    a.prev_page:active {
    background-color: #d7d7d7;
    border-color: #d7d7d7;
    border-left-color: #b1b1b1;
    border-top-color: #b1b1b1;
    border-bottom-color: #d7d7d7 !important;
    button.boo,
    .button.boo {
    background: #faebe4;
    color: #3e3634;
    border-color: #faebe4;
    border-bottom-color: #d6bdb5;
    border-right-color: #d6bdb5;
    button.boo:hover,
    .button.boo:hover {
    background: #d51800;
    color: #fff;
    border-color: #d51800;
    border-bottom-color: #9f1000 !important;
    border-right-color: #9f1000;
    button.boo:active,
    .button.boo:active {
    background: #b30600;
    border-color: #b30600;
    border-left-color: #7d0000;
    border-top-color: #7d0000;
    border-bottom-color: #b30600 !important;
    button.yay,
    .button.yay {
    background: #ebfae4;
    color: #363e34;
    border-color: #ebfae4;
    border-bottom-color: #bdd6b5;
    border-right-color: #bdd6b5;
    button.yay:hover,
    .button.yay:hover {
    background: #189100;
    color: #fff;
    border-color: #189100;
    border-bottom-color: #105f00 !important;
    border-right-color: #105f00;
    button.yay:active,
    .button.yay:active {
    background: #067000;
    border-color: #067000;
    border-left-color: #003d00;
    border-top-color: #003d00;
    border-bottom-color: #067000 !important;
    button[disabled="disabled"],
    button.disabled {
    background: #f0f0f0;
    border-color: #f0f0f0 !important;
    color: #999;
    button[disabled="disabled"]:hover,
    button.disabled:hover {
    background: #f0f0f0;
    border-color: #f0f0f0 !important;
    color: #999;
    cursor: default;
    button img,
    .button img {
    margin: 0 6px -3px -4px;
    button.lite img,
    .button.lite img {
    margin: 0 -1px -3px 0;
    /* @end */
    /* @group Options */
    .more_options_link {
    font-weight: bold;
    color: #999;
    border-bottom: 1px solid #ddd;
    display: block;
    text-decoration: none !important;
    .more_options_link:hover {
    color: #666;
    border-bottom-color: #aaa;
    .more_options {
    background: #f9f9f9;
    padding: 2% 0 0 2%;
    .more_options p {
    width: 48%;
    margin: 0 2% 0 0;
    min-height: 5.5em;
    _height: 5.5em;
    float: left;
    .more_options p input.text {
    width: 96.5%;
    margin: 0;
    /* @end */
    /* @group Page Reordering */
    ul.sort_pages,
    ul.sort_pages ul {
    padding: 0;
    margin: 0 0 0 2em;
    ul.sort_pages li {
    list-style: square;
    ul.sort_pages li a:link,
    ul.sort_pages li a:visited {
    text-decoration: none !important;
    ul.sort_pages input {
    font-size: 1em;
    margin: .25em .25em .25em 0;
    ul.sort_pages .sort-placeholder {
    border: 1px dashed #777;
    display: list-item !important;
    margin-bottom: .5em;
    height: 1.8em;
    ul.sort_pages .sort-hover {
    border: 1px dashed #777 !important;
    /* @end */
    /* @group Helpers & General */
    .breakword {
    word-wrap: break-word !important;
    div.controls.right {
    margin-top: -2px;
    div.controls h4 {
    display: inline;
    div.controls button {
    position: relative;
    top: -2px;
    right: -1px;
    margin: 0 0 0 .5em;
    hr {
    border: 0;
    border-top: 1px solid #ddd;
    #content ul li {
    list-style: square;
    .box {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 1em;
    margin: 0 0 1em;
    .box h1 {
    font-size: 1.25em !important;
    margin: 0 !important;
    .box h1 .sub {
    font-weight: normal;
    font-size: .75em;
    .box h1 span.right {
    font-size: .75em;
    color: #666;
    .box h1 span.right a:link,
    .box h1 span.right a:visited {
    margin-left: 1em;
    text-decoration: none;
    .box h1 span.right a img {
    margin-bottom: -3px;
    .edit_link:hover {
    color: #333;
    .delete_link {
    color: #b30600;
    table tbody td .delete_link {
    margin: 0 -.4em 0 0;
    .delete_link:after {
    content: "!";
    opacity: 0;
    .delete_link:hover {
    color: #f00;
    .delete_link:hover:after {
    color: #f00;
    opacity: 1;
    a.emblem {
    border: none;
    a.emblem img {
    margin-bottom: -2px;
    .pad {
    padding: .75em;
    .margin-right {
    margin-right: 1em;
    .margin-left {
    margin-left: 1em;
    .detail .button.right {
    margin-top: 2.25em;
    .detail h3 {
    margin-bottom: .5em !important;
    .detail.inline {
    position: relative;
    bottom: -.75em;
    .wide {
    width: 100%;
    .clear {
    clear: both;
    .left {
    float: left !important;
    .right {
    float: right !important;
    .center {
    margin: 0 auto;
    text-align: center;
    .inline {
    display: inline;
    .column {
    margin: 0 5em;
    br#after_options {
    display: none;
    .js_enabled {
    display: none;
    .update_chyrp { margin-left: 35%; }
    /* @end */
    And if I am going to these files the Browser downloads it directly. Not showing in the Browser:
    http://192.168.xxx.xxx/chyrp/themes/firecrest/stylesheets/print.css
    http://192.168.xxx.xxx/chyrp/themes/firecrest/stylesheets/screen.css
    print.css
    * { background: #fff; }
    body { font-family: georgia, times, serif; color: black; }
    blockquote { font-style: italic; color: black; }
    a:link, a:visited { border-bottom-width: 1px; border-bottom-style: solid; }
    #sidebar { display: none; }
    screen.css
    body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td { margin: 0; padding: 0; }
    table { border-collapse: collapse; border-spacing: 0; }
    fieldset,img { border: 0; }
    address,caption,cite,code,dfn,em,strong,th,var { font-style: normal; font-weight: normal; }
    li { list-style: none; }
    caption,th { text-align: left; }
    h1,h2,h3,h4,h5,h6 { font-size: 100%; font-weight: normal; }
    abbr,acronym { border: 0; font-variant: normal; }
    input,textarea,select { font-family: inherit; font-size: inherit; font-weight: inherit; }
    a { text-decoration: none; color: inherit; }
    html {
    height: 100%;
    font-size: 62.5%;
    body {
    background-color: #eff3f5;
    color: #45555d;
    font: normal 1.1em/1.8em "Droid Serif", Georgia, serif;
    margin: 0;
    height: 100%;
    word-spacing: 1px;
    /* Main Colors */
    a:link { color: #8699a3; border-bottom: 1px solid }
    a:hover { color #45555d; }
    pre {
    font-size: 10px;
    code {
    font-family: monospace;
    pre code {
    display: block;
    background: #111;
    color: #fff;
    padding: .5em .75em .35em;
    margin-bottom: 1em;
    em { font-style: italic; }
    strong { font-weight: bold; }
    a:link,
    a:visited {
    color: #8699a3;
    border-bottom: 1px dotted;
    -webkit-transition: color .5s;
    -moz-transition: color .5s;
    a:hover {
    border: none;
    -webkit-transition: color .5s;
    -moz-transition: color .5s;
    h1, h2 { letter-spacing: -.01em; }
    h1 { /* displayed at 28px */
    color: #45555d;
    font: bold 2.4em "Droid Serif", Georgia, serif;
    margin-bottom: .3em
    h2 { /* displayed at 26px */
    color: #45555d;
    font: normal 2.2em "Droid Serif", Georgia, serif;
    margin-bottom: .4em;
    h3 { /* displayed at 18px */
    font: normal 1.5em "Droid Serif", Georgia, serif;
    margin-bottom: .5em;
    h4 { /* displayed at 15px */
    font-size: 1.25em;
    font-weight: normal;
    margin-bottom: .9em;
    h5 { /* displayed at 12px */
    font-size: 1em;
    font-weight: normal;
    margin-bottom: 1em;
    h6 {
    font-size: .8em;
    font-weight: normal;
    margin-bottom: 1.25em;
    ul { margin: 0 0 0 1.75em; }
    ul li { list-style-type: disc; }
    ol {
    padding-left: 2em;
    margin-bottom: 1em;
    ol li { list-style: decimal; }
    hr {
    border: 0;
    border-top: 1px solid #ddd;
    label {
    color: #8699a3;
    display: block;
    font: normal 1em "Droid Serif", Georgia, serif;
    padding: 0 0 0.5em 0;
    input:focus { outline: none; }
    input[type="text"],
    input[type="password"],
    textarea {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    font-family: 'Monaco', Courier, monospace;
    margin-bottom: 1.5em;
    padding: .3em .4em;
    input[type="file"] {
    margin-bottom: 1.5em;
    input[type="text"],
    input[type="password"] {
    width: 20em;
    textarea.wide {
    width: 470px;
    input.big {
    font-size: 1.5em;
    div#controls {
    background-color: #45555D;
    border-bottom: .1em solid #d0dde4;
    padding: .2em 0 .3em;
    width: 100%;
    font-size: 1.2em;
    div#controls ul {
    margin: 0 auto;
    padding: .4em;
    width: 750px;
    div#controls ul li {
    background: none;
    display: inline;
    font-weight: normal;
    margin: 0;
    padding: 0;
    div#controls ul li a:link:first-child {
    padding-left: 0;
    div#controls ul li a:link,
    div#controls ul li a:visited {
    color: #E4EBEF;
    border: none;
    padding: .1em .2em;
    margin-right: 10px;
    div#controls ul li a:hover {
    color: #c8d0d5;
    div#controls ul li.close a:link,
    div#controls ul li.close a:visited {
    color: #ff6039;
    div#controls ul li.close a:hover {
    color: #e35533;
    /* Start Header Styling */
    div#header {
    margin: 0 0 3em;
    padding: 10px 0px 15px;
    width: 100%;
    border-bottom: 2px solid #e4ebef;
    div#header #search_box {
    float: right;
    padding-top: 5px;
    div#header #search_box input#search {
    background-color: #fff;
    -webkit-border-radius: 30px;
    -moz-border-radius: 30px;
    font: 12px "Droid Serif", Georgia, serif;
    border-radius: 30px;
    border: 5px solid #e4ebef;
    margin: -5px auto 0;
    width: 178px;
    padding: .4em .7em;
    display: block;
    div#header .header_box {
    margin: auto;
    width: 100%;
    font-size: 1.2em;
    div#header h1 {
    font-size: 2em;
    padding-top: 5px;
    div#header h1 a:link,
    div#header h1 a:visited {
    margin-top: 5px;
    margin-bottom: .2em;
    font-weight: normal;
    text-transform: uppercase;
    color: #8699a3;
    border: none;
    div#header h1 a:hover {
    color: #45555d;
    text-decoration: none;
    border: none;
    div#header span.description {
    font-size: 12px;
    font-weight: normal;
    font-style: italic;
    color: #8699a3;
    position: relative;
    top: -4px;
    /* Finish Header Styling */
    div#container {
    width: 750px;
    margin: 2em auto;
    padding: 0 0 1em 0;
    div#wrapper {
    width: 750px;
    margin: 2em auto;
    padding: 0 0 1em 0;
    font-size: 1.09em;
    div#content {
    width: 520px;
    float: left;
    div#sidebar {
    float: right;
    margin-left: 30px;
    width: 200px;
    border-bottom: 1px solid #d0dde4;
    color: #8699a3;
    font-size: 0.91em;
    -moz-border-radius-bottomleft: 3px;
    -moz-border-radius-bottomright: 3px;
    border-radius: 0px 0px 3px 3px;
    div#sidebar a:link,
    div#sidebar a:visited {
    color: #8699a3;
    div#sidebar a:hover {
    color: #45555d;
    text-decoration: none;
    div#sidebar h5 {
    color: #45555d;
    font-weight: normal;
    margin: 0 0 .2em 0;
    font-size: 1em;
    div#sidebar ul, div#sidebar ul li {
    list-style: none;
    margin: 0;
    padding: 0;
    div#sidebar #user_links {
    margin-bottom: 10px;
    border-bottom: 1px solid #d0dde4;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background: #fffdcc;
    float: left;
    width: 100%;
    div#sidebar #user_links ul {
    display: inline;
    div#sidebar #user_links li {
    position: relative;
    list-style: none;
    float: left;
    padding: 10px 24px;
    display: block;
    text-align: center;
    div#sidebar #user_links li a {
    text-transform: uppercase;
    color: #8699a3;
    float: left;
    border-bottom: 1px dotted;
    line-height: 14px;
    padding-top: 3px;
    div#sidebar #user_links li a:hover {
    background: none;
    border: none;
    color: #45555d;
    div#sidebar #user_links li:first-child {
    border-right: 1px solid #eee;
    div#sidebar #user_links .logout_link {
    div#sidebar #about_info {
    border-bottom: 1px solid #d0dde4;
    -webkit-border-top-left-radius: 3px;
    -webkit-border-top-right-radius: 3px;
    -moz-border-radius-topleft: 3px;
    -moz-border-radius-topright: 3px;
    border-radius: 3px 3px 0px 0px;
    background: #fff;
    float: left;
    width: 170px;
    padding: 15px;
    line-height: 1.6em;
    div#sidebar #about_info p img {
    float: left;
    margin: 0 10px 0px 0;
    border-bottom: 1px solid #d0dde4;
    div#sidebar #asides {
    background: #e4ebef;
    float: left;
    div#asides div {
    border-top: 1px solid #eff3f5;
    border-bottom: 1px solid #d0dde4;
    padding: 15px;
    width: 170px;
    div#asides div:first-child {
    border-top: none;
    div#asides div:last-child {
    border-bottom: none;
    div#sidebar ul li {
    color: #45555d;
    div.notice, div.message, div.warning, div.date {
    color: #45555d;
    font-weight: bold;
    margin: 0 0 1em 0;
    padding: .5em .8em;
    div.notice {
    background: url('../images/dots-green.gif') repeat top left;
    div.message {
    background: url('../images/dots-blue.gif') repeat top left;
    div.warning {
    background: url('../images/dots-red.gif') repeat top left;
    div.date {
    background: url('../images/dots-lightgrey.gif') repeat top left;
    cursor: default;
    div.notice .sub, div.message .sub, div.warning .sub {
    font-size: .9em;
    color: #8699a3;
    margin-left: .5em;
    div.post {
    margin: 0 0 2em;
    word-wrap: break-word;
    position: relative;
    height: 100%;
    border: 1px solid #d0dde4;
    -moz-border-radius-bottomleft: 3px;
    -moz-border-radius-bottomright: 3px;
    border-radius: 0px 0px 3px 3px;
    div.post .subpost {
    background: #fff;
    -moz-border-radius-bottomleft: 3px;
    -moz-border-radius-bottomright: 3px;
    border-radius: 0px 0px 3px 3px;
    border: 4px solid #f4f5f6;
    padding: 20px 20px 0px;
    font-size: 1em;
    /*div.post.quote .subpost {
    border: 4px solid rgba(0, 0, 0, .3);
    /* .post:before {
    border: 1px solid #d0dde4;
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    -webkit-border-bottom-left-radius: 3px;
    -webkit-border-bottom-right-radius: 3px;
    -moz-border-radius-bottomleft: 3px;
    -moz-border-radius-bottomright: 3px;
    border-radius: 0px 0px 3px 3px;
    z-index: 1;
    .post:after {
    content: '';
    position: absolute;
    width: 98.5%;
    height: 95%;
    border: 4px solid #f7f7f7;
    left: 1px;
    top: 1px;
    -moz-border-radius-bottomleft: 3px;
    -moz-border-radius-bottomright: 3px;
    border-radius: 0px 0px 3px 3px;
    z-index: 1;
    div.post .feather_type {
    position: relative;
    margin-left: -47px;
    top: 1.66em;
    div.post .feather_type_name {
    line-height: 19px;
    font-size: 0.83em;
    color: #8699a3;
    background: #fffdcc;
    text-align: center;
    text-transform: uppercase;
    padding: 4px 3px;
    display: block;
    float: left;
    width: 40px;
    -webkit-border-top-left-radius: 3px;
    -webkit-border-bottom-left-radius: 3px;
    -moz-border-radius-topleft: 3px;
    -moz-border-radius-bottomright: 3px;
    border-radius: 3px 0px 0px 3px;
    div.post .feather_type span.shadow {
    background: url(../images/post-tag-shadow.png) top left no-repeat;
    position: absolute;
    top: 27px;
    left: 0;
    width: 40px;
    height: 4px;
    display: block;
    div.post .post_shadow {
    display: block;
    float: right;
    margin-right: 1px;
    width: 516px;
    height: 6px;
    background: url(../images/post-shadow.png) 0px 0px no-repeat;
    div.post a:link,
    div.post a:visited {
    /* color: #3f5161;*/
    color: #45555d;
    div.post h2.title, div.page h2.title {
    padding: .1em 0 .2em 0;
    margin: 0;
    div.page h2.title {
    margin: -4px -20px 20px;
    div.post.text h2.title, div.page h2.title {
    background: url('../images/title-ptn.png') repeat left top;
    margin: -5px -20px 20px;
    padding: 0px 20px;
    font-size: 2.16em;
    div.post h2.title a:link,
    div.post h2.title a:visited {
    color: #45555d;
    font-style: normal;
    font-weight: normal;
    border: none;
    div.post h2.title a:hover {
    color: #ff6039;
    div.post .pinned_text {
    content: "!";
    float: left;
    font-size: 1.5em;
    font-weight: bold;
    margin: -1.5em 0 0 -2em;
    color: #e35533;
    div.post .private_text {
    float: left;
    font-size: .8em;
    font-weight: bold;
    margin: .3em 0 0 -5em;
    color: #e35533;
    div.post .scheduled_text {
    float: left;
    font-size: .8em;
    font-weight: bold;
    margin: .3em 0 0 -7em;
    color: #e35533;
    div.post p,
    div.page p {
    padding: 0 0 1em;
    div.post li,
    div.page li { }
    div.post li p,
    div.page li p {
    font-size: 1em;
    div.post pre,
    div.page pre {
    padding: 0 0 1.5em;
    div.post blockquote {
    padding: .5em .8em;
    background: #f9f9f9;
    border: .1em solid #eee;
    color: #45555d;
    margin: 0 0 1em 0;
    div.post blockquote p {
    padding: 0;
    div.post .post_meta {
    font-size: 0.91em;
    color: #8699a3;
    div.post .post_meta a:link, div.post .post_meta a:visited {
    color: #8699a3;
    div.post .post_meta a:hover {
    color: #45555d;
    border: none;
    ::selection {
    background: #ff6039;
    color: #fff;
    div.post .post_meta .info {
    margin: 20px -20px 0px;
    padding: 3px 20px;
    background-color: #f4f5f6;
    float: left;
    width: 470px;
    div.post .post_meta .info li {
    display: inline;
    padding: 7px 10px 7px 25px;
    border-right: 1px solid #fefefe;
    div.post .post_meta .info li.date {
    padding-left: 20px;
    div.post .post_meta .info li:last-child {
    border: none;
    .post_meta .info .has_icon { position: relative; padding-left: 20px; }
    .post_meta .has_icon .icon {
    width: 15px; height: 15px;
    background-image: url("../images/icons.png");
    position: absolute;
    left: 5px; top: 6px;
    z-index: 1;
    .post_meta .icon_posted .icon { background-position: 0px 0px; left: 0; }
    .post_meta .icon_comment .icon { background-position: -15px 0px; }
    .post_meta .icon_like .icon { background-position: -30px 0px; }
    .post_meta .icon_category .icon { background-position: -60px 0px; }
    .post_meta .icon_permalink .icon{ background-position: -80px -15px; width: 8px; left: 10px; top: 5px; }
    .post_meta .icon_tags .icon { background-position: -45px 0px; top: 3px; left: 0; }
    .post_meta a { border: none; }
    .post_meta .permalink {
    position: relative;
    overflow: hidden;
    margin: 13px -20px 15px 0px;
    padding: 3px 20px 3px 25px;
    float: right;
    background: #f4f5f6;
    .post_meta .tags {
    position: relative;
    overflow: hidden;
    margin: 15px 0;
    padding: 0px 0px 0px 20px;
    float: left;
    .post_meta .tags a {
    font-family: "Droid Serif", Georgia, serif;
    font-size: 0.83em;
    line-height: 1;
    display: inline;
    padding: 3px 6px 4px;
    background: #f4f5f6;
    -webkit-transition: background .3s;
    -moz-transition: background .3s;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    color: #8699a3;
    font-style: normal;
    .post_meta .tags a:hover {
    -webkit-transition: background .3s;
    -moz-transition: background .3s;
    color: #8699a3!important;
    border: none;
    background: #E4EBEF;
    .post_meta .author_avatar {
    float: left;
    display: inline;
    margin-right: 10px;
    position: relative;
    .post_meta .author_avatar img { display: block; }
    #content .page_nav { margin-top: 2em; text-align: center; }
    #content .page_nav li { padding: 5px 0 7px; float: left; display: inline; margin-right: 20px; }
    #content .page_nav .icon { background-color: #999 !important; }
    #content .page_nav .icon_prev .icon { background-position: -310px -111px; }
    #content .page_nav .icon_next .icon { background-position: -330px -111px; left: auto; right: 0; }
    #content .page_nav .icon_next { padding-left: 0; padding-right: 20px; }
    #content .page_nav li:hover .icon { background-color: #666 !important; }
    .post_meta li.facebook { padding-top: 7px; position: relative; overflow: hidden; }
    .post_meta li.facebook iframe { height: 21px; float: left; display: inline; zoom: 1; }
    .post_meta li.facebook iframe.twitter-share-button { margin-right: 7px; }
    div.post span.controls,
    div.page span.controls {
    float: right;
    font-style: normal;
    div.post ul {
    margin-bottom: 1em;
    div.post.quote blockquote {
    border: 0;
    color: #45555d;
    font: italic 1.7em/1.25em "Droid Serif", Georgia, serif;
    margin: -20px 0 10px -20px;
    padding: 50px 20px;
    width: 470px;
    text-align: center;
    background-color: rgba(254, 252, 204, 0.7);
    position: relative;
    div.post.quote blockquote:before {
    content: '“';
    height: 0;
    top: 40px;
    left: -15px;
    font-size: 7em;
    position: absolute;
    color: rgba(69, 84, 93, 0.05);
    div.post.quote blockquote:after {
    content: '”';
    height: 0px;
    bottom: -2px;
    position: absolute;
    right: 2px;
    font-size: 7em;
    color: rgba(69, 84, 93, 0.05);
    div.post.quote .source {
    color: #45555d;
    display: block;
    div.post.link h2 a:link,
    div.post.link h2 a:visited {
    color: #3f5161;
    font-size: 1em;
    margin: 0 0 -.5em 0;
    padding: 0;
    text-decoration: underline;
    div.post.link h2 a:hover {
    color: #354451;
    div.post.link p {
    color: #45555d;
    div.post.chat p {
    display: inline;
    div.post.chat ul {
    font-family: "monaco", monospace;
    font-size: .9em;
    margin: 0 1em 1em 0;
    padding: 0;
    color: #535353;
    div.post.chat ul li {
    background: none;
    list-style-type: none;
    padding: 0;
    div.post.chat li .label {
    color: #2D3879;
    div.post.chat li.me .label {
    color: #AB2F26;
    div.post.photo img, div.post.text img {
    max-width: 510px;
    margin: -20px 0px 20px -20px;
    div.post a img { border: none; vertical-align: top; }
    div.post.photo p,
    div.post.audio p,
    div.post.video p {
    margin: .4em 0;
    div.post.video iframe, div.post.video embed {
    max-width: 510px;
    margin: -20px 0px 20px -20px;
    div.page, div.archive {
    margin: 0 0 2em;
    word-wrap: break-word;
    position: relative;
    height: 100%;
    border: 1px solid #d0dde4;
    background: #fff;
    -moz-border-radius-bottomleft: 3px;
    -moz-border-radius-bottomright: 3px;
    border-radius: 0px 0px 3px 3px;
    padding: 20px;
    div.page .page_shadow, div.archive .page_shadow {
    display: block;
    width: 516px;
    height: 6px;
    background: url(../images/post-shadow.png) 0px 0px no-repeat;
    position: relative;
    top: 26px;
    right: 19px;
    div.page h2 {
    color: #45555d;
    font: normal 2.2em "Droid Serif", Georgia, serif;
    letter-spacing: -.01em;
    div.page h2.title {
    padding: .2em 0 .6em 0;
    div.page h2.title {
    background: url('../images/title-ptn.png') repeat left top;
    margin: -5px -20px 20px;
    padding: 5px 0 0 20px;
    div.page span.controls {
    float: right;
    /* Start Content Control Links */
    a.comment_delete_link,
    a.comment_edit_link,
    a.comment_replyto_link,
    a.delete_link,
    a.edit_link,
    a.next_page,
    a.prev_page,
    a.next_post,
    a.prev_post,
    a.cancel,
    a.logout {
    font-weight: normal;
    font-size: 10px;
    padding: 1px 2px;
    a.comment_delete_link,
    a.comment_edit_link,
    a.comment_replyto_link {
    float: right;
    margin: 0 0 0 .5em;
    a.delete_link {
    color: #d8583e !important;
    padding: 0;
    a.edit_link {
    color: #93ba52 !important;
    padding: 0;
    a.comment_replyto_link {
    a.next_page, a.next_page:visited,
    a.prev_page, a.prev_page:visited,
    a.next_post, a.next_post:visited,
    a.prev_post, a.prev_post:visited {
    -webkit-transition: background-color .3s;
    background-color: #e4ebef;
    color: #45555d;
    margin: 0 0 2em;
    padding: .6em .8em;
    border: none;
    a.next_page span.arrow, a.next_post span.arrow {
    background: url(../images/arrows.png) no-repeat right top;
    float: right;
    height: 9px;
    position: relative;
    width: 6px;
    margin-left: 5px;
    margin-top: 4px;
    a.prev_page span.arrow, a.prev_post span.arrow {
    background: url(../images/arrows.png) no-repeat left top;
    float: left;
    height: 9px;
    position: relative;
    width: 6px;
    margin-right: 5px;
    margin-top: 4px;
    a.next_page, a.next_post {
    -moz-border-radius-topright: 3px;
    -moz-border-radius-bottomright: 3px;
    -webkit-border-top-right-radius: 3px;
    -webkit-border-bottom-right-radius: 3px;
    border-radius: 0px 3px 3px 0px;
    position: relative;
    a.prev_page, a.prev_post {
    -moz-border-radius-topleft: 3px;
    -moz-border-radius-bottomleft: 3px;
    -webkit-border-top-left-radius: 3px;
    -webkit-border-bottom-left-radius: 3px;
    border-radius: 3px 0px 0px 3px;
    a.next_page:hover,
    a.prev_page:hover,
    a.next_post:hover,
    a.prev_post:hover {
    -webkit-transition: background-color .3s;
    background-color: #D0DDE4;
    a.cancel {
    color: #e35533;
    border: none;
    text-decoration: underline;
    a.logout {
    /* color: #5B7C99;*/
    color: #8699a3;
    border: none;
    float: right;
    a.logout:hover {
    color: #45555d;
    /* Finish Content Control Links */
    .inline_edit {
    color: #8699a3;
    padding: 1em;
    background: #D0DDE4;
    position: relative;
    .inline_edit input[type="text"],
    .inline_edit textarea {
    background-color: #f4f5f6;
    border: none;
    color: #45555d;
    padding: .4em;
    width: 490px;
    .inline_edit .more_options_link:link {
    color: #5B7C99;
    display: block;
    font-weight: bold;
    padding: 0 0 .3em 0;
    .inline_edit .more_options {
    background-color: #E4EBEF;
    padding: 1em;
    .inline_edit .more_options p {
    float: left;
    width: 50%;
    min-height: 5em;
    padding-bottom: .5em;
    margin: 0;
    .inline_edit .more_options p input[type="text"] {
    width: 90%;
    margin-bottom: 0;
    .inline_edit .more_options p .sub {
    font-size: .8em;
    color: #8699a3;
    .inline_edit .buttons {
    padding: .5em;
    background: #D0DDE4;
    color: #45555d;
    .inline_edit h2 {
    color: #83A650;
    .post_edit {
    margin-bottom: 2em;
    div.pagination {
    margin: 0 0 2em 0;
    .sub {
    font-size: .85em;
    color: #8699a3;
    font-weight: normal;
    button {
    background-color: #E4EBEF;
    border: 1px solid #D0DDE4;
    border-bottom: 1px solid #a0b5bf;
    border-right: 1px solid #a0b5bf;
    color: #45555d;
    font-size: 1em;
    font-weight: bold;
    padding: 5px 8px;
    button:hover {
    color: #5B7C99;
    cursor: pointer;
    p.lost_pass { margin: 0 0 1em 0; }
    span.pages {
    color: #8699a3;
    font-weight: bold;
    padding: 0 0.3em;
    span.who,
    span.waiting {
    background-color: #fffdcc;
    display: block;
    margin: 0 0 1em;
    padding: 4px 6px;
    .clear {
    clear: both;
    .right {
    float: right;
    .left {
    float: left;
    /* Comments Styling */
    div#comment_form {
    padding: 20px;
    h3.comments { margin: 1em 0; }
    ol.comments {
    list-style: none;
    margin-bottom: 1em;
    padding: 0;
    word-wrap: break-word;
    ol.comments li {
    list-style: none;
    margin-bottom: 1.5em;
    width: auto;
    ol.comments li blockquote {
    background: #E4EBEF;
    color: #45555d;
    margin: 0;
    padding: 1em 1em 0;
    ol.comments li blockquote p {
    padding: 0 0 1em;
    ol.comments li blockquote a:link,
    ol.comments li blockquote a:visited {
    color: #aaa;
    ol.comments li blockquote blockquote {
    padding: 0 1em;
    color: #aaa;
    ol.comments li cite {
    background: #E4EBEF;
    color: #8699a3;
    display: block;
    font-style: normal;
    margin: 0;
    padding: .4em 1.3em;
    font-size: 0.91em;
    ol.comments li cite a:link,
    ol.comments li cite a:visited {
    color: #45555d;
    border: none;
    ol.comments li cite a.permalink:link,
    ol.comments li cite a.permalink:visited {
    color: #8699a3;
    border-bottom: 1px dotted;
    ol.comments li cite a:hover {
    color: #45555d!important;
    border: none!important;
    ol.comments li ul,
    ol.comments li ol {
    margin: 0;
    padding: 0 0 1em 1.5em;
    ol.comments li ul li,
    ol.comments li ol li {
    margin: 0;
    padding: 0;
    ol.comments li ol li {
    list-style-type: decimal;
    ol.comments li.child{
    margin-left:25px;
    span.comment_author a {
    color: #ff6039!important;
    span.label { color: #8699a3; }
    #add_comment { margin-top: 3em; border-top: 4px solid #D0DDE4; padding-top: 1em; }
    /* Miscellaneous */
    /* Emoticons module. */
    img.smiley {
    margin: 0 0 -.3em;
    /* Tags module. */
    .tag {
    font-family: "Droid Serif", Georgia, serif;
    .tags_select {
    display: inline-block;
    margin-top: .5em;
    .tags_select a {
    padding: .1em .4em;
    border: .1em solid #DDDDA8;
    background: #fffdcc;
    text-decoration: none;
    border-top-width: 0;
    border-left-width: 0;
    color: #45555d;
    .tags_select a.tag_added {
    background: #D0DDE4;
    border-top-width: .1em;
    border-bottom: 0;
    border-left-width: .1em;
    border-right: 0;
    border-color: #8699a3;
    /*** FOOTER ***/
    div#footer {
    background: #E4EBEF;
    clear: both;
    color: #8699a3;
    margin: 8em 0 3em;
    padding: .4em .9em;
    border-top: 1px solid #D0DDE4;
    width: 500px;
    -webkit-border-bottom-right-radius: 3px;
    -webkit-border-bottom-left-radius: 3px;
    -moz-border-radius-bottomleft: 3px;
    -moz-border-radius-bottomright: 3px;
    border-radius: 0px 0px 3px 3px;
    font-size: 0.91em;
    div#footer a:link, div#footer a:visited { color: #8699A3; }
    div#footer a:hover { color: #45555d; }
    div#footer a.atom {
    border: none;
    margin-top: -2em;
    padding: .3em .6em;
    float: right;
    div#footer a.atom:hover { background-color: #fffdcc; }
    /*** DEBUGGER ***/
    #debug {
    background: #ffffdd;
    font-family: normal 1.1em/1.5em 'Helvetica Neue', Helvetica, Arial, Verdana, sans-serif;
    color: #666;
    padding: .4em .75em .5em .75em;
    border-top: .1em solid #ddd;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    max-height: 33%;
    overflow-y: auto;
    overflow-x: hidden;
    #debug h5 {
    margin: 0;
    font-size: 1.1em;
    color: #a3a39a;
    #debug h5 .sub {
    color: #b3b3aa;
    #debug ol.queries li {
    margin: 0 0 1em;
    #debug pre {
    background: #fff;
    border: 1px solid #ddd;
    padding: 0 .5em;
    word-wrap: break-word;
    #debug .toggle {
    font-weight: bold;
    color: #666;
    float: right;
    FOR FLATPRESS:
    These following files are also shown as plain text in the browser itself. So NO downloading:
    http://192.168.xxx.xxx/flatpress/admin/res/admin.css
    http://192.168.xxx.xxx/flatpress/fp-interface/themes/leggero/flatmaas-rev/res/admin.css
    http://192.168.xxx.xxx/flatpress/fp-interface/themes/leggero/flatmaas-rev/res/column.css
    http://192.168.xxx.xxx/flatpress/fp-interface/themes/leggero/flatmaas-rev/res/common.css
    http://192.168.xxx.xxx/flatpress/fp-interface/themes/leggero/flatmaas-rev/res/globals.css
    http://192.168.xxx.xxx/flatpress/fp-interface/themes/leggero/flatmaas-rev/res/style.css

  • Trying to get lighttpd to upload a file through perl cgi

    Hi, I'm quite new in these things, so I might be doing something obvious wrong, but I'd like some help on this.
    I'm trying to make a webpage where people can upload files, this is the html page (located at /srv/html/index.html):
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>lighttpd Test Page</title>
    </head>
    <body>
    <div style="text-align:center; font: 12px sans-serif;">
    <span style="font-weight: bold; font-size: 20px;">
    Arch Linux
    </span>
    <br><br>
    This is a test page for the lighttpd Web Server.<br>
    <form action="/cgi-bin/upload.pl" method="post" enctype="multipart/form-data">
    <input type="file" name="fileName" size="40">
    <input type="submit" value="Send">
    <input type="reset">
    </form>
    </div>
    </body>
    </html>
    And the backend (in /srv/html/cgi-bin/upload.pl):
    #!/usr/bin/perl -wT
    use strict;
    use CGI;
    use CGI::Carp qw ( fatalsToBrowser );
    use File::Basename;
    $CGI::POST_MAX = 1024 * 1024 * 5000; # 5GB filesize limit
    my $safe_filename_characters = "a-zA-Z0-9_.-";
    my $upload_dir = "/srv/jail/";
    my $query = new CGI;
    my $filename = $query->param("fileName");
    if ( !$filename )
    print $query->header ( );
    print "There was a problem uploading your file (filesize limit may be exceeded).";
    exit;
    my ( $name, $path, $extension ) = fileparse ( $filename, '\..*' );
    $filename = $name . $extension;
    $filename =~ tr/ /_/;
    $filename =~ s/[^$safe_filename_characters]//g;
    if ( $filename =~ /^([$safe_filename_characters]+)$/ )
    $filename = $1;
    else
    die "Filename contains invalid characters";
    my $upload_filehandle = $query->upload("fileName");
    open ( UPLOADFILE, ">$upload_dir/$filename" ) or die "$!";
    binmode UPLOADFILE;
    while ( <$upload_filehandle> )
    print UPLOADFILE;
    close UPLOADFILE;
    print $query->header ( );
    print <<END_HTML;
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Done!</title>
    </head>
    <body>
    <p>Uploading done!</p>
    </body>
    </html>
    END_HTML
    My server config:
    # lighttpd configuration file
    # use it as a base for lighttpd 1.0.0 and above
    # $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $
    ############ Options you really have to take care of ####################
    ## modules to load
    # at least mod_access and mod_accesslog should be loaded
    # all other module should only be loaded if really neccesary
    # - saves some time
    # - saves memory
    server.modules = (
    # "mod_rewrite",
    # "mod_redirect",
    # "mod_alias",
    "mod_access",
    # "mod_cml",
    # "mod_trigger_b4_dl",
    # "mod_auth",
    # "mod_status",
    # "mod_setenv",
    # "mod_fastcgi",
    # "mod_proxy",
    # "mod_simple_vhost",
    # "mod_evhost",
    # "mod_userdir",
    "mod_cgi",
    # "mod_compress",
    # "mod_ssi",
    # "mod_usertrack",
    # "mod_expire",
    # "mod_secdownload",
    # "mod_rrdtool",
    "mod_accesslog" )
    ## a static document-root, for virtual-hosting take look at the
    ## server.virtual-* options
    server.document-root = "/srv/http/"
    ## where to send error-messages to
    server.errorlog = "/var/log/lighttpd/error.log"
    # files to check for if .../ is requested
    index-file.names = ( "index.php", "index.html",
    "index.htm", "default.htm" )
    ## set the event-handler (read the performance section in the manual)
    # server.event-handler = "freebsd-kqueue" # needed on OS X
    # mimetype mapping
    mimetype.assign = (
    ".pdf" => "application/pdf",
    ".sig" => "application/pgp-signature",
    ".spl" => "application/futuresplash",
    ".class" => "application/octet-stream",
    ".ps" => "application/postscript",
    ".torrent" => "application/x-bittorrent",
    ".dvi" => "application/x-dvi",
    ".gz" => "application/x-gzip",
    ".pac" => "application/x-ns-proxy-autoconfig",
    ".swf" => "application/x-shockwave-flash",
    ".tar.gz" => "application/x-tgz",
    ".tgz" => "application/x-tgz",
    ".tar" => "application/x-tar",
    ".zip" => "application/zip",
    ".mp3" => "audio/mpeg",
    ".m3u" => "audio/x-mpegurl",
    ".wma" => "audio/x-ms-wma",
    ".wax" => "audio/x-ms-wax",
    ".ogg" => "application/ogg",
    ".wav" => "audio/x-wav",
    ".gif" => "image/gif",
    ".jar" => "application/x-java-archive",
    ".jpg" => "image/jpeg",
    ".jpeg" => "image/jpeg",
    ".png" => "image/png",
    ".xbm" => "image/x-xbitmap",
    ".xpm" => "image/x-xpixmap",
    ".xwd" => "image/x-xwindowdump",
    ".css" => "text/css",
    ".html" => "text/html",
    ".htm" => "text/html",
    ".js" => "text/javascript",
    ".asc" => "text/plain",
    ".c" => "text/plain",
    ".cpp" => "text/plain",
    ".log" => "text/plain",
    ".conf" => "text/plain",
    ".text" => "text/plain",
    ".txt" => "text/plain",
    ".dtd" => "text/xml",
    ".xml" => "text/xml",
    ".mpeg" => "video/mpeg",
    ".mpg" => "video/mpeg",
    ".mov" => "video/quicktime",
    ".qt" => "video/quicktime",
    ".avi" => "video/x-msvideo",
    ".asf" => "video/x-ms-asf",
    ".asx" => "video/x-ms-asf",
    ".wmv" => "video/x-ms-wmv",
    ".bz2" => "application/x-bzip",
    ".tbz" => "application/x-bzip-compressed-tar",
    ".tar.bz2" => "application/x-bzip-compressed-tar",
    # default mime type
    "" => "application/octet-stream",
    # Use the "Content-Type" extended attribute to obtain mime type if possible
    #mimetype.use-xattr = "enable"
    ## send a different Server: header
    ## be nice and keep it at lighttpd
    # server.tag = "lighttpd"
    #### accesslog module
    accesslog.filename = "/var/log/lighttpd/access.log"
    ## deny access the file-extensions
    # ~ is for backupfiles from vi, emacs, joe, ...
    # .inc is often used for code includes which should in general not be part
    # of the document-root
    url.access-deny = ( "~", ".inc" )
    $HTTP["url"] =~ "\.pdf$" {
    server.range-requests = "disable"
    # which extensions should not be handle via static-file transfer
    # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
    static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
    ######### Options that are good to be but not neccesary to be changed #######
    ## bind to port (default: 80)
    server.port = ###
    ## bind to localhost (default: all interfaces)
    #server.bind = "127.0.0.1"
    ## error-handler for status 404
    #server.error-handler-404 = "/error-handler.html"
    #server.error-handler-404 = "/error-handler.php"
    ## to help the rc.scripts
    server.pid-file = "/var/run/lighttpd/lighttpd.pid"
    ###### virtual hosts
    ## If you want name-based virtual hosting add the next three settings and load
    ## mod_simple_vhost
    ## document-root =
    ## virtual-server-root + virtual-server-default-host + virtual-server-docroot
    ## or
    ## virtual-server-root + http-host + virtual-server-docroot
    #simple-vhost.server-root = "/srv/http/vhosts/"
    #simple-vhost.default-host = "www.example.org"
    #simple-vhost.document-root = "/htdocs/"
    ## Format: <errorfile-prefix><status-code>.html
    ## -> ..../status-404.html for 'File not found'
    #server.errorfile-prefix = "/usr/share/lighttpd/errors/status-"
    #server.errorfile-prefix = "/srv/http/errors/status-"
    ## virtual directory listings
    #dir-listing.activate = "enable"
    ## enable debugging
    #debug.log-request-header = "enable"
    #debug.log-response-header = "enable"
    #debug.log-request-handling = "enable"
    #debug.log-file-not-found = "enable"
    ### only root can use these options
    # chroot() to directory (default: no chroot() )
    #server.chroot = "/"
    ## change uid to <uid> (default: don't care)
    server.username = "http"
    ## change uid to <uid> (default: don't care)
    server.groupname = "http"
    #### compress module
    #compress.cache-dir = "/var/cache/lighttpd/compress/"
    #compress.filetype = ("text/plain", "text/html")
    #### proxy module
    ## read proxy.txt for more info
    #proxy.server = ( ".php" =>
    # ( "localhost" =>
    # "host" => "192.168.0.101",
    # "port" => 80
    #### fastcgi module
    ## read fastcgi.txt for more info
    ## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
    #fastcgi.server = ( ".php" =>
    # ( "localhost" =>
    # "socket" => "/var/run/lighttpd/php-fastcgi.socket",
    # "bin-path" => "/usr/bin/php-cgi"
    #### CGI module
    cgi.assign = ( ".pl" => "/usr/bin/perl",
    ".cgi" => "/usr/bin/perl" )
    #### SSL engine
    #$SERVER["socket"] == "0.0.0.0:443" {
    ssl.engine = "enable"
    ssl.pemfile = "/etc/ssl/private/lighttpd.pem"
    # server.errorlog = "/var/log/lighttpd/error-ssl.log"
    # accesslog.filename = "/var/log/lighttpd/access-ssl.log"
    # server.document-root = "/home/lighttpd/html-ssl"
    #### status module
    #status.status-url = "/server-status"
    #status.config-url = "/server-config"
    #### auth module
    ## read authentication.txt for more info
    #auth.backend = "plain"
    #auth.backend.plain.userfile = "lighttpd.user"
    #auth.backend.plain.groupfile = "lighttpd.group"
    #auth.backend.ldap.hostname = "localhost"
    #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
    #auth.backend.ldap.filter = "(uid=$)"
    #auth.require = ( "/server-status" =>
    # "method" => "digest",
    # "realm" => "download archiv",
    # "require" => "user=jan"
    # "/server-config" =>
    # "method" => "digest",
    # "realm" => "download archiv",
    # "require" => "valid-user"
    #### url handling modules (rewrite, redirect, access)
    #url.rewrite = ( "^/$" => "/server-status" )
    #url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
    #### both rewrite/redirect support back reference to regex conditional using %n
    #$HTTP["host"] =~ "^www\.(.*)" {
    # url.redirect = ( "^/(.*)" => "http://%1/$1" )
    # define a pattern for the host url finding
    # %% => % sign
    # %0 => domain name + tld
    # %1 => tld
    # %2 => domain name without tld
    # %3 => subdomain 1 name
    # %4 => subdomain 2 name
    #evhost.path-pattern = "/srv/http/vhosts/%3/htdocs/"
    #### expire module
    #expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
    #### ssi
    #ssi.extension = ( ".shtml" )
    #### rrdtool
    #rrdtool.binary = "/usr/bin/rrdtool"
    #rrdtool.db-name = "/var/lib/lighttpd/lighttpd.rrd"
    #### setenv
    #setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
    #setenv.add-response-header = ( "X-Secret-Message" => "42" )
    ## for mod_trigger_b4_dl
    # trigger-before-download.gdbm-filename = "/var/lib/lighttpd/trigger.db"
    # trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
    # trigger-before-download.trigger-url = "^/trigger/"
    # trigger-before-download.download-url = "^/download/"
    # trigger-before-download.deny-url = "http://127.0.0.1/index.html"
    # trigger-before-download.trigger-timeout = 10
    ## for mod_cml
    ## don't forget to add index.cml to server.indexfiles
    # cml.extension = ".cml"
    # cml.memcache-hosts = ( "127.0.0.1:11211" )
    #### variable usage:
    ## variable name without "." is auto prefixed by "var." and becomes "var.bar"
    #bar = 1
    #var.mystring = "foo"
    ## integer add
    #bar += 1
    ## string concat, with integer cast as string, result: "www.foo1.com"
    #server.name = "www." + mystring + var.bar + ".com"
    ## array merge
    #index-file.names = (foo + ".php") + index-file.names
    #index-file.names += (foo + ".php")
    #### include
    #include /etc/lighttpd/lighttpd-inc.conf
    ## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf"
    #include "lighttpd-inc.conf"
    #### include_shell
    #include_shell "echo var.a=1"
    ## the above is same as:
    #var.a=1
    The site is running over https with a self signed ssl-cert, if that matters. If I try to upload a file, the browser just quickly reloades the page, the filename still in the input field. The file isn't uploaded and the page that the script should display when completed doesn't show neither.
    Does anyone know how to troubleshoot this? I'm not getting any errors, it just doesn't work..

    I haven't used Websphere before so I can't say much about that. Try putting <%@ page language="Java" %> at the top of your jsp page.
    Try putting your java files into a package and see if that helps. I read somewhere that Tomcat once had issues with running classes that weren't in a package. Make sure to put the package statement at the top of your Java files if you do.
    Websphere says it caught an unhandled exception. Instead of having your method throw and Exception put your code in a try-catch block and then print a stack trace to see if it says anything when it trys to read and write data.
    Try{
        PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("doUpload.txt")));
        ServletInputStream in = request.getInputStream();
        int a=0;
        a=in.read();
        while (a!= -1){
            pw.print((char) a);
            a=in.read();
        pw.close();
    }catch(Exception e){
      e.printStackTrace();
    }Sorry I can't really give you more help.
    -S-

  • [Solved]Lighttpd and php/fcgi

    I installed and configured lighttpd and php/fcgi exactly as found http://wiki.archlinux.org/index.php/Lig … nd_Non-SSL except for: ssl and eaccelerator. I am also running php with the lighttpd user instead of phpuser.
    I have done chmod 775 for /var/run/ligghtpd and chown lighttpd -R /var/run/lighttpd and still get these errors.
    2008-05-02 10:14:28: (log.c.75) server started
    2008-05-02 10:14:28: (mod_fastcgi.c.904) bind failed for: unix:/var/run/lighttpd/php-fastcgi.socket-0 Permission denied
    2008-05-02 10:14:28: (mod_fastcgi.c.1340) [ERROR]: spawning fcgi failed.
    2008-05-02 10:14:28: (server.c.908) Configuration of plugins failed. Going down.
    But if I stop /etc/rc.d/spawn-php, and restart my server, everything works perfectly, the phpinfo page, and a basic php include.
    my /etc/php/php.ini
    [PHP]
    ; About php.ini ;
    ; This file controls many aspects of PHP's behavior. In order for PHP to
    ; read it, it must be named 'php.ini'. PHP looks for it in the current
    ; working directory, in the path designated by the environment variable
    ; PHPRC, and in the path that was defined in compile time (in that order).
    ; The path in which the php.ini file is looked for can be overridden using
    ; the -c argument in command line mode.
    ; The syntax of the file is extremely simple. Whitespace and Lines
    ; beginning with a semicolon are silently ignored (as you probably guessed).
    ; Section headers (e.g. [Foo]) are also silently ignored, even though
    ; they might mean something in the future.
    ; Directives are specified using the following syntax:
    ; directive = value
    ; Directive names are *case sensitive* - foo=bar is different from FOO=bar.
    ; The value can be a string, a number, a PHP constant (e.g. E_ALL or M_PI), one
    ; of the INI constants (On, Off, True, False, Yes, No and None) or an expression
    ; (e.g. E_ALL & ~E_NOTICE), or a quoted string ("foo").
    ; Expressions in the INI file are limited to bitwise operators and parentheses:
    ; | bitwise OR
    ; & bitwise AND
    ; ~ bitwise NOT
    ; ! boolean NOT
    ; Boolean flags can be turned on using the values 1, On, True or Yes.
    ; They can be turned off using the values 0, Off, False or No.
    ; An empty string can be denoted by simply not writing anything after the equal
    ; sign, or by using the None keyword:
    ; foo = ; sets foo to an empty string
    ; foo = none ; sets foo to an empty string
    ; foo = "none" ; sets foo to the string 'none'
    ; If you use constants in your value, and these constants belong to a
    ; dynamically loaded extension (either a PHP extension or a Zend extension),
    ; you may only use these constants *after* the line that loads the extension.
    ; About this file ;
    ; This is the recommended, PHP 5-style version of the php.ini-dist file. It
    ; sets some non standard settings, that make PHP more efficient, more secure,
    ; and encourage cleaner coding.
    ; The price is that with these settings, PHP may be incompatible with some
    ; applications, and sometimes, more difficult to develop with. Using this
    ; file is warmly recommended for production sites. As all of the changes from
    ; the standard settings are thoroughly documented, you can go over each one,
    ; and decide whether you want to use it or not.
    ; For general information about the php.ini file, please consult the php.ini-dist
    ; file, included in your PHP distribution.
    ; This file is different from the php.ini-dist file in the fact that it features
    ; different values for several directives, in order to improve performance, while
    ; possibly breaking compatibility with the standard out-of-the-box behavior of
    ; PHP. Please make sure you read what's different, and modify your scripts
    ; accordingly, if you decide to use this file instead.
    ; - register_long_arrays = Off [Performance]
    ; Disables registration of the older (and deprecated) long predefined array
    ; variables ($HTTP_*_VARS). Instead, use the superglobals that were
    ; introduced in PHP 4.1.0
    ; - display_errors = Off [Security]
    ; With this directive set to off, errors that occur during the execution of
    ; scripts will no longer be displayed as a part of the script output, and thus,
    ; will no longer be exposed to remote users. With some errors, the error message
    ; content may expose information about your script, web server, or database
    ; server that may be exploitable for hacking. Production sites should have this
    ; directive set to off.
    ; - log_errors = On [Security]
    ; This directive complements the above one. Any errors that occur during the
    ; execution of your script will be logged (typically, to your server's error log,
    ; but can be configured in several ways). Along with setting display_errors to off,
    ; this setup gives you the ability to fully understand what may have gone wrong,
    ; without exposing any sensitive information to remote users.
    ; - output_buffering = 4096 [Performance]
    ; Set a 4KB output buffer. Enabling output buffering typically results in less
    ; writes, and sometimes less packets sent on the wire, which can often lead to
    ; better performance. The gain this directive actually yields greatly depends
    ; on which Web server you're working with, and what kind of scripts you're using.
    ; - register_argc_argv = Off [Performance]
    ; Disables registration of the somewhat redundant $argv and $argc global
    ; variables.
    ; - magic_quotes_gpc = Off [Performance]
    ; Input data is no longer escaped with slashes so that it can be sent into
    ; SQL databases without further manipulation. Instead, you should use the
    ; function addslashes() on each input element you wish to send to a database.
    ; - variables_order = "GPCS" [Performance]
    ; The environment variables are not hashed into the $_ENV. To access
    ; environment variables, you can use getenv() instead.
    ; - error_reporting = E_ALL [Code Cleanliness, Security(?)]
    ; By default, PHP suppresses errors of type E_NOTICE. These error messages
    ; are emitted for non-critical errors, but that could be a symptom of a bigger
    ; problem. Most notably, this will cause error messages about the use
    ; of uninitialized variables to be displayed.
    ; - allow_call_time_pass_reference = Off [Code cleanliness]
    ; It's not possible to decide to force a variable to be passed by reference
    ; when calling a function. The PHP 4 style to do this is by making the
    ; function require the relevant argument by reference.
    ; - short_open_tag = Off [Portability]
    ; Using short tags is discouraged when developing code meant for redistribution
    ; since short tags may not be supported on the target server.
    ; Language Options ;
    ; Enable the PHP scripting language engine under Apache.
    engine = On
    ; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
    zend.ze1_compatibility_mode = Off
    ; Allow the <? tag. Otherwise, only <?php and <script> tags are recognized.
    ; NOTE: Using short tags should be avoided when developing applications or
    ; libraries that are meant for redistribution, or deployment on PHP
    ; servers which are not under your control, because short tags may not
    ; be supported on the target server. For portable, redistributable code,
    ; be sure not to use short tags.
    short_open_tag = Off
    ; Allow ASP-style <% %> tags.
    asp_tags = Off
    ; The number of significant digits displayed in floating point numbers.
    precision = 14
    ; Enforce year 2000 compliance (will cause problems with non-compliant browsers)
    y2k_compliance = On
    ; Output buffering allows you to send header lines (including cookies) even
    ; after you send body content, at the price of slowing PHP's output layer a
    ; bit. You can enable output buffering during runtime by calling the output
    ; buffering functions. You can also enable output buffering for all files by
    ; setting this directive to On. If you wish to limit the size of the buffer
    ; to a certain size - you can use a maximum number of bytes instead of 'On', as
    ; a value for this directive (e.g., output_buffering=4096).
    output_buffering = 4096
    ; You can redirect all of the output of your scripts to a function. For
    ; example, if you set output_handler to "mb_output_handler", character
    ; encoding will be transparently converted to the specified encoding.
    ; Setting any output handler automatically turns on output buffering.
    ; Note: People who wrote portable scripts should not depend on this ini
    ; directive. Instead, explicitly set the output handler using ob_start().
    ; Using this ini directive may cause problems unless you know what script
    ; is doing.
    ; Note: You cannot use both "mb_output_handler" with "ob_iconv_handler"
    ; and you cannot use both "ob_gzhandler" and "zlib.output_compression".
    ; Note: output_handler must be empty if this is set 'On' !!!!
    ; Instead you must use zlib.output_handler.
    ;output_handler =
    ; Transparent output compression using the zlib library
    ; Valid values for this option are 'off', 'on', or a specific buffer size
    ; to be used for compression (default is 4KB)
    ; Note: Resulting chunk size may vary due to nature of compression. PHP
    ; outputs chunks that are few hundreds bytes each as a result of
    ; compression. If you prefer a larger chunk size for better
    ; performance, enable output_buffering in addition.
    ; Note: You need to use zlib.output_handler instead of the standard
    ; output_handler, or otherwise the output will be corrupted.
    zlib.output_compression = On
    ;zlib.output_compression_level = -1
    ; You cannot specify additional output handlers if zlib.output_compression
    ; is activated here. This setting does the same as output_handler but in
    ; a different order.
    ;zlib.output_handler =
    ; Implicit flush tells PHP to tell the output layer to flush itself
    ; automatically after every output block. This is equivalent to calling the
    ; PHP function flush() after each and every call to print() or echo() and each
    ; and every HTML block. Turning this option on has serious performance
    ; implications and is generally recommended for debugging purposes only.
    implicit_flush = Off
    ; The unserialize callback function will be called (with the undefined class'
    ; name as parameter), if the unserializer finds an undefined class
    ; which should be instantiated.
    ; A warning appears if the specified function is not defined, or if the
    ; function doesn't include/implement the missing class.
    ; So only set this entry, if you really want to implement such a
    ; callback-function.
    unserialize_callback_func=
    ; When floats & doubles are serialized store serialize_precision significant
    ; digits after the floating point. The default value ensures that when floats
    ; are decoded with unserialize, the data will remain the same.
    serialize_precision = 100
    ; Whether to enable the ability to force arguments to be passed by reference
    ; at function call time. This method is deprecated and is likely to be
    ; unsupported in future versions of PHP/Zend. The encouraged method of
    ; specifying which arguments should be passed by reference is in the function
    ; declaration. You're encouraged to try and turn this option Off and make
    ; sure your scripts work properly with it in order to ensure they will work
    ; with future versions of the language (you will receive a warning each time
    ; you use this feature, and the argument will be passed by value instead of by
    ; reference).
    allow_call_time_pass_reference = Off
    ; Safe Mode
    safe_mode = Off
    ; By default, Safe Mode does a UID compare check when
    ; opening files. If you want to relax this to a GID compare,
    ; then turn on safe_mode_gid.
    safe_mode_gid = Off
    ; When safe_mode is on, UID/GID checks are bypassed when
    ; including files from this directory and its subdirectories.
    ; (directory must also be in include_path or full path must
    ; be used when including)
    safe_mode_include_dir =
    ; When safe_mode is on, only executables located in the safe_mode_exec_dir
    ; will be allowed to be executed via the exec family of functions.
    safe_mode_exec_dir =
    ; Setting certain environment variables may be a potential security breach.
    ; This directive contains a comma-delimited list of prefixes. In Safe Mode,
    ; the user may only alter environment variables whose names begin with the
    ; prefixes supplied here. By default, users will only be able to set
    ; environment variables that begin with PHP_ (e.g. PHP_FOO=BAR).
    ; Note: If this directive is empty, PHP will let the user modify ANY
    ; environment variable!
    safe_mode_allowed_env_vars = PHP_
    ; This directive contains a comma-delimited list of environment variables that
    ; the end user won't be able to change using putenv(). These variables will be
    ; protected even if safe_mode_allowed_env_vars is set to allow to change them.
    safe_mode_protected_env_vars = LD_LIBRARY_PATH
    ; open_basedir, if set, limits all file operations to the defined directory
    ; and below. This directive makes most sense if used in a per-directory
    ; or per-virtualhost web server configuration file. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    open_basedir = /home/:/tmp/:/usr/share/pear/
    ; This directive allows you to disable certain functions for security reasons.
    ; It receives a comma-delimited list of function names. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    disable_functions =
    ; This directive allows you to disable certain classes for security reasons.
    ; It receives a comma-delimited list of class names. This directive is
    ; *NOT* affected by whether Safe Mode is turned On or Off.
    disable_classes =
    ; Colors for Syntax Highlighting mode. Anything that's acceptable in
    ; <span style="color: ???????"> would work.
    ;highlight.string = #DD0000
    ;highlight.comment = #FF9900
    ;highlight.keyword = #007700
    ;highlight.bg = #FFFFFF
    ;highlight.default = #0000BB
    ;highlight.html = #000000
    ; If enabled, the request will be allowed to complete even if the user aborts
    ; the request. Consider enabling it if executing long request, which may end up
    ; being interrupted by the user or a browser timing out.
    ; ignore_user_abort = On
    ; Determines the size of the realpath cache to be used by PHP. This value should
    ; be increased on systems where PHP opens many files to reflect the quantity of
    ; the file operations performed.
    ; realpath_cache_size=16k
    ; Duration of time, in seconds for which to cache realpath information for a given
    ; file or directory. For systems with rarely changing files, consider increasing this
    ; value.
    ; realpath_cache_ttl=120
    ; Misc
    ; Decides whether PHP may expose the fact that it is installed on the server
    ; (e.g. by adding its signature to the Web server header). It is no security
    ; threat in any way, but it makes it possible to determine whether you use PHP
    ; on your server or not.
    expose_php = Off
    ; Resource Limits ;
    max_execution_time = 30 ; Maximum execution time of each script, in seconds
    max_input_time = 60 ; Maximum amount of time each script may spend parsing request data
    ;max_input_nesting_level = 64 ; Maximum input variable nesting level
    memory_limit = 32M ; Maximum amount of memory a script may consume (32MB)
    ; Error handling and logging ;
    ; error_reporting is a bit-field. Or each number up to get desired error
    ; reporting level
    ; E_ALL - All errors and warnings (doesn't include E_STRICT)
    ; E_ERROR - fatal run-time errors
    ; E_RECOVERABLE_ERROR - almost fatal run-time errors
    ; E_WARNING - run-time warnings (non-fatal errors)
    ; E_PARSE - compile-time parse errors
    ; E_NOTICE - run-time notices (these are warnings which often result
    ; from a bug in your code, but it's possible that it was
    ; intentional (e.g., using an uninitialized variable and
    ; relying on the fact it's automatically initialized to an
    ; empty string)
    ; E_STRICT - run-time notices, enable to have PHP suggest changes
    ; to your code which will ensure the best interoperability
    ; and forward compatibility of your code
    ; E_CORE_ERROR - fatal errors that occur during PHP's initial startup
    ; E_CORE_WARNING - warnings (non-fatal errors) that occur during PHP's
    ; initial startup
    ; E_COMPILE_ERROR - fatal compile-time errors
    ; E_COMPILE_WARNING - compile-time warnings (non-fatal errors)
    ; E_USER_ERROR - user-generated error message
    ; E_USER_WARNING - user-generated warning message
    ; E_USER_NOTICE - user-generated notice message
    ; Examples:
    ; - Show all errors, except for notices and coding standards warnings
    ;error_reporting = E_ALL & ~E_NOTICE
    ; - Show all errors, except for notices
    ;error_reporting = E_ALL & ~E_NOTICE | E_STRICT
    ; - Show only errors
    ;error_reporting = E_COMPILE_ERROR|E_RECOVERABLE_ERROR|E_ERROR|E_CORE_ERROR
    ; - Show all errors, except coding standards warnings
    error_reporting = E_ALL
    ; Print out errors (as a part of the output). For production web sites,
    ; you're strongly encouraged to turn this feature off, and use error logging
    ; instead (see below). Keeping display_errors enabled on a production web site
    ; may reveal security information to end users, such as file paths on your Web
    ; server, your database schema or other information.
    ; possible values for display_errors:
    ; Off - Do not display any errors
    ; stderr - Display errors to STDERR (affects only CGI/CLI binaries!)
    ; On or stdout - Display errors to STDOUT (default)
    ; To output errors to STDERR with CGI/CLI:
    ;display_errors = "stderr"
    ; Default
    display_errors = Off
    ; Even when display_errors is on, errors that occur during PHP's startup
    ; sequence are not displayed. It's strongly recommended to keep
    ; display_startup_errors off, except for when debugging.
    display_startup_errors = Off
    ; Log errors into a log file (server-specific log, stderr, or error_log (below))
    ; As stated above, you're strongly advised to use error logging in place of
    ; error displaying on production web sites.
    log_errors = On
    ; Set maximum length of log_errors. In error_log information about the source is
    ; added. The default is 1024 and 0 allows to not apply any maximum length at all.
    log_errors_max_len = 1024
    ; Do not log repeated messages. Repeated errors must occur in same file on same
    ; line until ignore_repeated_source is set true.
    ignore_repeated_errors = Off
    ; Ignore source of message when ignoring repeated messages. When this setting
    ; is On you will not log errors with repeated messages from different files or
    ; source lines.
    ignore_repeated_source = Off
    ; If this parameter is set to Off, then memory leaks will not be shown (on
    ; stdout or in the log). This has only effect in a debug compile, and if
    ; error reporting includes E_WARNING in the allowed list
    report_memleaks = Off
    ;report_zend_debug = 0
    ; Store the last error/warning message in $php_errormsg (boolean).
    track_errors = Off
    ; Disable the inclusion of HTML tags in error messages.
    ; Note: Never use this feature for production boxes.
    ;html_errors = Off
    ; If html_errors is set On PHP produces clickable error messages that direct
    ; to a page describing the error or function causing the error in detail.
    ; You can download a copy of the PHP manual from http://www.php.net/docs.php
    ; and change docref_root to the base URL of your local copy including the
    ; leading '/'. You must also specify the file extension being used including
    ; the dot.
    ; Note: Never use this feature for production boxes.
    ;docref_root = "/phpmanual/"
    ;docref_ext = .html
    ; String to output before an error message.
    ;error_prepend_string = "<font color=ff0000>"
    ; String to output after an error message.
    ;error_append_string = "</font>"
    ; Log errors to specified file.
    ;error_log = filename
    ; Log errors to syslog.
    error_log = syslog
    ; Data Handling ;
    ; Note - track_vars is ALWAYS enabled as of PHP 4.0.3
    ; The separator used in PHP generated URLs to separate arguments.
    ; Default is "&".
    ;arg_separator.output = "&"
    ; List of separator(s) used by PHP to parse input URLs into variables.
    ; Default is "&".
    ; NOTE: Every character in this directive is considered as separator!
    ;arg_separator.input = ";&"
    ; This directive describes the order in which PHP registers GET, POST, Cookie,
    ; Environment and Built-in variables (G, P, C, E & S respectively, often
    ; referred to as EGPCS or GPC). Registration is done from left to right, newer
    ; values override older values.
    variables_order = "GPCS"
    ; Whether or not to register the EGPCS variables as global variables. You may
    ; want to turn this off if you don't want to clutter your scripts' global scope
    ; with user data. This makes most sense when coupled with track_vars - in which
    ; case you can access all of the GPC variables through the $HTTP_*_VARS[],
    ; variables.
    ; You should do your best to write your scripts so that they do not require
    ; register_globals to be on; Using form variables as globals can easily lead
    ; to possible security problems, if the code is not very well thought of.
    register_globals = Off
    ; Whether or not to register the old-style input arrays, HTTP_GET_VARS
    ; and friends. If you're not using them, it's recommended to turn them off,
    ; for performance reasons.
    register_long_arrays = Off
    ; This directive tells PHP whether to declare the argv&argc variables (that
    ; would contain the GET information). If you don't use these variables, you
    ; should turn it off for increased performance.
    register_argc_argv = Off
    ; When enabled, the SERVER and ENV variables are created when they're first
    ; used (Just In Time) instead of when the script starts. If these variables
    ; are not used within a script, having this directive on will result in a
    ; performance gain. The PHP directives register_globals, register_long_arrays,
    ; and register_argc_argv must be disabled for this directive to have any affect.
    auto_globals_jit = On
    ; Maximum size of POST data that PHP will accept.
    post_max_size = 8M
    ; Magic quotes
    ; Magic quotes for incoming GET/POST/Cookie data.
    magic_quotes_gpc = Off
    ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
    magic_quotes_runtime = Off
    ; Use Sybase-style magic quotes (escape ' with '' instead of \').
    magic_quotes_sybase = Off
    ; Automatically add files before or after any PHP document.
    auto_prepend_file =
    auto_append_file =
    ; As of 4.0b4, PHP always outputs a character encoding by default in
    ; the Content-type: header. To disable sending of the charset, simply
    ; set it to be empty.
    ; PHP's built-in default is text/html
    default_mimetype = "text/html"
    ;default_charset = "iso-8859-1"
    ; Always populate the $HTTP_RAW_POST_DATA variable.
    ;always_populate_raw_post_data = On
    ; Paths and Directories ;
    ; UNIX: "/path1:/path2"
    include_path = ".:/usr/share/pear"
    ; The root of the PHP pages, used only if nonempty.
    ; if PHP was not compiled with FORCE_REDIRECT, you SHOULD set doc_root
    ; if you are running php as a CGI under any web server (other than IIS)
    ; see documentation for security issues. The alternate is to use the
    ; cgi.force_redirect configuration below
    doc_root =
    ; The directory under which PHP opens the script using /~username used only
    ; if nonempty.
    user_dir =
    ; Directory in which the loadable extensions (modules) reside.
    extension_dir = "/usr/lib/php/20060613/"
    ; Whether or not to enable the dl() function. The dl() function does NOT work
    ; properly in multithreaded servers, such as IIS or Zeus, and is automatically
    ; disabled on them.
    enable_dl = Off
    ; cgi.force_redirect is necessary to provide security running PHP as a CGI under
    ; most web servers. Left undefined, PHP turns this on by default. You can
    ; turn it off here AT YOUR OWN RISK
    ; **You CAN safely turn this off for IIS, in fact, you MUST.**
    ; cgi.force_redirect = 1
    ; if cgi.nph is enabled it will force cgi to always sent Status: 200 with
    ; every request.
    ; cgi.nph = 1
    ; if cgi.force_redirect is turned on, and you are not running under Apache or Netscape
    ; (iPlanet) web servers, you MAY need to set an environment variable name that PHP
    ; will look for to know it is OK to continue execution. Setting this variable MAY
    ; cause security issues, KNOW WHAT YOU ARE DOING FIRST.
    ; cgi.redirect_status_env = ;
    ; cgi.fix_pathinfo provides *real* PATH_INFO/PATH_TRANSLATED support for CGI. PHP's
    ; previous behaviour was to set PATH_TRANSLATED to SCRIPT_FILENAME, and to not grok
    ; what PATH_INFO is. For more information on PATH_INFO, see the cgi specs. Setting
    ; this to 1 will cause PHP CGI to fix it's paths to conform to the spec. A setting
    ; of zero causes PHP to behave as before. Default is 1. You should fix your scripts
    ; to use SCRIPT_FILENAME rather than PATH_TRANSLATED.
    cgi.fix_pathinfo=1
    ; FastCGI under IIS (on WINNT based OS) supports the ability to impersonate
    ; security tokens of the calling client. This allows IIS to define the
    ; security context that the request runs under. mod_fastcgi under Apache
    ; does not currently support this feature (03/17/2002)
    ; Set to 1 if running under IIS. Default is zero.
    ; fastcgi.impersonate = 1;
    ; Disable logging through FastCGI connection
    ; fastcgi.logging = 0
    ; cgi.rfc2616_headers configuration option tells PHP what type of headers to
    ; use when sending HTTP response code. If it's set 0 PHP sends Status: header that
    ; is supported by Apache. When this option is set to 1 PHP will send
    ; RFC2616 compliant header.
    ; Default is zero.
    ;cgi.rfc2616_headers = 0
    ; File Uploads ;
    ; Whether to allow HTTP file uploads.
    file_uploads = On
    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ;upload_tmp_dir =
    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 2M
    ; Fopen wrappers ;
    ; Whether to allow the treatment of URLs (like http:// or ftp://) as files.
    allow_url_fopen = Off
    ; Whether to allow include/require to open URLs (like http:// or ftp://) as files.
    allow_url_include = Off
    ; Define the anonymous ftp password (your email address)
    ;from="[email protected]"
    ; Define the User-Agent string
    ; user_agent="PHP"
    ; Default timeout for socket based streams (seconds)
    default_socket_timeout = 60
    ; Dynamic Extensions ;
    ; If you wish to have an extension loaded automatically, use the following
    ; syntax:
    ; extension=modulename.extension
    ; For example, under UNIX:
    ; extension=msql.so
    ; Note that it should be the name of the module only; no directory information
    ; needs to go here. Specify the location of the extension with the
    ; extension_dir directive above.
    ; Module Settings ;
    [Date]
    ; Defines the default timezone used by the date functions
    ;date.timezone =
    ;date.default_latitude = 31.7667
    ;date.default_longitude = 35.2333
    ;date.sunrise_zenith = 90.583333
    ;date.sunset_zenith = 90.583333
    [filter]
    ;filter.default = unsafe_raw
    ;filter.default_flags =
    [iconv]
    ;iconv.input_encoding = ISO-8859-1
    ;iconv.internal_encoding = ISO-8859-1
    ;iconv.output_encoding = ISO-8859-1
    [sqlite]
    ;sqlite.assoc_case = 0
    [xmlrpc]
    ;xmlrpc_error_number = 0
    ;xmlrpc_errors = 0
    [Pcre]
    ;PCRE library backtracking limit.
    ;pcre.backtrack_limit=100000
    ;PCRE library recursion limit.
    ;Please note that if you set this value to a high number you may consume all
    ;the available process stack and eventually crash PHP (due to reaching the
    ;stack size limit imposed by the Operating System).
    ;pcre.recursion_limit=100000
    [Syslog]
    ; Whether or not to define the various syslog variables (e.g. $LOG_PID,
    ; $LOG_CRON, etc.). Turning it off is a good idea performance-wise. In
    ; runtime, you can define these variables by calling define_syslog_variables().
    define_syslog_variables = Off
    [mail function]
    ; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
    ;sendmail_path =
    ; Force the addition of the specified parameters to be passed as extra parameters
    ; to the sendmail binary. These parameters will always replace the value of
    ; the 5th parameter to mail(), even in safe mode.
    ;mail.force_extra_parameters =
    [SQL]
    sql.safe_mode = Off
    [ODBC]
    ;odbc.default_db = Not yet implemented
    ;odbc.default_user = Not yet implemented
    ;odbc.default_pw = Not yet implemented
    ; Allow or prevent persistent links.
    odbc.allow_persistent = On
    ; Check that a connection is still valid before reuse.
    odbc.check_persistent = On
    ; Maximum number of persistent links. -1 means no limit.
    odbc.max_persistent = -1
    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    odbc.max_links = -1
    ; Handling of LONG fields. Returns number of bytes to variables. 0 means
    ; passthru.
    odbc.defaultlrl = 4096
    ; Handling of binary data. 0 means passthru, 1 return as is, 2 convert to char.
    ; See the documentation on odbc_binmode and odbc_longreadlen for an explanation
    ; of uodbc.defaultlrl and uodbc.defaultbinmode
    odbc.defaultbinmode = 1
    [MySQL]
    ; Allow or prevent persistent links.
    mysql.allow_persistent = On
    ; Maximum number of persistent links. -1 means no limit.
    mysql.max_persistent = -1
    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    mysql.max_links = -1
    ; Default port number for mysql_connect(). If unset, mysql_connect() will use
    ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
    ; compile-time value defined MYSQL_PORT (in that order).
    mysql.default_port =
    ; Default socket name for local MySQL connects. If empty, uses the built-in
    ; MySQL defaults.
    mysql.default_socket =
    ; Default host for mysql_connect() (doesn't apply in safe mode).
    mysql.default_host =
    ; Default user for mysql_connect() (doesn't apply in safe mode).
    mysql.default_user =
    ; Default password for mysql_connect() (doesn't apply in safe mode).
    ; Note that this is generally a *bad* idea to store passwords in this file.
    ; *Any* user with PHP access can run 'echo get_cfg_var("mysql.default_password")
    ; and reveal this password! And of course, any users with read access to this
    ; file will be able to reveal the password as well.
    mysql.default_password =
    ; Maximum time (in seconds) for connect timeout. -1 means no limit
    mysql.connect_timeout = 60
    ; Trace mode. When trace_mode is active (=On), warnings for table/index scans and
    ; SQL-Errors will be displayed.
    mysql.trace_mode = Off
    [MySQLi]
    ; Maximum number of links. -1 means no limit.
    mysqli.max_links = -1
    ; Default port number for mysqli_connect(). If unset, mysqli_connect() will use
    ; the $MYSQL_TCP_PORT or the mysql-tcp entry in /etc/services or the
    ; compile-time value defined MYSQL_PORT (in that order).
    mysqli.default_port = 3306
    ; Default socket name for local MySQL connects. If empty, uses the built-in
    ; MySQL defaults.
    mysqli.default_socket =
    ; Default host for mysql_connect() (doesn't apply in safe mode).
    mysqli.default_host =
    ; Default user for mysql_connect() (doesn't apply in safe mode).
    mysqli.default_user =
    ; Default password for mysqli_connect() (doesn't apply in safe mode).
    ; Note that this is generally a *bad* idea to store passwords in this file.
    ; *Any* user with PHP access can run 'echo get_cfg_var("mysqli.default_pw")
    ; and reveal this password! And of course, any users with read access to this
    ; file will be able to reveal the password as well.
    mysqli.default_pw =
    ; Allow or prevent reconnect
    mysqli.reconnect = Off
    [mSQL]
    ; Allow or prevent persistent links.
    msql.allow_persistent = On
    ; Maximum number of persistent links. -1 means no limit.
    msql.max_persistent = -1
    ; Maximum number of links (persistent+non persistent). -1 means no limit.
    msql.max_links = -1
    [OCI8]
    ; enables privileged connections using external credentials (OCI_SYSOPER, OCI_SYSDBA)
    ;oci8.privileged_connect = Off
    ; Connection: The maximum number of persistent OCI8 connections per
    ; process. Using -1 means no limit.
    ;oci8.max_persistent = -1
    ; Connection: The maximum number of seconds a process is allowed to
    ; maintain an idle persistent connection. Using -1 means idle
    ; persistent connections will be maintained forever.
    ;oci8.persistent_timeout = -1
    ; Connection: The number of seconds that must pass before issuing a
    ; ping during oci_pconnect() to check the connection validity. When
    ; set to 0, each oci_pconnect() will cause a ping. Using -1 disables
    ; pings completely.
    ;oci8.ping_interval = 60
    ; Tuning: This option enables statement caching, and specifies how
    ; many statements to cache. Using 0 disables statement caching.
    ;oci8.statement_cache_size = 20
    ; Tuning: Enables statement prefetching and sets the default number of
    ; rows that will be fetched automatically after statement execution.
    ;oci8.default_prefetch = 10
    ; Compatibility. Using On means oci_close() will not close
    ; oci_connect() and oci_new_connect() connections.
    ;oci8.old_oci_close_semantics = Off
    [PostgresSQL]
    ; Allow or prevent persistent links.
    pgsql.allow_persistent = On
    ; Detect broken persistent links always with pg_pconnect().
    ; Auto reset feature requires a little overheads.
    pgsql.auto_reset_persistent = Off
    ; Maximum number of persistent links. -1 means no limit.
    pgsql.max_persistent = -1
    ; Maximum number of links (persistent+non persistent). -1 means no limit.
    pgsql.max_links = -1
    ; Ignore PostgreSQL backends Notice message or not.
    ; Notice message logging require a little overheads.
    pgsql.ignore_notice = 0
    ; Log PostgreSQL backends Noitce message or not.
    ; Unless pgsql.ignore_notice=0, module cannot log notice message.
    pgsql.log_notice = 0
    [Sybase]
    ; Allow or prevent persistent links.
    sybase.allow_persistent = On
    ; Maximum number of persistent links. -1 means no limit.
    sybase.max_persistent = -1
    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    sybase.max_links = -1
    ;sybase.interface_file = "/usr/sybase/interfaces"
    ; Minimum error severity to display.
    sybase.min_error_severity = 10
    ; Minimum message severity to display.
    sybase.min_message_severity = 10
    ; Compatibility mode with old versions of PHP 3.0.
    ; If on, this will cause PHP to automatically assign types to results according
    ; to their Sybase type, instead of treating them all as strings. This
    ; compatibility mode will probably not stay around forever, so try applying
    ; whatever necessary changes to your code, and turn it off.
    sybase.compatability_mode = Off
    [Sybase-CT]
    ; Allow or prevent persistent links.
    sybct.allow_persistent = On
    ; Maximum number of persistent links. -1 means no limit.
    sybct.max_persistent = -1
    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    sybct.max_links = -1
    ; Minimum server message severity to display.
    sybct.min_server_severity = 10
    ; Minimum client message severity to display.
    sybct.min_client_severity = 10
    [bcmath]
    ; Number of decimal digits for all bcmath functions.
    bcmath.scale = 0
    [browscap]
    ;browscap = extra/browscap.ini
    [Informix]
    ; Default host for ifx_connect() (doesn't apply in safe mode).
    ifx.default_host =
    ; Default user for ifx_connect() (doesn't apply in safe mode).
    ifx.default_user =
    ; Default password for ifx_connect() (doesn't apply in safe mode).
    ifx.default_password =
    ; Allow or prevent persistent links.
    ifx.allow_persistent = On
    ; Maximum number of persistent links. -1 means no limit.
    ifx.max_persistent = -1
    ; Maximum number of links (persistent + non-persistent). -1 means no limit.
    ifx.max_links = -1
    ; If on, select statements return the contents of a text blob instead of its id.
    ifx.textasvarchar = 0
    ; If on, select statements return the contents of a byte blob instead of its id.
    ifx.byteasvarchar = 0
    ; Trailing blanks are stripped from fixed-length char columns. May help the
    ; life of Informix SE users.
    ifx.charasvarchar = 0
    ; If on, the contents of text and byte blobs are dumped to a file instead of
    ; keeping them in memory.
    ifx.blobinfile = 0
    ; NULL's are returned as empty strings, unless this is set to 1. In that case,
    ; NULL's are returned as string 'NULL'.
    ifx.nullformat = 0
    [Session]
    ; Handler used to store/retrieve data.
    session.save_handler = files
    ; Argument passed to save_handler. In the case of files, this is the path
    ; where data files are stored.
    ; As of PHP 4.0.1, you can define the path as:
    ; session.save_path = "N;/path"
    ; where N is an integer. Instead of storing all the session files in
    ; /path, what this will do is use subdirectories N-levels deep, and
    ; store the session data in those directories. This is useful if you
    ; or your OS have problems with lots of files in one directory, and is
    ; a more efficient layout for servers that handle lots of sessions.
    ; NOTE 1: PHP will not create this directory structure automatically.
    ; You can use the script in the ext/session dir for that purpose.
    ; NOTE 2: See the section on garbage collection below if you choose to
    ; use subdirectories for session storage
    ; The file storage module creates files using mode 600 by default.
    ; You can change that by using
    ; session.save_path = "N;MODE;/path"
    ; where MODE is the octal representation of the mode. Note that this
    ; does not overwrite the process's umask.
    session.save_path = "/tmp"
    ; Whether to use cookies.
    session.use_cookies = 1
    ;session.cookie_secure =
    ; This option enables administrators to make their users invulnerable to
    ; attacks which involve passing session ids in URLs; defaults to 0.
    ; session.use_only_cookies = 1
    ; Name of the session (used as cookie name).
    session.name = PHPSESSID
    ; Initialize session on request startup.
    session.auto_start = 0
    ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
    session.cookie_lifetime = 0
    ; The path for which the cookie is valid.
    session.cookie_path = /
    ; The domain for which the cookie is valid.
    session.cookie_domain =
    ; Whether or not to add the httpOnly flag to the cookie, which makes it inaccessible to browser scripting languages such as JavaScript.
    session.cookie_httponly =
    ; Handler used to serialize data. php is the standard serializer of PHP.
    session.serialize_handler = php
    ; Define the probability that the 'garbage collection' process is started
    ; on every session initialization.
    ; The probability is calculated by using gc_probability/gc_divisor,
    ; e.g. 1/100 means there is a 1% chance that the GC process starts
    ; on each request.
    session.gc_probability = 1
    session.gc_divisor = 1000
    ; After this number of seconds, stored data will be seen as 'garbage' and
    ; cleaned up by the garbage collection process.
    session.gc_maxlifetime = 1440
    ; NOTE: If you are using the subdirectory option for storing session files
    ; (see session.save_path above), then garbage collection does *not*
    ; happen automatically. You will need to do your own garbage
    ; collection through a shell script, cron entry, or some other method.
    ; For example, the following script would is the equivalent of
    ; setting session.gc_maxlifetime to 1440 (1440 seconds = 24 minutes):
    ; cd /path/to/sessions; find -cmin +24 | xargs rm
    ; PHP 4.2 and less have an undocumented feature/bug that allows you to
    ; to initialize a session variable in the global scope, albeit register_globals
    ; is disabled. PHP 4.3 and later will warn you, if this feature is used.
    ; You can disable the feature and the warning separately. At this time,
    ; the warning is only displayed, if bug_compat_42 is enabled.
    session.bug_compat_42 = 0
    session.bug_compat_warn = 1
    ; Check HTTP Referer to invalidate externally stored URLs containing ids.
    ; HTTP_REFERER has to contain this substring for the session to be
    ; considered as valid.
    session.referer_check =
    ; How many bytes to read from the file.
    session.entropy_length = 0
    ; Specified here to create the session id.
    session.entropy_file =
    ;session.entropy_length = 16
    ;session.entropy_file = /dev/urandom
    ; Set to {nocache,private,public,} to determine HTTP caching aspects
    ; or leave this empty to avoid sending anti-caching headers.
    session.cache_limiter = nocache
    ; Document expires after n minutes.
    session.cache_expire = 180
    ; trans sid support is disabled by default.
    ; Use of trans sid may risk your users security.
    ; Use this option with caution.
    ; - User may send URL contains active session ID
    ; to other person via. email/irc/etc.
    ; - URL that contains active session ID may be stored
    ; in publically accessible computer.
    ; - User may access your site with the same session ID
    ; always using URL stored in browser's history or bookmarks.
    session.use_trans_sid = 0
    ; Select a hash function
    ; 0: MD5 (128 bits)
    ; 1: SHA-1 (160 bits)
    session.hash_function = 0
    ; Define how many bits are stored in each character when converting
    ; the binary hash data to something readable.
    ; 4 bits: 0-9, a-f
    ; 5 bits: 0-9, a-v
    ; 6 bits: 0-9, a-z, A-Z, "-", ","
    session.hash_bits_per_character = 5
    ; The URL rewriter will look for URLs in a defined set of HTML tags.
    ; form/fieldset are special; if you include them here, the rewriter will
    ; add a hidden <input> field with the info which is otherwise appended
    ; to URLs. If you want XHTML conformity, remove the form entry.
    ; Note that all valid entries require a "=", even if no value follows.
    url_rewriter.tags = "a=href,area=href,frame=src,input=src,form=fakeentry"
    [MSSQL]
    ; Allow or prevent persistent links.
    mssql.allow_persistent = On
    ; Maximum number of persistent links. -1 means no limit.
    mssql.max_persistent = -1
    ; Maximum number of links (persistent+non persistent). -1 means no limit.
    mssql.max_links = -1
    ; Minimum error severity to display.
    mssql.min_error_severity = 10
    ; Minimum message severity to display.
    mssql.min_message_severity = 10
    ; Compatibility mode with old versions of PHP 3.0.
    mssql.compatability_mode = Off
    ; Connect timeout
    ;mssql.connect_timeout = 5
    ; Query timeout
    ;mssql.timeout = 60
    ; Valid range 0 - 2147483647. Default = 4096.
    ;mssql.textlimit = 4096
    ; Valid range 0 - 2147483647. Default = 4096.
    ;mssql.textsize = 4096
    ; Limits the number of records in each batch. 0 = all records in one batch.
    ;mssql.batchsize = 0
    ; Specify how datetime and datetim4 columns are returned
    ; On => Returns data converted to SQL server settings
    ; Off => Returns values as YYYY-MM-DD hh:mm:ss
    ;mssql.datetimeconvert = On
    ; Use NT authentication when connecting to the server
    mssql.secure_connection = Off
    ; Specify max number of processes. -1 = library default
    ; msdlib defaults to 25
    ; FreeTDS defaults to 4096
    ;mssql.max_procs = -1
    ; Specify client character set.
    ; If empty or not set the client charset from freetds.comf is used
    ; This is only used when compiled with FreeTDS
    ;mssql.charset = "ISO-8859-1"
    [Assertion]
    ; Assert(expr); active by default.
    ;assert.active = On
    ; Issue a PHP warning for each failed assertion.
    ;assert.warning = On
    ; Don't bail out by default.
    ;assert.bail = Off
    ; User-function to be called if an assertion fails.
    ;assert.callback = 0
    ; Eval the expression with current error_reporting(). Set to true if you want
    ; error_reporting(0) around the eval().
    ;assert.quiet_eval = 0
    [COM]
    ; path to a file containing GUIDs, IIDs or filenames of files with TypeLibs
    ;com.typelib_file =
    ; allow Distributed-COM calls
    ;com.allow_dcom = true
    ; autoregister constants of a components typlib on com_load()
    ;com.autoregister_typelib = true
    ; register constants casesensitive
    ;com.autoregister_casesensitive = false
    ; show warnings on duplicate constant registrations
    ;com.autoregister_verbose = true
    [mbstring]
    ; language for internal character representation.
    ;mbstring.language = Japanese
    ; internal/script encoding.
    ; Some encoding cannot work as internal encoding.
    ; (e.g. SJIS, BIG5, ISO-2022-*)
    ;mbstring.internal_encoding = EUC-JP
    ; http input encoding.
    ;mbstring.http_input = auto
    ; http output encoding. mb_output_handler must be
    ; registered as output buffer to function
    ;mbstring.http_output = SJIS
    ; enable automatic encoding translation according to
    ; mbstring.internal_encoding setting. Input chars are
    ; converted to internal encoding by setting this to On.
    ; Note: Do _not_ use automatic encoding translation for
    ; portable libs/applications.
    ;mbstring.encoding_translation = Off
    ; automatic encoding detection order.
    ; auto means
    ;mbstring.detect_order = auto
    ; substitute_character used when character cannot be converted
    ; one from another
    ;mbstring.substitute_character = none;
    ; overload(replace) single byte functions by mbstring functions.
    ; mail(), ereg(), etc are overloaded by mb_send_mail(), mb_ereg(),
    ; etc. Possible values are 0,1,2,4 or combination of them.
    ; For example, 7 for overload everything.
    ; 0: No overload
    ; 1: Overload mail() function
    ; 2: Overload str*() functions
    ; 4: Overload ereg*() functions
    ;mbstring.func_overload = 0
    ; enable strict encoding detection.
    ;mbstring.strict_encoding = Off
    [FrontBase]
    ;fbsql.allow_persistent = On
    ;fbsql.autocommit = On
    ;fbsql.show_timestamp_decimals = Off
    ;fbsql.default_database =
    ;fbsql.default_database_password =
    ;fbsql.default_host =
    ;fbsql.default_password =
    ;fbsql.default_user = "_SYSTEM"
    ;fbsql.generate_warnings = Off
    ;fbsql.max_connections = 128
    ;fbsql.max_links = 128
    ;fbsql.max_persistent = -1
    ;fbsql.max_results = 128
    [gd]
    ; Tell the jpeg decode to libjpeg warnings and try to create
    ; a gd image. The warning will then be displayed as notices
    ; disabled by default
    ;gd.jpeg_ignore_warning = 0
    [exif]
    ; Exif UNICODE user comments are handled as UCS-2BE/UCS-2LE and JIS as JIS.
    ; With mbstring support this will automatically be converted into the encoding
    ; given by corresponding encode setting. When empty mbstring.internal_encoding
    ; is used. For the decode settings you can distinguish between motorola and
    ; intel byte order. A decode setting cannot be empty.
    ;exif.encode_unicode = ISO-8859-15
    ;exif.decode_unicode_motorola = UCS-2BE
    ;exif.decode_unicode_intel = UCS-2LE
    ;exif.encode_jis =
    ;exif.decode_jis_motorola = JIS
    ;exif.decode_jis_intel = JIS
    [Tidy]
    ; The path to a default tidy configuration file to use when using tidy
    ;tidy.default_config = /usr/local/lib/php/default.tcfg
    ; Should tidy clean and repair output automatically?
    ; WARNING: Do not use this option if you are generating non-html content
    ; such as dynamic images
    tidy.clean_output = Off
    [soap]
    ; Enables or disables WSDL caching feature.
    soap.wsdl_cache_enabled=1
    ; Sets the directory name where SOAP extension will put cache files.
    soap.wsdl_cache_dir="/tmp"
    ; (time to live) Sets the number of second while cached file will be used
    ; instead of original one.
    soap.wsdl_cache_ttl=86400
    ; available extensions
    ;extension=bcmath.so
    ;extension=bz2.so
    ;extension=calendar.so
    ;extension=curl.so
    ;extension=dba.so
    ;extension=dbase.so
    ;extension=exif.so
    ;extension=ftp.so
    ;extension=gd.so
    extension=gettext.so
    ;extension=iconv.so
    ;extension=imap.so
    ;extension=json.so
    ;extension=ldap.so
    ;extension=mcrypt.so
    ;extension=mime_magic.so
    ;extension=mysql.so
    ;extension=mysqli.so
    ;extension=ncurses.so
    ;extension=odbc.so
    ;extension=openssl.so
    ;extension=pdo.so
    ;extension=pdo_mysql.so
    ;extension=pdo_odbc.so
    ;extension=pdo_pgsql.so
    ;extension=pdo_sqlite.so
    ;extension=pgsql.so
    ;extension=posix.so
    ;extension=pspell.so
    extension=session.so
    ;extension=shmop.so
    ;extension=snmp.so
    ;extension=soap.so
    ;extension=sockets.so
    ;extension=sqlite.so
    ;extension=sysvmsg.so
    ;extension=sysvsem.so
    ;extension=sysvshm.so
    ;extension=tidy.so
    ;extension=xmlrpc.so
    ;extension=xsl.so
    ;extension=zip.so
    extension=zlib.so
    ; Local Variables:
    ; tab-width: 4
    ; End:
    my /etc/lighttpd/lighttpd.conf
    # lighttpd configuration file
    # use it as a base for lighttpd 1.0.0 and above
    # $Id: lighttpd.conf,v 1.7 2004/11/03 22:26:05 weigon Exp $
    ############ Options you really have to take care of ####################
    ## modules to load
    # at least mod_access and mod_accesslog should be loaded
    # all other module should only be loaded if really neccesary
    # - saves some time
    # - saves memory
    server.modules = (
    # "mod_rewrite",
    # "mod_redirect",
    # "mod_alias",
    "mod_access",
    # "mod_cml",
    # "mod_trigger_b4_dl",
    # "mod_auth",
    # "mod_status",
    # "mod_setenv",
    "mod_fastcgi",
    # "mod_proxy",
    # "mod_simple_vhost",
    # "mod_evhost",
    # "mod_userdir",
    # "mod_cgi",
    "mod_compress",
    # "mod_ssi",
    # "mod_usertrack",
    # "mod_expire",
    # "mod_secdownload",
    # "mod_rrdtool",
    "mod_accesslog" )
    ## a static document-root, for virtual-hosting take look at the
    ## server.virtual-* options
    server.document-root = "/home/lighttpd/html/"
    ## where to send error-messages to
    server.errorlog = "/var/log/lighttpd/error.log"
    # files to check for if .../ is requested
    index-file.names = ( "index.php", "index.html",
    "index.htm", "default.htm" )
    ## set the event-handler (read the performance section in the manual)
    # server.event-handler = "freebsd-kqueue" # needed on OS X
    # mimetype mapping
    mimetype.assign = (
    ".pdf" => "application/pdf",
    ".sig" => "application/pgp-signature",
    ".spl" => "application/futuresplash",
    ".class" => "application/octet-stream",
    ".ps" => "application/postscript",
    ".torrent" => "application/x-bittorrent",
    ".dvi" => "application/x-dvi",
    ".gz" => "application/x-gzip",
    ".pac" => "application/x-ns-proxy-autoconfig",
    ".swf" => "application/x-shockwave-flash",
    ".tar.gz" => "application/x-tgz",
    ".tgz" => "application/x-tgz",
    ".tar" => "application/x-tar",
    ".zip" => "application/zip",
    ".mp3" => "audio/mpeg",
    ".m3u" => "audio/x-mpegurl",
    ".wma" => "audio/x-ms-wma",
    ".wax" => "audio/x-ms-wax",
    ".ogg" => "application/ogg",
    ".wav" => "audio/x-wav",
    ".gif" => "image/gif",
    ".jar" => "application/x-java-archive",
    ".jpg" => "image/jpeg",
    ".jpeg" => "image/jpeg",
    ".png" => "image/png",
    ".xbm" => "image/x-xbitmap",
    ".xpm" => "image/x-xpixmap",
    ".xwd" => "image/x-xwindowdump",
    ".css" => "text/css",
    ".html" => "text/html",
    ".htm" => "text/html",
    ".js" => "text/javascript",
    ".asc" => "text/plain",
    ".c" => "text/plain",
    ".cpp" => "text/plain",
    ".log" => "text/plain",
    ".conf" => "text/plain",
    ".text" => "text/plain",
    ".txt" => "text/plain",
    ".dtd" => "text/xml",
    ".xml" => "text/xml",
    ".mpeg" => "video/mpeg",
    ".mpg" => "video/mpeg",
    ".mov" => "video/quicktime",
    ".qt" => "video/quicktime",
    ".avi" => "video/x-msvideo",
    ".asf" => "video/x-ms-asf",
    ".asx" => "video/x-ms-asf",
    ".wmv" => "video/x-ms-wmv",
    ".bz2" => "application/x-bzip",
    ".tbz" => "application/x-bzip-compressed-tar",
    ".tar.bz2" => "application/x-bzip-compressed-tar",
    # default mime type
    "" => "application/octet-stream",
    # Use the "Content-Type" extended attribute to obtain mime type if possible
    #mimetype.use-xattr = "enable"
    ## send a different Server: header
    ## be nice and keep it at lighttpd
    # server.tag = "lighttpd"
    #### accesslog module
    accesslog.filename = "/var/log/lighttpd/access.log"
    ## deny access the file-extensions
    # ~ is for backupfiles from vi, emacs, joe, ...
    # .inc is often used for code includes which should in general not be part
    # of the document-root
    url.access-deny = ( "~", ".inc" )
    $HTTP["url"] =~ "\.pdf$" {
    server.range-requests = "disable"
    # which extensions should not be handle via static-file transfer
    # .php, .pl, .fcgi are most often handled by mod_fastcgi or mod_cgi
    static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
    ######### Options that are good to be but not neccesary to be changed #######
    ## bind to port (default: 80)
    #server.port = 81
    ## bind to localhost (default: all interfaces)
    #server.bind = "127.0.0.1"
    ## error-handler for status 404
    #server.error-handler-404 = "/error-handler.html"
    #server.error-handler-404 = "/error-handler.php"
    ## to help the rc.scripts
    server.pid-file = "/var/run/lighttpd.pid"
    ###### virtual hosts
    ## If you want name-based virtual hosting add the next three settings and load
    ## mod_simple_vhost
    ## document-root =
    ## virtual-server-root + virtual-server-default-host + virtual-server-docroot
    ## or
    ## virtual-server-root + http-host + virtual-server-docroot
    #simple-vhost.server-root = "/home/lighttpd/vhosts/"
    #simple-vhost.default-host = "www.example.org"
    #simple-vhost.document-root = "/htdocs/"
    ## Format: <errorfile-prefix><status-code>.html
    ## -> ..../status-404.html for 'File not found'
    #server.errorfile-prefix = "/usr/share/lighttpd/errors/status-"
    #server.errorfile-prefix = "/srv/www/errors/status-"
    ## virtual directory listings
    #dir-listing.activate = "enable"
    ## enable debugging
    #debug.log-request-header = "enable"
    #debug.log-response-header = "enable"
    #debug.log-request-handling = "enable"
    #debug.log-file-not-found = "enable"
    ### only root can use these options
    # chroot() to directory (default: no chroot() )
    #server.chroot = "/"
    ## change uid to <uid> (default: don't care)
    ## !!!! IF YOU CHANGE THE UID OR GROUPID apply the changes to /etc/logrotate.conf as well !!!
    server.username = "lighttpd"
    ## change uid to <uid> (default: don't care)
    server.groupname = "lighttpd"
    #### compress module
    compress.cache-dir = "/home/lighttpd/cache/"
    compress.filetype = ("text/plain", "text/html")
    #### proxy module
    ## read proxy.txt for more info
    #proxy.server = ( ".php" =>
    # ( "localhost" =>
    # "host" => "192.168.0.101",
    # "port" => 80
    #### fastcgi module
    ## read fastcgi.txt for more info
    ## for PHP don't forget to set cgi.fix_pathinfo = 1 in the php.ini
    fastcgi.server = ( ".php" =>
    ( "localhost" =>
    "socket" => "/var/run/lighttpd/php-fastcgi.socket",
    "bin-path" => "/usr/bin/php-cgi"
    #### CGI module
    #cgi.assign = ( ".pl" => "/usr/bin/perl",
    # ".cgi" => "/usr/bin/perl" )
    #### SSL engine
    #$SERVER["socket"] == "0.0.0.0:443" {
    # ssl.engine = "enable"
    # ssl.pemfile = "/home/lighttpd/ssl/server.pem"
    # server.errorlog = "/var/log/lighttpd/error-ssl.log"
    # accesslog.filename = "/var/log/lighttpd/access-ssl.log"
    # server.document-root = "/home/lighttpd/html-ssl"
    #### status module
    #status.status-url = "/server-status"
    #status.config-url = "/server-config"
    #### auth module
    ## read authentication.txt for more info
    #auth.backend = "plain"
    #auth.backend.plain.userfile = "lighttpd.user"
    #auth.backend.plain.groupfile = "lighttpd.group"
    #auth.backend.ldap.hostname = "localhost"
    #auth.backend.ldap.base-dn = "dc=my-domain,dc=com"
    #auth.backend.ldap.filter = "(uid=$)"
    #auth.require = ( "/server-status" =>
    # "method" => "digest",
    # "realm" => "download archiv",
    # "require" => "user=jan"
    # "/server-config" =>
    # "method" => "digest",
    # "realm" => "download archiv",
    # "require" => "valid-user"
    #### url handling modules (rewrite, redirect, access)
    #url.rewrite = ( "^/$" => "/server-status" )
    #url.redirect = ( "^/wishlist/(.+)" => "http://www.123.org/$1" )
    #### both rewrite/redirect support back reference to regex conditional using %n
    #$HTTP["host"] =~ "^www\.(.*)" {
    # url.redirect = ( "^/(.*)" => "http://%1/$1" )
    # define a pattern for the host url finding
    # %% => % sign
    # %0 => domain name + tld
    # %1 => tld
    # %2 => domain name without tld
    # %3 => subdomain 1 name
    # %4 => subdomain 2 name
    #evhost.path-pattern = "/home/lighttpd/vhosts/%3/htdocs/"
    #### expire module
    #expire.url = ( "/buggy/" => "access 2 hours", "/asdhas/" => "access plus 1 seconds 2 minutes")
    #### ssi
    #ssi.extension = ( ".shtml" )
    #### rrdtool
    #rrdtool.binary = "/usr/bin/rrdtool"
    #rrdtool.db-name = "/var/lib/lighttpd/lighttpd.rrd"
    #### setenv
    #setenv.add-request-header = ( "TRAV_ENV" => "mysql://user@host/db" )
    #setenv.add-response-header = ( "X-Secret-Message" => "42" )
    ## for mod_trigger_b4_dl
    # trigger-before-download.gdbm-filename = "/var/lib/lighttpd/trigger.db"
    # trigger-before-download.memcache-hosts = ( "127.0.0.1:11211" )
    # trigger-before-download.trigger-url = "^/trigger/"
    # trigger-before-download.download-url = "^/download/"
    # trigger-before-download.deny-url = "http://127.0.0.1/index.html"
    # trigger-before-download.trigger-timeout = 10
    ## for mod_cml
    ## don't forget to add index.cml to server.indexfiles
    # cml.extension = ".cml"
    # cml.memcache-hosts = ( "127.0.0.1:11211" )
    #### variable usage:
    ## variable name without "." is auto prefixed by "var." and becomes "var.bar"
    #bar = 1
    #var.mystring = "foo"
    ## integer add
    #bar += 1
    ## string concat, with integer cast as string, result: "www.foo1.com"
    #server.name = "www." + mystring + var.bar + ".com"
    ## array merge
    #index-file.names = (foo + ".php") + index-file.names
    #index-file.names += (foo + ".php")
    #### include
    #include /etc/lighttpd/lighttpd-inc.conf
    ## same as above if you run: "lighttpd -f /etc/lighttpd/lighttpd.conf"
    #include "lighttpd-inc.conf"
    #### include_shell
    #include_shell "echo var.a=1"
    ## the above is same as:
    #var.a=1
    DAEMONS=(syslog-ng iptables network netfs crond sshd lighttpd)
    Did I do anything wrong, is this how it's supposed to work? I googled the error from lighttpd error.log and the only useful information I could find was in polish i think, and unfortunately, i don't speak polish.
    -Zack
    Last edited by Sjoden (2008-05-28 22:00:37)

    ls -l /var/run/lighttpd/
    And how are you spawning the php instances? I don't see that in the daemons array anywhere.
    EDIT: It looks like the info in that page is no longer using pre-spawned instances, but lighttpd adaptive-spawn. The documentation has been made inconsistent it looks like.
    You will note that with pre-spawned information, the config looks different[1].
    You need to do one or the other, not both (eg. choose adaptive-spawn, or pre-spawn..not both).
    [1]: http://wiki.archlinux.org/index.php?tit … oldid=8051 "change"

  • CIVS-IPC-2930 Web Interface Inaccessible

    We have a Cisco CIVS-IPC-2930 PTZ camera and the web interface is inaccessible.  Navigating to the page returns an error "500 - Internal Server Error".   Our VSM is still able to pull the feed from the camera, and I can access it via SSH, just not through the web interface.  Looking at the error log for lighttpd shows the following errors repeatedly:
    2014-04-07 16:38:51: (mod_fastcgi.c.2481) unexpected end-of-file (perhaps the fastcgi process died): pid: 1464 socket: unix:/tmp/php.socket-1 
    2014-04-07 16:38:51: (mod_fastcgi.c.3299) response not received, request sent: 1333 on socket: unix:/tmp/php.socket-1 for /index.php , closing connection 
    Have tried restarting the lighttpd processes and reloading the camera, but the issue persists.
    Anyone seen similar issues?  Ideas to resolve?
    Thanks

    Hi Scott,
    Yes, I used scp to copy the file over from the functional camera.  It was fairly straightforward to resolve once I suspected the file was corrupted.
    Cheers!

  • Lighttpd-svn

    Security, speed, compliance, and flexibility--all of these describe LightTPD which is rapidly redefining efficiency of a webserver; as it is designed and optimized for high performance environments. With a small memory footprint compared to other web-servers, effective management of the cpu-load, and advanced feature set (FastCGI, CGI, Auth, Output-Compression, URL-Rewriting and many more) LightTPD is the perfect solution for every server that is suffering load problems. And best of all it's Open Source licensed under the revised BSD license.
    light footprint + httpd = LightTPD (pronounced lighty)
    http://lighttpd.net
    Don't know how many people use this, but I really love lighttpd. If someone is kind enough to provide a PKGBUILD for the svn version, it would be greatly appreciated. Thank you ! Here's the trunk version:  http://trac.lighttpd.net/trac/browser/trunk

    Here you go:
    # $Id: PKGBUILD,v 1.29 2006/09/26 07:10:41 tobias Exp $
    # Maintainer: tobias <[email protected]>
    # Modifications: eliott <[email protected]>
    # Originally by klapmuetz
    pkgname=lighttpd-svn
    pkgver=1692
    pkgrel=1
    pkgdesc="lighttpd is a secure, fast, compliant and very flexible web-server"
    arch=(i686 x86_64)
    url="http://www.lighttpd.net/"
    depends=('pcre' 'openssl' 'zlib' 'bzip2' 'attr')
    makedepends=('fcgi' 'libmysqlclient' 'lua' 'libmemcache' 'libxml2' 'pkgconfig' 'subversion')
    backup=('etc/lighttpd/lighttpd.conf' 'etc/logrotate.d/lighttpd' \
    'etc/conf.d/lighttpd' 'etc/conf.d/spawn-php' \
    'home/lighttpd/html/index.html')
    options=('NOLIBTOOL')
    install=$pkgname.install
    source=($pkgname.rc.d $pkgname.conf.d $pkgname.logrotate.d)
    _svntrunk="svn://svn.lighttpd.net/lighttpd/trunk/"
    _svnmod="lighttpd"
    build() {
    cd $startdir/src
    mkdir -p ~/.subversion
    svn co $_svntrunk $_svnmod
    msg "SVN checkout done or server timeout"
    msg "Starting make..."
    cp -R $_svnmod $_svnmod-build
    cd $_svnmod-build
    ./configure --prefix=/usr --libdir=/usr/lib/lighttpd \
    --without-ldap --without-gdbm --with-lua --with-memcache \
    --with-openssl=/usr/include/openssl \
    --with-mysql=/usr/bin/mysql_config \
    --with-webdav-props --with-attr \
    --without-fam --disable-ipv6
    make || return 1
    make DESTDIR=$startdir/pkg install || return 1
    # install configuration scripts and daemons
    install -Dm755 ../lighttpd.rc.d $startdir/pkg/etc/rc.d/lighttpd
    install -Dm644 ../lighttpd.conf.d $startdir/pkg/etc/conf.d/lighttpd
    install -Dm644 ../lighttpd.logrotate.d \
    $startdir/pkg/etc/logrotate.d/lighttpd
    install -Dm644 doc/lighttpd.conf $startdir/pkg/etc/lighttpd/lighttpd.conf
    rm -rf $startdir/src/$_svnmod-build
    Note: I did not test this PKGBUILD, so use it at your own risk. You'll also need some files (like lighttpd.install, etc. see source array) that come with the lighttpd PKGBUILD.

  • Sun Java System Web Server 7.0 available

    I am delighted to announce that Sun Java System Web Server 7.0 is now available for download, purchase, deployment, and more.
    This release builds on the highly scalable and stable heritage of Web Server. It features an entirely re-designed Administration interface designed around clusters, easy access to frequently performed tasks, simplification of frequently performed tasks., and a fully scriptable command line interface featuring functional parity with the browser-based interface.
    In addition to the administration changes this release features:
    o Full 64-bit support for Solaris SPARC and Solaris AMD64 platforms
    o Regular expression pattern matching for URL re-writing and mass hosting
    o If/Then/Else constructs within request processing
    o Advanced sed based input and output filters
    o Dynamic loading of Certificate Revocation Lists (CRLs) without requiring daemon restart
    o Elliptic Curve Cryptography (ECC)
    o Built in request mapping for protection against abnormal load patterns and Denial of Service protection
    o WebDAV ACL support
    o Out-of-box Java support for Servlets 2.4, JSP 2.0, JSF 1.1, JSTL 1.1, JWSDP 2.0 based web services
    o Java session failover and recovery within a cluster of peers
    o Integrated HTTP reverse proxy User-Agent
    o Bundled FastCGI client for use with third party scripting environments such as Perl, PHP, Ruby on Rails, etc
    o Enhancement of perfdump, stats-xml, and SNMP as well as more ability to monitor the Java container and the ACL system
    o Much more
    The software can be downloaded from:
    http://www.sun.com/download/products.xml?id=45ad781d
    The documentation is available at:
    http://docs.sun.com/app/docs/coll/1308.3

    If 7.0 was released, how come http://www.sun.com/webserver still only talks about 6.1?

  • 405 error loading a php file using fastCGI

    I'll start off by admitting I'm brand new to JWS. I really appreciate anyone willing to help with this configuration:
    GOAL: Install the PHP Engine as a FastCGI Server
    http://developers.sun.com/webtier/reference/techart/php2.html#4
    I've read a lot of pages on this, and "thought" I had my configuration right.
    I'm running SLES 10, and installed php fastcgi using yast2. The path to my php is /usr/bin/php-cgi5. I have copied that file to my plugins directory, as I heard it has to be in a location that web server can reach: /sun/webserver7/plugins/php/php-cgi5.
    My configs:
    obj.conf
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="restart" from="/" uri="/admingui/"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    ##Me added
    # Make everything in URI "/php" come from"/path/to/php" and
    # be executed as PHP using the directives in the Object
    # named "fastcgi" (defined below)
    NameTrans fn="pfx2dir"
    from="/php"
    dir="/path/to/php"
    name="fastcgi"
    ##End Me added
    PathCheck fn="uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index-j2ee"
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
    ObjectType fn="type-j2ee"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    Error fn="error-j2ee"
    AddLog fn="flex-log"
    ##Me Added
    # Execute all things with a MIME type of
    # "magnus-internal/fastcgi" with options (this requires that
    # mime.types be updated to assign this type
    # for specified extensions - see below):
    # bind-path: localhost:8082
    # app-path: /export/my/cgi/php
    # min-procs: 1
    # PHP_FCGI_CHILDREN: 1
    # PHP_FCGI_MAX_REQUEST: 200
    # LD_LIBRARY_PATH: /usr/local/php/lib
    # PHPRC: /path/to/php/config/dir
    # The LD_LIBRARY_PATH can be used to indicate the location
    # of the local system's MySQL libraries, etc.
    # Note that the PHPRC variable points to the directory
    # containing php.ini, not to php.ini itself.
    # This can be a single line or a line continued using
    # the syntax below
    Service type="magnus-internal/fastcgi"
    fn="responder-fastcgi"
    bind-path="localhost:8082"
    app-path="/export/my/cgi/php"
    min-procs="1"
    app-env="PHP_FCGI_CHILDREN=1"
    app-env="PHP_FCGI_MAX_REQUEST=200"
    app-env="LD_LIBRARY_PATH=/usr/local/php/lib"
    app-env="PHPRC=/path/to/php/config/dir"
    ##End Me added
    </Object>
    <Object name="j2ee">
    Service fn="service-j2ee" method="*"
    </Object>
    <Object name="es-internal">
    PathCheck fn="check-acl" acl="es-internal"
    </Object>
    <Object name="cgi">
    ObjectType fn="force-type" type="magnus-internal/cgi"
    Service fn="send-cgi"
    </Object>
    <Object name="send-precompressed">
    PathCheck fn="find-compressed"
    </Object>
    <Object name="compress-on-demand">
    Output fn="insert-filter" filter="http-compression"
    </Object>
    ##Me Added
    # Object to handle assigned names from the Default object
    <Object name="fastcgi">
    # Anything that ends up here has its type forced to
    # "magnus-internal/fastcgi"
    ObjectType fn="force-type"
    type="magnus-internal/fastcgi"
    # Run the request through the FastCGI handler with
    # the following options:
    # bind-path: localhost:8082
    # app-path: /export/my/cgi/php
    # min-procs: 1
    # PHP_FCGI_CHILDREN: 1
    # PHP_FCGI_MAX_REQUEST: 200
    # LD_LIBRARY_PATH: /usr/local/php/lib
    # PHPRC: /path/to/php/config/dir
    # The LD_LIBRARY_PATH can be used to indicate the location
    # of the local system's MySQL libraries, etc.
    # Note that the PHPRC variable points to the directory
    # containing php.ini, not to the php.ini itself.
    # This can be a single line or a line continued using
    # the syntax below
    Service type="magnus-internal/fastcgi"
    fn="responder-fastcgi"
    bind-path="localhost:8082"
    app-path="/sun/webserver7/plugins/php/php-cgi5"
    min-procs="1"
    app-env="PHP_FCGI_CHILDREN=1"
    app-env="PHP_FCGI_MAX_REQUEST=200"
    app-env="LD_LIBRARY_PATH=/usr/local/php/lib"
    app-env="PHPRC=/etc/php5/fastcgi/"
    </Object>
    magnus.conf
    Init fn="load-modules" shlib="libj2eeplugin.so"
    Init fn="load-modules" shlib="libdavplugin.so" funcs="init-dav,ntrans-dav,pcheck-dav,service-dav"
    Init fn="init-dav" LateInit="yes"
    Init fn=load-modules shlib="libfastcgi.so"
    mime.types (relevant sections only)
    type=magnus-internal/parsed-html exts=shtml
    type=magnus-internal/cgi exts=cgi,exe,bat,php
    type=magnus-internal/fastcgi exts=php,php3,php4,php5
    I'm not convinced that I have specified all the php directories as requested. Perhaps something looks off there?
    I currently have nothing configured in the fastCGI section of the web admin for the server.
    The default page still loads just fine, it's only php files i'm having issue with.
    The error I'm receiving is (IP removed):
    for host X.X.X.X trying to GET /foo.php, handle-processed reports: HTTP2205: The request method is not applicable to the requested resource.
    Thanks,
    Nick

    Thank you so much for the reply. yes, that appeared to be a typo in my config. Here's the new relevant section
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    NameTrans fn="restart" from="/" uri="/admingui/"
    NameTrans fn="ntrans-j2ee" name="j2ee"
    ##Me added
    # Make everything in URI "/php" come from"/path/to/php" and
    # be executed as PHP using the directives in the Object
    # named "fastcgi" (defined below)
    NameTrans fn="assign-name" from="/php/*" name="fastcgi"
    NameTrans fn="pfx2dir" from="/php/*" name="fastcgi"
    ##End Me added
    PathCheck fn="uri-clean"
    PathCheck fn="check-acl" acl="default"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index-j2ee"
    PathCheck fn="find-index" index-names="index.html,home.html,index.jsp"
    ObjectType fn="type-j2ee"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service method="(GET|HEAD)" type="magnus-internal/directory" fn="index-common"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    Error fn="error-j2ee"
    AddLog fn="flex-log"#####################
    I wasn't sure from your prior message if both of the following lines should be in there:
    NameTrans fn="assign-name" from="/php/*" name="fastcgi"
    NameTrans fn="pfx2dir" from="/php/*" name="fastcgi"
    I tried with both, tried with just the first, and still getting a 405. Not sure if i need to, but I am restarting the instance after making changes.
    I also tried putting my test file in both the webroot directory:
    /sun/webserver7/https-myhostname/docs/foo.php
    and in a php subdir of that
    /sun/webserver7/https-myhostname/docs/php/foo.php
    Still no luck.
    Thanks,
    Nick
    Edited by: wefawefds on Oct 30, 2009 1:54 PM

  • PHP using FastCGI on WebServer 7, Windows XP, not working, get http 404 err

    I got PHP to work with Web Server 7 on Windows XP, but for some reason that I dont know, the server became unresponsive after processing a page with a WordPress forum, so I wanted to use FastCGI instead so PHP wont cause a crash of the server, but I cant get it to work.
    The problem is that when trying to show a simple webpage "phpinfo.php", I get a http 404 error, saying could not find the file. In the "Fastcgistub.log" log I see the following:
    Fastcgistub.exe - version (1)
    created child - 4460
    After trying again, the following is displayed:
    E:/Dev/WebServer7/plugins/php/php-cgi.exe bound to \\.\pipe\FastCGI\gfxeditor.com is already running
    I followed the instructions... I dont know what else to do... Do you have any ideas why it cannot display the page?

    If I were to guess I'd say that the order of the directives in the obj.conf if wrong. Try moving the Service stanza for FastCGI to be below the send-file Service:
    Service method="(GET|HEAD|POST)" type="~magnus-internal/" fn="send-file"
    Service type="magnus-internal/php"
       fn="responder-fastcgi"
       app-path="E:/Dev/WebServer7/plugins/php/php-cgi.exe"
       bind-path="https-www.gfxeditor.com--php_cgi"
       app-env="PHPRC=E:/Dev/WebServer7/plugins/php"
       app-env="PHP_FCGI_CHILDREN=2"
       app-env="PHP_FCGI_MAX_REQUEST=200"
    Service method="TRACE" fn="service-trace"
    Error fn="error-j2ee"
    ...For example, in my obj.conf (which uses FastCGI and work just fine with PathInfo paths) I have this (note also that my stanza is wrapped in some If syntax to further restrict the execution of PHP):
    Service method=(GET|HEAD) type=*~magnus-internal/* fn=send-file bucket="static-bucket"
    #Sun FastCGI config
    <If $urlhost =~ "($VSids)"
        and $urlhost =~ '(.*\..*)$'>
          Service fn=responder-fastcgi
            app-path="/export/WS7/third-party/php/php_fcgi"
            bind-path="$(lc($1))"
            req-retry=5
            type="*magnus-internal/fastcgi*"
            app-env="PHPRC=/export/WS7/https-www/config"
            app-env="PHP_FCGI_CHILDREN=2"
            app-env="PHP_FCGI_MAX_REQUEST=1000"
            min-procs=1
            restart-interval=10
            bucket="php-bucket"
            rlimit_cpu=60
    </If>
    ...Sriram, it's indicated above that PHP 5.3 is currently in use. I'll assume that this is the pre-compiled PHP binary from php.net, or that this is a custom binary. I'm also using PHP 5.3 (though on Linux, not Windows) and see no reason why that would cause a particular problem.
    Edited by: j.mccabe on Jul 21, 2009 4:16 AM

  • Deploying C++ web service

    Is is possible to deploy a C++ webservice in weblogic server ??
    Thanks

    Hi San :)
    I think you need to use mod_soap module in Oracle HTTP server. or you can compile gSOAP web service as CGI-based or FastCGI application and copy the executable to cgi-bin directory in OHS.
    Thanks
    Rami AL-SAHHAR

  • FastCGI Server crashes as always

    I'm currently running a high loading forum system based on php, and I find out that my web server (7.0 Update 2) is quite unstable.
    Almost everyday, irregularly, no matter in high traffic or not, it crashes without symptoms. The reason for that is "can't create a request processor thread" error by FastCGI.
    I've to restart it manually every time it crashes...
    The following is the log & configuration of the server. Please give me some advice.
    Thanks
    ** Fastcgistub.log **
    can't create a request processor thread
    primordial died
    clean stub
    stopping child exit handler
    stopping monitoring
    terminating child - 13878
    <<<<<< ERROR LOG >>>>>>
    Fastcgistub - version (1)
    Web Server Primordial pid - (23577)
    ** obj.conf **
    <Object name="default">
    AuthTrans fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true"
    PathCheck fn="uri-clean"
    PathCheck fn="find-pathinfo"
    PathCheck fn="find-index" index-names="index.php,index.html,index.htm"
    ObjectType fn="type-by-extension"
    ObjectType fn="force-type" type="text/plain"
    Service fn="responder-fastcgi" type="magnus-internal/fastcgi" app-path="/usr/bin/php-cgi" listen-queue="256" req-retry="10" app-env="PHP_FCGI_CHILDREN=32" app-env="PHP_FCGI_MAX_REQUEST=200"
    Service method="(GET|HEAD|POST)" type="*~magnus-internal/*" fn="send-file"
    Service method="TRACE" fn="service-trace"
    AddLog fn="flex-log"
    Output fn="insert-filter" type="text/*" filter="http-compression" vary="false" compression-level="9" fragment_size="8096"
    </Object>
    ** ulimit -a **
    core file size (blocks, -c) 0
    data seg size (kbytes, -d) unlimited
    scheduling priority (-e) 0
    file size (blocks, -f) unlimited
    pending signals (-i) 38912
    max locked memory (kbytes, -l) 32
    max memory size (kbytes, -m) unlimited
    open files (-n) 6144
    pipe size (512 bytes, -p) 8
    POSIX message queues (bytes, -q) 819200
    real-time priority (-r) 0
    stack size (kbytes, -s) 8192
    cpu time (seconds, -t) unlimited
    max user processes (-u) 38912
    virtual memory (kbytes, -v) unlimited
    file locks (-x) unlimited
    ** System **
    Ubuntu 7.10 with 4GB RAM

    Alvisty wrote:
    The error log indicated that the server keeps crashing and spawning new process for handling. On a mean while, no. of anonymous memory mappings increase as it crashes. Once the size reached ~ 2G, Fastcgistub.log starts to report "can't create a request processor thread" error, and not too soon later, it hangs.Is this what you see when you specify host:port for bind-path ? Is it able to handle at least one request ? You had earlier mentioned that you just got a blank page.
    However, I discovered the problem may originate from php 5.2.5. In the days when I using 5.2.4, it sometime crashes, but certainly not that SERIOUS. Now I've reverted to 5.2.4, it's much better. (Though it still hangs sometimes.... same "can't create a request processor thread" error...)That's interesting. But, Fastcgistub does have leaks and will be fixed in U3. Meanwhile, can you try using the U1 FastCGI plugin ?

  • Oracle Java Web Server 6.1 / 7.0 Reverse Proxy

    Hello everyone,
    I have just installed both Sun Java Web Server versions 6.1 and 7.0 on Windows x86, trying to configure the Reverse Proxy Plugin, but none of the installations came with the libpassthrough.dll file mentioned in several documentations.
    I have searched both Google and Oracle websites but links on Google point to the former sun.com website and Oracle gives nothing :(
    update: I've installed Oracle iPlanet Web Server 7.0.15 and got only digest, fastcgi, htaccess and loadbal in the plugins folder, no libpassthrough :( Help!
    Does anybody know where can i get the Reverse Proxy Plugin for Windows ?
    Thank you very much,
    Daniel.
    Edited by: user2579623 on 07/08/2012 13:19

    In 6.1, the libpassthrough library comes in a separate download, usually with the application server, ie glassfish. In 7.x it is build in so there is no separate library to add, the functionality is just there and can even be configured from the web admin interface. Just use web server 7 and have a look at the admin console.

Maybe you are looking for

  • Cannot login with AD credentials on iMac

    Greetings: I have a brand new 27" Intel iMac that had been allowing AD logins just find until today. Now, no matter what I do, unbinding, rebooting, manually joining domain (dsconfigad), etc I cannot login using my AD credentials. This had been worki

  • Error while creating new user

    Hi I HAVE LOGGED INTO oracle Portal with user : portal30 passwd : portal30. After selecteing the administer tab when i click on create new users I am getting error Error: (WWC-00000) with a back link ( which does not work ). I didn't get anything oth

  • Certain Items Not Showing Up in Local View f12 Preview

    I have been making some changes (very, very green with DreamWeaver and Website building ing eneral), and have run into this issue.  When making changes to the navigation/links from one page to the next, (that is the only change being made) the flexsl

  • Parsing Huge Fixed length files

    Hi All, I have a requirement to parse a fixed lenght file which is of size 100MB. I have 1.7 million records in that file where each and every record is of length 41. When I am trying to load the file using the LineNumberReader and using the substrin

  • HT5824 how to recover deleted items

    My iphone was hacked into and only selected messages from certain individuals were deleted. I need any and all advise as to how i can regain all personal infomation lost.