Sie sind nicht angemeldet.

Anzeigen

**Wir werden in den kommenden Tagen einen Umzug auf einen neuen Server durchführen. Im Rahmen dieser Maßnahme wird das Forum ca. 1 Stunde nicht erreichbar sein.** nslu2-info.de ist ein privates Projekt von mir, welches jeden Monat aus eigener Tasche finanziert wird. Mit einer freiwilligen Spende wird der Erhalt und der weitere Ausbau dieses Forums unterstützt. Um mich beim Erhalt des Forums zu unterstützen, kannst Du entweder via Flattr oder Paypal spenden. Ich bedanke mich schon jetzt bei allen Unterstützern.

Lieber Besucher, herzlich willkommen bei: Die NSLU2 Community****wenns ums speichern und streamen geht****. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

mannheim

Anfänger

  • »mannheim« ist der Autor dieses Themas

Beiträge: 2

Firmwareversion / your current Firmware: Unslung 2.12

  • Nachricht senden

1

Mittwoch, 12. September 2007, 21:28

PHP und Apache

Hallo,

ich habe mein NSLU ge-"unslung"t und Apache, MYSQL und PHP via ipkg installiert.
apache läuft, nur php will nicht.
Wenn ich ein php Dokument im www root ablege (z. B. mit phpinfo() ) dann wird dies nicht vom Server ausgeführt, sondern ein Download der Datei wird angeboten.

Wenn ich das gleiche Skript über die Kommandozeile ausführe, gehts so nicht:

# php /opt/share/www/test.php
php: No such file or directory

Wenn ich es mit Pfad zu php executable eingebe, kommt die gewünschte Ausgabe:

# /opt/bin/php /opt/share/www/test.php

Hier die komplette Ausgabe von phpinfo()
phpinfo()
PHP Version => 5.2.3
System => Linux MMNAS01 2.4.22-xfs #1 Mon Apr 10 18:17:11 PDT 2006 armv5b
Build Date => Jun 27 2007 11:43:57
Configure Command => './configure' '--build=i386-pc-linux-gnu' '--host=armv5b-s
oftfloat-linux' '--target=armv5b-softfloat-linux' '--prefix=/opt' '--with-config
-file-scan-dir=/opt/etc/php.d' '--with-layout=GNU' '--disable-static' '--enable-
bcmath=shared' '--enable-calendar=shared' '--enable-dba=shared' '--with-inifile'2.3R63-uNSLUng-6.8-beta
---------
'--with-flatfile' '--enable-dom=shared' '--enable-embed=shared' '--enable-exif=

BusyBox v0.60.4 (2005.03.22-06:52+0000) Buil
shared' '--enable-ftp=shared' '--enable-mbstring=shared' '--enable-pdo=shared' 'r 'help' for a list of built-in commands.
--enable-shmop=shared' '--enable-sockets=shared' '--enable-sysvmsg=shared' '--en /opt/bin/php
ff

cd ..
ls
quit
# /opt/bin/php /opt
able-sysvshm=shared' '--enable-sysvsem=shared' '--enable-xml=shared' '--enable-x/opt/var/www/test.php
# /opt/bin
mlreader=shared' '--with-bz2=shared,/home/slug/optware/nslu2/staging/opt' '--wit
PHP Version => 5.2.3
System => Linux MMNAS01 2.4.22-xf
-enable-maintainer-zts' '--without-iconv' '--without-pear'pt' '--with-pdo-pgsql=
Server API => Command Line Interface

Configuration File (php.ini) Path => /opt/etc
xs
Loaded Configuration File => /opt/etc/php.ini '--with-zlib=shared,/home/slug/
Scan this dir for additional .ini files => /opt/etc/php.d
optware/nslu2/staging/opt' '--with-libxml-dir=/
additional .ini files parsed => /opt/etc/php.d/mbstring.ini,
pt' '--
/opt/etc/php.d/mysql.inioptware/nslu2/staging/op
PHP API => 20041225ome
PHP Extension => 20060613
Zend Extension => 220060519nslu2/staging/opt' '--with-
Debug Build => no/slug/optware/nsl
Thread Safety => enabled
Zend Memory Manager => enabled
taging/opt' '--with-zlib-
IPv6 Support => enabledslu2/staging/opt' '--wi
Registered PHP Streams => php, file, data, http, ftp, compress.bzip2, htt

-enable-maintainer-zts' '--without-ic
g.strip_tags, convert.*, consumed, bzip2.*, zlib.*
Server API => Command

