OpenWrt Forum Archive

Topic: lighttpd and php5 testing package wrong?

The content of this topic has been archived on 27 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Ok, like I alread said in the other thread,
servers running now after using this
http://www.macsat.com/macsat/content/view/19/30/
tutorial!

I used only the newest packages from nico's testing tracker.

But I still got the error I got with thttpd+php4 included:
the function preg_match does not work!

(not with phpbb2, not with a test call to the function)

"PHP Version 5.0.5

System     Linux OpenWGT 2.4.20 #93 Sun Jul 24 14:17:13 UTC 2005 mips
Build Date     Oct 30 2005 02:29:32
Configure Command     './configure' '--target=mipsel-linux' '--host=mipsel-linux' '--build=i386-pc-linux-gnu' '--program-prefix=' '--program-suffix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--datadir=/usr/share' '--includedir=/usr/include' '--infodir=/usr/share/info' '--libdir=/usr/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--mandir=/usr/share/man' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--disable-nls' '--enable-shared' '--disable-static' '--disable-rpath' '--disable-debug' '--without-pear' '--disable-spl' '--with-config-file-path=/etc' '--disable-ipv6' '--enable-magic-quotes' '--enable-memory-limit' '--disable-short-tags' '--disable-ctype' '--disable-dom' '--enable-ftp=shared' '--without-gettext' '--without-iconv' '--disable-libxml' '--without-libxml-dir' '--disable-mbstring' '--disable-mbregex' '--with-openssl=shared,/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--with-kerberos=no' '--with-openssl-dir=/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--enable-session=shared' '--disable-simplexml' '--disable-soap' '--enable-sockets=shared' '--disable-tokenizer' '--with-zlib=/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--with-zlib-dir=/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--with-curl=shared,/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--with-gd=shared,/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--without-freetype-dir' '--without-jpeg-dir' '--with-png-dir=/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--without-xpm-dir' '--without-ttf' '--without-t1lib' '--enable-gd-native-ttf' '--disable-gd-jis-conv' '--with-gmp=shared,/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--with-ldap=shared,/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--with-ldap-sasl=/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--with-mysql=shared,/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--with-pcre-regex=shared,/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--with-pgsql=shared,/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--with-sqlite=shared,/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--enable-xml=shared,/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--with-libexpat-dir=/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr' '--disable-cli' '--enable-cgi' '--disable-fastcgi' '--enable-force-cgi-redirect' '--enable-discard-path'
Server API     CGI
Virtual Directory Support     disabled
Configuration File (php.ini) Path     /etc/php.ini
PHP API     20031224
PHP Extension     20041030
Zend Extension     220040412
Debug Build     no
Thread Safety     disabled
Zend Memory Manager     enabled
IPv6 Support     disabled
Registered PHP Streams     php, file, http, ftp, compress.zlib
Registered Stream Socket Transports     tcp, udp, unix, udg

Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.0.5, Copyright (c) 1998-2004 Zend Technologies

PHP Credits
Configuration
PHP Core
Directive    Local Value    Master Value
allow_call_time_pass_reference    On    On
allow_url_fopen    On    On
always_populate_raw_post_data    Off    Off
arg_separator.input    &    &
arg_separator.output    &    &
asp_tags    Off    Off
auto_append_file    no value    no value
auto_globals_jit    On    On
auto_prepend_file    no value    no value
browscap    no value    no value
default_charset    no value    no value
default_mimetype    text/html    text/html
define_syslog_variables    Off    Off
disable_classes    no value    no value
disable_functions    no value    no value
display_errors    On    On
display_startup_errors    Off    Off
doc_root    /www    /www
docref_ext    no value    no value
docref_root    no value    no value
enable_dl    On    On
error_append_string    no value    no value
error_log    no value    no value
error_prepend_string    no value    no value
error_reporting    2039    2039
expose_php    On    On
extension_dir    /usr/lib/php    /usr/lib/php
file_uploads    On    On
highlight.bg    #FFFFFF    #FFFFFF
highlight.comment    #FF8000    #FF8000
highlight.default    #0000BB    #0000BB
highlight.html    #000000    #000000
highlight.keyword    #007700    #007700
highlight.string    #DD0000    #DD0000
html_errors    On    On
ignore_repeated_errors    Off    Off
ignore_repeated_source    Off    Off
ignore_user_abort    Off    Off
implicit_flush    Off    Off
include_path    .:    .:
log_errors    Off    Off
log_errors_max_len    1024    1024
magic_quotes_gpc    On    On
magic_quotes_runtime    Off    Off
magic_quotes_sybase    Off    Off
mail.force_extra_parameters    no value    no value
max_execution_time    30    30
max_input_time    60    60
memory_limit    8M    8M
open_basedir    no value    no value
output_buffering    no value    no value
output_handler    no value    no value
post_max_size    8M    8M
precision    12    12
register_argc_argv    On    On
register_globals    Off    Off
register_long_arrays    On    On
report_memleaks    Off    Off
report_zend_debug    On    On
safe_mode    Off    Off
safe_mode_exec_dir    no value    no value
safe_mode_gid    Off    Off
safe_mode_include_dir    no value    no value
sendmail_from    no value    no value
sendmail_path    /usr/sbin/sendmail -t -i     /usr/sbin/sendmail -t -i
serialize_precision    100    100
short_open_tag    Off    Off
SMTP    localhost    localhost
smtp_port    25    25
sql.safe_mode    Off    Off
track_errors    Off    Off
unserialize_callback_func    no value    no value
upload_max_filesize    2M    2M
upload_tmp_dir    /tmp    /tmp
user_dir    no value    no value
variables_order    EGPCS    EGPCS
xmlrpc_error_number    0    0
xmlrpc_errors    Off    Off
y2k_compliance    On    On
zend.ze1_compatibility_mode    Off    Off

