Thomas S. Iversen <zensonic@zensonic.dk> wrote:
> > Man kan naturligvis også foretage opdateringer eller installere andre
> > ting på den, men det kræver selvfølgelig at man kan komme ind på den
> > gennem ssh eller telnet, ikke kun gennem et web-interface eller gennem
> > delte kataloger.
>
> Kan du installere php scripts selv på dimsen?
Jep.
> Hvis du kan, så kan du håbe på at de ikke kører php i safe_mode.
I Julie C Melonis bog 'PHP fast & easy web develpment', som jeg på et
tidspunkt har fået købt, startes med et lille php-script der hedder
'phpinfo.php', som om safe_mode giver følgende resultat:
safe_mode Off Off
---
Samlet oplyses følgende {du kan sikkert mere letlæseligt få den frem i
din browser med:
<
http://www.RQNNE.dk/phpinfo> }:
PHP Logo
PHP Version 4.3.10
System Linux DiskStation 2.4.22-uc0 #285 Tue Feb 14 11:38:37 CST 2006
ppc
Build Date Feb 14 2006 12:34:22
Configure Command './configure.syno'
'--with-zlib-dir=/usr/local/build_php/powerpc'
'--with-png-dir=/usr/local/build_php/powerpc'
'--with-jpeg-dir=/usr/local/build_php/powerpc'
'--host=powerpc-unknown-linux' '--target=powerpc-unknown-linux'
'--build=i686-pc-linux' '--without-mysql' '--without-pear'
'--with-apxs=/usr/local/apache/bin/apxs' '--enable-track-vars'
'--prefix=/usr/syno/php' '--with-config-file-path=/usr/syno/etc'
'--enable-mmcache' '--with-pgsql=/usr/syno/pgsql'
'--with-mysql=/usr/syno/mysql' '--enable-mbstring' '--with-gd'
'--enable-file64'
Server API Apache
Virtual Directory Support disabled
Configuration File (php.ini) Path /usr/syno/etc/php.ini
PHP API 20020918
PHP Extension 20020429
Zend Extension 20021010
Debug Build no
Thread Safety disabled
Registered PHP Streams php, http, ftp, compress.zlib
Zend logo This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, 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_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 no value no value
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 /lib/php/extensions /lib/php/extensions
file_uploads On On
gpc_order GPC GPC
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
max_execution_time 180 180
max_input_time 60 60
open_basedir
/volume1/web:/volume1/photo:/usr/syno/synoman/phpsrc:/etc:/var/run:/tmp
/volume1/web:/volume1/photo:/usr/syno/synoman/phpsrc:/etc:/var/run:/tmp
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
report_memleaks On On
safe_mode Off Off
safe_mode_exec_dir /usr/syno/bin /usr/syno/bin
safe_mode_gid Off Off
safe_mode_include_dir no value no value
sendmail_from no value no value
sendmail_path -t -i -t -i
serialize_precision 100 100
short_open_tag On On
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 4M 4M
upload_tmp_dir no value no value
user_dir no value no value
variables_order EGPCS EGPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
Turck MMCache
MMCache support enabled
Version 2.4.6
Caching Enabled true
Optimizer Enabled true
Memory Size 33,554,392 Bytes
Memory Available 28,379,064 Bytes
Memory Allocated 5,175,328 Bytes
Cached Scripts 94
Removed Scripts 0
Cached Keys 0
Directive Local Value Master Value
mmcache.cache_dir /tmp/mmcache /tmp/mmcache
mmcache.check_mtime 1 1
mmcache.compress 1 1
mmcache.content shm_and_disk shm_and_disk
mmcache.debug 0 0
mmcache.enable 1 1
mmcache.filter no value no value
mmcache.keys shm_and_disk shm_and_disk
mmcache.optimizer 1 1
mmcache.sessions shm_and_disk shm_and_disk
mmcache.shm_max 0 0
mmcache.shm_only 0 0
mmcache.shm_prune_period 0 0
mmcache.shm_size 0 0
mmcache.shm_ttl 0 0
apache
APACHE_INCLUDE no value
APACHE_TARGET no value
Apache Version Apache/1.3.33 (Unix) PHP/4.3.10
Apache Release 10329100
Apache API Version 19990320
Hostname:Port 127.0.0.1:80
User/Group admin(1024)/100
Max Requests Per Child: 0 - Keep Alive: on - Max Per Connection: 100
Timeouts Connection: 3600 - Keep-Alive: 15
Server Root /usr/syno/apache
Loaded Modules mod_php4, mod_setenvif, mod_so, mod_auth, mod_access,
mod_alias, mod_userdir, mod_actions, mod_imap, mod_asis, mod_cgi,
mod_dir, mod_autoindex, mod_include, mod_status, mod_negotiation,
mod_mime, mod_log_config, mod_env, http_core
Directive Local Value Master Value
child_terminate 0 0
engine 1 1
last_modified 0 0
xbithack 0 0
Apache Environment
Variable Value
DOCUMENT_ROOT /volume1/web
HTTP_ACCEPT
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,image/png,*/*;q=0.5
HTTP_ACCEPT_CHARSET ISO-8859-1,utf-8;q=0.7,*;q=0.7
HTTP_ACCEPT_ENCODING gzip,deflate
HTTP_ACCEPT_LANGUAGE da,en-us;q=0.7,en;q=0.3
HTTP_CONNECTION keep-alive
HTTP_HOST 10.0.0.33
HTTP_KEEP_ALIVE 300
HTTP_USER_AGENT Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; da;
rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bi
n:/usr/local/sbin
REMOTE_ADDR 10.0.0.36
REMOTE_PORT 50043
SCRIPT_FILENAME /volume1/web/phpinfo.php
SERVER_ADDR 10.0.0.33
SERVER_ADMIN admin
SERVER_NAME 10.0.0.33
SERVER_PORT 80
SERVER_SIGNATURE <ADDRESS>Apache/1.3.33 Server at 10.0.0.33 Port
80</ADDRESS>
SERVER_SOFTWARE Apache/1.3.33 (Unix) PHP/4.3.10
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING no value
REQUEST_URI /phpinfo
SCRIPT_NAME /phpinfo
HTTP Headers Information
HTTP Request Headers
HTTP Request GET /phpinfo HTTP/1.1
Accept
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,image/png,*/*;q=0.5
Accept-Charset ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept-Encoding gzip,deflate
Accept-Language da,en-us;q=0.7,en;q=0.3
Connection keep-alive
Host 10.0.0.33
Keep-Alive 300
User-Agent Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; da;
rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
HTTP Response Headers
Content-Location phpinfo.php
Vary negotiate
TCN choice
X-Powered-By PHP/4.3.10
Keep-Alive timeout=15, max=100
Connection Keep-Alive
Transfer-Encoding chunked
Content-Type text/html
ctype
ctype functions enabled
file64
file64 support enabled
gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
mbstring
Multibyte Support enabled
Japanese support enabled
Simplified chinese support enabled
Traditional chinese support enabled
Korean support enabled
Russian support enabled
Multibyte (japanese) regex support enabled
mbstring extension makes use of "streamable kanji code filter and
converter", which is distributed under the GNU Lesser General Public
License version 2.1.
Directive Local Value Master Value
mbstring.detect_order no value no value
mbstring.encoding_translation Off Off
mbstring.func_overload 0 0
mbstring.http_input pass pass
mbstring.http_output pass pass
mbstring.internal_encoding no value no value
mbstring.language neutral neutral
mbstring.substitute_character no value no value
mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 4.1.15
MYSQL_MODULE_TYPE external
MYSQL_SOCKET /tmp/mysql.sock
MYSQL_INCLUDE -I/usr/syno/mysql/include/mysql
MYSQL_LIBS -L/usr/syno/mysql/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
overload
User-Space Object Overloading Support enabled
pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 4.5 01-December-2003
pgsql
PostgreSQL Support enabled
PostgreSQL(libpq) Version 8.0.4
Multibyte character support enabled
SSL support disabled
Active Persistent Links 0
Active Links 0
Directive Local Value Master Value
pgsql.allow_persistent On On
pgsql.auto_reset_persistent Off Off
pgsql.ignore_notice Off Off
pgsql.log_notice Off Off
pgsql.max_links Unlimited Unlimited
pgsql.max_persistent Unlimited Unlimited
posix
Revision $Revision: 1.1.1.1 $
session
Session Support enabled
Registered save handlers files user
Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 On On
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 100 100
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /tmp /tmp
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid Off Off
standard
Dynamic Library support not available
..
Regex Library Bundled library enabled
Path to 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
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
tokenizer
Tokenizer Support enabled
xml
XML Support active
XML Namespace Support active
EXPAT Version 1.95.6
zlib
ZLib Support enabled
Compiled Version 1.1.3
Linked Version 1.2.3
Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
Additional Modules
Module Name
Environment
Variable Value
USER root
OLDPWD /dev
HOME /
TERM vt102
PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bi
n:/usr/local/sbin
ip off
SHELL /bin/sh
initrd 0x00800000,4M
PWD /
PHP Variables
Variable Value
_SERVER["DOCUMENT_ROOT"] /volume1/web
_SERVER["HTTP_ACCEPT"]
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plai
n;q=0.8,image/png,*/*;q=0.5
_SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1,utf-8;q=0.7,*;q=0.7
_SERVER["HTTP_ACCEPT_ENCODING"] gzip,deflate
_SERVER["HTTP_ACCEPT_LANGUAGE"] da,en-us;q=0.7,en;q=0.3
_SERVER["HTTP_CONNECTION"] keep-alive
_SERVER["HTTP_HOST"] 10.0.0.33
_SERVER["HTTP_KEEP_ALIVE"] 300
_SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Macintosh; U; PPC Mac OS X
Mach-O; da; rv:1.8.0.3) Gecko/20060426 Firefox/1.5.0.3
_SERVER["PATH"]
/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bi
n:/usr/local/sbin
_SERVER["REMOTE_ADDR"] 10.0.0.36
_SERVER["REMOTE_PORT"] 50043
_SERVER["SCRIPT_FILENAME"] /volume1/web/phpinfo.php
_SERVER["SERVER_ADDR"] 10.0.0.33
_SERVER["SERVER_ADMIN"] admin
_SERVER["SERVER_NAME"] 10.0.0.33
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_SIGNATURE"] <ADDRESS>Apache/1.3.33 Server at 10.0.0.33
Port 80</ADDRESS>
_SERVER["SERVER_SOFTWARE"] Apache/1.3.33 (Unix) PHP/4.3.10
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["REQUEST_METHOD"] GET
_SERVER["QUERY_STRING"] no value
_SERVER["REQUEST_URI"] /phpinfo
_SERVER["SCRIPT_NAME"] /phpinfo
_SERVER["PATH_TRANSLATED"] /volume1/web/phpinfo.php
_SERVER["PHP_SELF"] /phpinfo
_SERVER["argv"]
Array
(
)
_SERVER["argc"] 0
_ENV["USER"] root
_ENV["OLDPWD"] /dev
_ENV["HOME"] /
_ENV["TERM"] vt102
_ENV["PATH"]
/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/bin:/usr/syno/sbin:/usr/local/bi
n:/usr/local/sbin
_ENV["ip"] off
_ENV["SHELL"] /bin/sh
_ENV["initrd"] 0x00800000,4M
_ENV["PWD"] /
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.
--
Per Erik Rønne
http://www.RQNNE.dk