This program makes use of the Zend Scripting Language Engine:ctory Support => enabled
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Loaded Configuration File => /op

_______________________________________________________________________r additional .ini files => /opt/etc/php.d

Configuration
ad
PHP Coreini file
Directive => Local Value => Master Value
Debug Build
always_populate_raw_post_data => Off => Offbled
Zend Memory Ma
arg_separator.input => & => &
IPv6 Support
arg_separator.output => & => &
Registered PHP Streams =>
asp_tags => Off => Offftp, compress.bzip2, h
auto_append_file => no value => no value
auto_globals_jit => On => On
Registered Stre
auto_prepend_file => no value => no valueg, ssl, sslv3, sslv2, t
browscap => no value => no value
ls
default_charset => no value => no valueot13, string.toupper, string.tolower, s
default_mimetype => text/html => text/html
define_syslog_variables => Off => Offp2.*, zlib.*
disable_classes => n


enable_dl => On => On
Directive => Local
error_append_string => no value => no value
allow_call_time_pass_refe
error_log => no value => no value
all
error_prepend_string => no value => no value
allow_url_include => Off => Off
error_reporting => 6143 => 6143_populate_raw_post_data => Off
expose_php => On => On
extension_dir => /opt/lib/php/extensions => /opt/lib/php/extensionsseparator.output => & => &
asp_tags =
file_uploads => On => On
auto_append_fi
ignore_repeated_errors => Off => Off/lib/php/extensions => /opt/lib/php/
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
highlight
implicit_flush => On => On#FFFFFF">#FFFFFF</font> =>
include_path => .: => .:
log_errors => On => On
log_errors_max_len => 1024 => 1024
highlight.c
magic_quotes_gpc => Off => OffFF8000">#FF8000</font> => <fon
magic_quotes_runtime => Off => Off
magic_quotes_sybase => Off => Off0">#FF8000</font>
mail.force_extra_parameters => no
"color: #0000BB">#0
memory_limit => 8M => 8M
highl
open_basedir => no value => no value000">#000000</font> => <font style="
output_buffering => 0 => 0
output_handler => no value => no value000">#000000</font>
post_max_size => 8M => 8Md => <font style="color:
precision => 14 => 14> => <font style=
realpath_cache_size => 16K => 16K
realpath_cache_ttl => 120 => 1200</font>
register_argc_argv => On => Onnt style="color: #DD0000">#DD0
register_globals => Off => Off
register_long_arrays => On => On
color: #DD0000">#D
report_memleaks => On => On
html_errors
report_zend_debug => Off => Off
ignore_repeated_errors =
safe_mode => Off => Off
include_path => .: => .:
sendmail_from => no value => no value
log_errors_max_len =>
sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i => Off
magic_quotes_runtime => Off =>
serialize_precision => 100 => 100
magic_quotes_sybase => Off =>
short_open_tag => On => On
mail.force_extr
SMTP => localhost => localhostvalue
smtp_port => 25 => 25
max_execution_ti
sql.safe_mode => Off => Off
max_input_nest
track_errors => Off => Off
unserialize_callback_func => no value => no value
memory_limit => 8M => 8M
upload_max_filesize => 2M => 2M=> no value
upload_tmp_dir => no value => no value=> 0

bcmath> Off
BCMath support => enabled
register_long_arrays =
bz2=>
BZip2 Support => Enabled
report_memleaks
Stream Wrapper support => compress.bz2://port_zend_debug => Off => Off
Stream Filter support => bzip2.decompress, bzip2.compress
safe_mode_exec_dir => no value => no value
BZip2 Version => 1.0.4, 20-Dec-2006
safe_mode_gid => Off => Off
calendar
Calendar support => enabledo value => no value
ctype
ctype functions => enabledndmail_from => no value =>
datelue
date/time support => enabled

sql.safe_mode => O
date.default_longitude => 35.2333 => 35.2333rors => Off => Off
date.sunrise_zenith => 90.583333 => 90.583333alue
date.sunset_zenith => 90.583333 => 90.583333
upload_tmp_dir =>
date.timezone => no value => no value
user_dir => no
dba =>
DBA support => enabled
vari
Supported handlers => gdbm cdb cdb_make db4 inifile flatfile
xmlrpc_error_number => 0 => 0
dompc_
DOM/XML => enabled
DOM/XML API Version => 20031129> On