ftp
FTP support     enabled

gd
GD Support     enabled
GD Version     2.0 or higher
GIF Read Support     enabled
GIF Create Support     enabled
PNG Support     enabled
WBMP Support     enabled

mysql
MySQL Support    enabled
Active Persistent Links     0
Active Links     0
Client API version     4.0.24
MYSQL_MODULE_TYPE     external
MYSQL_SOCKET     /tmp
MYSQL_INCLUDE     -I/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr/include/mysql
MYSQL_LIBS     -L/home/projects/openwrt/branches/trunk/compat/staging_dir_mipsel/usr/lib/mysql -lmysqlclient

Directive    Local Value    Master Value
mysql.allow_persistent    On    On
mysql.connect_timeout    60    60
mysql.default_host    no value    no value
mysql.default_password    no value    no value
mysql.default_port    no value    no value
mysql.default_socket    no value    no value
mysql.default_user    no value    no value
mysql.max_links    Unlimited    Unlimited
mysql.max_persistent    Unlimited    Unlimited
mysql.trace_mode    Off    Off

posix
Revision     $Revision: 1.60.2.4 $

standard
Regex Library     Bundled library enabled
Dynamic Library Support     enabled
Path to sendmail     /usr/sbin/sendmail -t -i

Directive    Local Value    Master Value
assert.active    1    1
assert.bail    0    0
assert.callback    no value    no value
assert.quiet_eval    0    0
assert.warning    1    1
auto_detect_line_endings    0    0
date.default_latitude    31.7667    31.7667
date.default_longitude    35.2333    35.2333
date.sunrise_zenith    90.83    90.83
date.sunset_zenith    90.83    90.83
default_socket_timeout    60    60
safe_mode_allowed_env_vars    PHP_    PHP_
safe_mode_protected_env_vars    LD_LIBRARY_PATH    LD_LIBRARY_PATH
url_rewriter.tags    a=href,area=href,frame=src,input=src,form=,fieldset=    a=href,area=href,frame=src,input=src,form=,fieldset=
user_agent    no value    no value

zlib
ZLib Support     enabled
Compiled Version     1.2.2
Linked Version     1.2.2

Directive    Local Value    Master Value
zlib.output_compression    On    On
zlib.output_compression_level    -1    -1
zlib.output_handler    no value    no value

Additional Modules
Module Name

Environment
Variable    Value
SERVER_SOFTWARE     lighttpd/1.4.7
SERVER_NAME     192.168.2.21
GATEWAY_INTERFACE     CGI/1.1
SERVER_PROTOCOL     HTTP/1.1
SERVER_PORT     80
SERVER_ADDR     0.0.0.0
REQUEST_METHOD     GET
REDIRECT_STATUS     200
QUERY_STRING     no value
REQUEST_URI     /phpinfo.php
REMOTE_ADDR     192.168.2.4
REMOTE_PORT     2312
CONTENT_LENGTH     0
SCRIPT_FILENAME     /www/phpinfo.php
SCRIPT_NAME     /phpinfo.php
HTTP_HOST     192.168.2.21
HTTP_USER_AGENT     Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) Gecko/20051111 Firefox/1.5
HTTP_ACCEPT     text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_LANGUAGE     de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
HTTP_ACCEPT_ENCODING     gzip,deflate
HTTP_ACCEPT_CHARSET     ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_KEEP_ALIVE     300
HTTP_CONNECTION     keep-alive
ORIG_SCRIPT_NAME     /phpinfo.php
ORIG_SCRIPT_FILENAME     /www/phpinfo.php
DOCUMENT_ROOT     /www
PATH_INFO     no value
PATH_TRANSLATED     no value