exifrt =
EXIF Support => enabled.compress
EXIF Version => 1.4 $Id: exif.c,v 1.173.2.5.2.19 2007/02/27 03:04:40 iliaa Exp $
calendar
Calendar support => enabled
Supported EXIF Version => 0220pe
ctype functions => en
Supported filetypes => JPEG,TIFFdate
date/time support => e
filter
Input Validation and Filtering => enabledase Version => 2007.5
Revision => $Revision: 1.52.2.39 $tabase => internal
Directive => Local Value => Master Valueerlin

filter.default => unsafe_raw => unsafe_raw
date
DBA supp
emd256 ripemd320 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,inifile flatfile
do
4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 h
libxml Version => 2.6.27
HTML S
aval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 hava
XPointer Support => enabled
Schema Support =
l128,5 haval160,5 haval192,5 haval224,5 haval256,5=> enabled
exif
EX
jsonport
json support => enabled

filter.d
mbstring extension makes use of "streamable kanji code filter and converter", whftp
FTP support => enabled
hash
hash support =>
ich is distributed under the GNU Lesser General Public License version 2.1.a384 sha512 ripemd128 ripemd160 rip
Directive => Local Value => Master Value
mbstring.language => neutral => neutral,5
mbstring.strict_detection => Off => Off enabled
json ve
mbstring.substitute_character => no value => no valueXML support => active
libXML
mysql => 2
MySQL Support => enabled
libXML streams => en
Active Persistent Links => 0
mbstring
Multiby
Active Links => 0led
Client API version => 4.1.20ng engine => libmbfl
MYSQL_MODULE_TYPE => externa
mysql.default_password => no value => no value=> no value
mysql.default_port => no value => no value Off => Off
mysql.default_socket => no value => no value
mbstring.ht
mysql.default_user => no value => no value

mysql.trace_mode => Off => Off => neutral
mysqli
MysqlI Support => enabledction => Off => Off
Client API library version => 4.1.20tring.substitute_character => no val
Client API header version => 4.1.20
my
MYSQLI_SOCKET => /tmp/mysql.sockd
Active
Directive => Local Value => Master Value
Active Links => 0
mysqli.default_host => no value => no value
MYSQL_MODULE_TYPE => exter
mysqli.default_port => 3306 => 3306QL_SOCKET => /tmp/mysql.sock
mysqli.default_pw => no value => no value-I/home/slug/optware/nslu2/staging/opt/in
mysqli.default_socket => no value => no value
MYSQL_LIBS
mysqli.default_user => no value => no valuei
OpenSSL Version => OpenSSL 0.9.7m 23 Feb 2007
mys
pcreault
PCRE (Perl Compatible Regular Expressions) Support => enabled
mysql.default_port => no value => no value
PCRE Library Version => 7.3 2007-08-28
mysql.default_socket => no value =>
posixe
Revision => $Revision: 1.70.2.3.2.15 $
mysql.default_user => no value => no
Reflection
Reflection => enabled
mysql.max_links =>
Version => $Id: php_reflection.c,v 1.164.2.33.2.39 2007/05/29 08:44:05 helly Exptent => Unlimited => Unlimited
mys
$tr
session=> Off
Session Support => enabled
mysqli
My
Registered save handlers => files user
Client API library version =
session.cookie_domain => no value => no value value
session.cookie_httponly => Off => OffUnlimited
session.cookie_lifetime => 0 => 0 Off => Off
session.cookie_path => / => /SSL support => enabled
session.cookie_secure => Off => Off=> OpenSSL 0.9.7m 23 Feb 2007
session.entropy_file => no value => no value
PCRE (Perl Compatible Regular Expre
session.hash_bits_per_character => 4 => 4
session.hash_function => 0 => 0
$
session
Sessi
session.name => PHPSESSID => PHPSESSID
Registered save handlers => f
session.referer_check => no value => no value
Registered serializer handlers => php php_b
session.save_handler => files => files
Directive => Local Val
session.save_path => /opt/var/lib/php/session => /opt/var/lib/php/sessionart => Off => Off
session.bug_compat_42 =
session.serialize_handler => php => php
session.bug_compat_warn => On =
session.use_cookies => On => On
session.cache_expire =>
session.use_only_cookies => Off =>

sockets/ => /
Sockets Support => enabled
session.cookie_secure =>
SPL> O
SPL support => enabled
session.
Interfaces => Countable, OuterIterator, RecursiveIterator, SeekableIterator, Splsession.entropy_length => 0 => 0
session.gc_divi
Observer, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException,
session.gc_probability => 1 => 1
sessio
BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, Emion.hash_function => 0 => 0
session.name => PHPSE
standard
Regex Library => Bundled library enabledyIterator, ArrayObject, BadFunctionCallE
Dynamic Library Support => enabled
Path to sendmail => /usr/sbin/sendmail -t -i CachingIterator, DirectoryIterator, DomainE
Directive => Local Value => Master Value
assert.active => 1 => 1FilterIterator, Infinit
assert.bail => 0 => 0mentException, Iterat
assert.callback => no value => no value
assert.quiet_eval => 0 => 0n, LimitIterator, LogicExce
assert.warning => 1 => 1Out
auto_detect_line_endings => 0 => 0
OfBoundsE
default_socket_timeout => 60 => 60flowException, ParentIterator, Ran
safe_mode_allowed_env_vars => PHP_ => PHP_

ef,area=href,frame=src,input=src,form=fakeentry RuntimeException, SimpleXMLIterator, SplFileIn
user_agent => no value => no value
sysvmsg
sysvmsg support => enabledage, SplTempFileObject, Un
Revision => $Revision: 1.20.2.3.2.6 $
tokenizer
Tokenizer Support => enabled
standard
Rege
xmlrar
XML Support => activeabled
XML Namespace Support => active Library Support => enabled
libxml2 Version => 2.6.27
Path to sendmail =>
xmlwriterendmail -
XMLWriter => enabled
xsl

XSL => enabledal Value => Ma
libxslt Version => 1.1.22
ZLib Support => enabled
auto_detect_line
Stream Wrapper support => compress.zlib://
default_socket_timeout => 60 =>
Stream Filter support => zlib.inflate, zlib.deflateed_env_vars => PHP_ => PHP_
Compiled Version => 1.2.3de_protected_env_vars =>
Linked Version => 1.2.3BRARY_PATH
Directive => Local Value => Master Value
url_rewriter.tags => a=href,
zlib.output_compression => Off => Offeentry => a=hr
zlib.output_compression_level => -1 => -1
ef,area=href,frame=src,in
zlib.output_handler => no value => no value
user_agent => no
Additional Modules
Module Name
sysvmsg
sysvsemysvmsg
sysvshm=> enab
Environment
Variable => ValueRevision: 1
USER =>
xm
PHP Variables
XMLWriter
Variable => Value
xsl
_SERVER['USER'] => root
libxslt Versio
_SERVER['MAIL'] => /var/spool/mail/rootxslt compiled against libxml Version =>
_SERVER['HOME'] => /root
_SERVER['LOGNAME'] => root
libexslt Ver
_SERVER['PATH'] => /sbin:/bin:/usr/sbin:/usr/bin
[0] => /opt/share/www/test.php
)
_SERVER['argc'] => 1
_ENV['USER'] => root
_ENV['MAIL'] => /var/spool/mail/root
_ENV['HOME'] => /root
_ENV['LOGNAME'] => root
_ENV['PATH'] => /sbin:/bin:/usr/sbin:/usr/bin
_ENV['SHELL'] => /bin/sh
_ENV['PWD'] => /root