PHP Variables
Variable    Value
_SERVER["SERVER_SOFTWARE"]    lighttpd/1.4.7
_SERVER["SERVER_NAME"]    192.168.2.21
_SERVER["GATEWAY_INTERFACE"]    CGI/1.1
_SERVER["SERVER_PROTOCOL"]    HTTP/1.1
_SERVER["SERVER_PORT"]    80
_SERVER["SERVER_ADDR"]    0.0.0.0
_SERVER["REQUEST_METHOD"]    GET
_SERVER["REDIRECT_STATUS"]    200
_SERVER["QUERY_STRING"]    no value
_SERVER["REQUEST_URI"]    /phpinfo.php
_SERVER["REMOTE_ADDR"]    192.168.2.4
_SERVER["REMOTE_PORT"]    2312
_SERVER["CONTENT_LENGTH"]    0
_SERVER["SCRIPT_FILENAME"]    /www/phpinfo.php
_SERVER["SCRIPT_NAME"]    /phpinfo.php
_SERVER["HTTP_HOST"]    192.168.2.21
_SERVER["HTTP_USER_AGENT"]    Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) Gecko/20051111 Firefox/1.5
_SERVER["HTTP_ACCEPT"]    text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_SERVER["HTTP_ACCEPT_LANGUAGE"]    de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
_SERVER["HTTP_ACCEPT_ENCODING"]    gzip,deflate
_SERVER["HTTP_ACCEPT_CHARSET"]    ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_KEEP_ALIVE"]    300
_SERVER["HTTP_CONNECTION"]    keep-alive
_SERVER["ORIG_SCRIPT_NAME"]    /phpinfo.php
_SERVER["ORIG_SCRIPT_FILENAME"]    /www/phpinfo.php
_SERVER["DOCUMENT_ROOT"]    /www
_SERVER["PATH_INFO"]    no value
_SERVER["PATH_TRANSLATED"]    no value
_SERVER["PHP_SELF"]    /phpinfo.php
_SERVER["argv"]   

Array
(
)

_SERVER["argc"]    0
_ENV["SERVER_SOFTWARE"]    lighttpd/1.4.7
_ENV["SERVER_NAME"]    192.168.2.21
_ENV["GATEWAY_INTERFACE"]    CGI/1.1
_ENV["SERVER_PROTOCOL"]    HTTP/1.1
_ENV["SERVER_PORT"]    80
_ENV["SERVER_ADDR"]    0.0.0.0
_ENV["REQUEST_METHOD"]    GET
_ENV["REDIRECT_STATUS"]    200
_ENV["QUERY_STRING"]    no value
_ENV["REQUEST_URI"]    /phpinfo.php
_ENV["REMOTE_ADDR"]    192.168.2.4
_ENV["REMOTE_PORT"]    2312
_ENV["CONTENT_LENGTH"]    0
_ENV["SCRIPT_FILENAME"]    /www/phpinfo.php
_ENV["SCRIPT_NAME"]    /phpinfo.php
_ENV["HTTP_HOST"]    192.168.2.21
_ENV["HTTP_USER_AGENT"]    Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8) Gecko/20051111 Firefox/1.5
_ENV["HTTP_ACCEPT"]    text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
_ENV["HTTP_ACCEPT_LANGUAGE"]    de-de,de;q=0.8,en-us;q=0.5,en;q=0.3
_ENV["HTTP_ACCEPT_ENCODING"]    gzip,deflate
_ENV["HTTP_ACCEPT_CHARSET"]    ISO-8859-1,utf-8;q=0.7,*;q=0.7
_ENV["HTTP_KEEP_ALIVE"]    300
_ENV["HTTP_CONNECTION"]    keep-alive
_ENV["ORIG_SCRIPT_NAME"]    /phpinfo.php
_ENV["ORIG_SCRIPT_FILENAME"]    /www/phpinfo.php
_ENV["DOCUMENT_ROOT"]    /www
_ENV["PATH_INFO"]    no value
_ENV["PATH_TRANSLATED"]    no value

PHP License

This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license@php.net. "

phpinfo ^^'

Please anyone, help me!

the function preg_match does not work!

Did you install php4-mod-pcre?

The discussion might have continued from here.