Leider bin ich nicht gerade der Linux Hack, daher kann ich nur vermuten dass was mit den Umgebungsvariablen nicht passt.

Kann mir da vielleicht jemand einen Tipp geben? :confused:

Danke im voraus,

Gruß
Markus


was hast Du bereits probiert?: # php /opt/share/www/test.php
# /opt/bin/php /opt/share/www/test.php

Die Suche schon benuzt?: ja

Art der Firmware: 6,8 beta

wird ein externer Datenträger genutzt, wenn ja, was für eine Art: 1 GB Flash

Anzeigen

mannheim

Anfänger

  • »mannheim« ist der Autor dieses Themas

Beiträge: 2

Firmwareversion / your current Firmware: Unslung 2.12

  • Nachricht senden

2

Mittwoch, 12. September 2007, 21:51

Hallo nochmal,

ich habe den Fehler gefunden:

die Module für php waren in der httpd.conf nicht konfiguriert:

LoadModule php5_module modules/libphp5.so
und
AddType application/x-httpd-php .php .php4 .php3

Dann Restart des apache-servers, geht!

Gruß
Markus

Anzeigen

3

Freitag, 2. Mai 2008, 02:14

HI,
also ich musste auch das Modul dazuschreiben.
Ich habe auch in der httpd.conf den Befehl
LoadModule php5_module libexec/libphp5.so
dazugefügt, allerdings war es bei mir das verzeichnis libexec
und nicht modules.
Und eben noch

Zitat

AddType application/x-httpd-php .php .php4 .php3

Meine Website: http://power-direkt.de

Oder auch sehr interessant: http://witze.power-direkt.de :)

Social Bookmarks