Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: Ubuntu-Forum & Kubuntu-Forum | www.Ubuntu-Forum.de. 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.

  • »khymon« ist der Autor dieses Themas

Beiträge: 76

Registrierungsdatum: 30.04.2006

  • Nachricht senden

1

12.07.2006, 09:36

php-Files werden nur zum download angeboten

Hallo!

Ich hatte zwar dieses Problem schon mal in einem anderen Kontext, aber jetzt taucht es wieder auf und ich weiß leider nicht mehr, was die Lösung dafür war.

Also: Ich betreibe hier einen Apache2 mit php4 und phpmyadmin. Wenn ich die Testseite vom Apache aufrufe, geht alles fehlerfrei. Wenn ich allerdings versuche, http://localhost/phpmyadmin aufzurufen (egal mit welchem Browser), wird mir nur angeboten, die verknüpfte Datei (Typ "PHTML") mit einem Tool zu öffnen, allerdings nicht mit einem Browser direkt anzuzeigen.

Ich denke mir, daß da ein Paket fehlt, drum liste ich mal alle Pakete auf, die ich in diesem Zusammenhang installiert habe:

Apache:
-------------

- apache2
- apache2-common
- apache2-mpm-prefork
- apache2-utils
- libapache2-mod-auth-mysql
- libapache2-mod-php4
- lipapr0

PHP:
-------

- php4-common
- php4-mysql
- php5
- php5-cgi
- php5-cli
- php5-common
- php5-imap
- php5-gd
- php5-imap
- php5-mysql
- php5-mysqli
- php5-odbc

phpmyadmin:
--------------------

(Ist ja nur ein Paket): - phpmyadmin

mysql:
----------

- libbd-mysql-perl
- libmysqlclient15off
- mysql-client-5.0
- mysql-common
- mysql-server (ist ein meta-package,soviel ich weiß)
- mysql-server-5.0

Das wars dann auch schon. Kann mir jemand sagen, was da fehlt bzw was da falsch läuft?

Gruß,
khymon

  • »Cyberspace19« ist männlich

Beiträge: 373

Registrierungsdatum: 13.09.2005

Architektur: 64-Bit PC

Andere Betriebssysteme: ArchLinux

  • Nachricht senden

2

12.07.2006, 09:47

Also:
Du musst deinem Apache noch sagen, dass er die PHP-Dateien auch entsprechend verarbeiten soll.

Suche in der apache2.conf nach folgenden Einträgen

Quellcode

1
2
#AddType application/x-httpd-php .php
#AddType application/x-httpd-php-source .phps

und entferne das Kommentarzeichen. Danach machst Du einen Reload des Servers

Quellcode

1
sudo /etc/init.d/apache2 restart
und nun sollte es funktionieren.

#Greetz,

Cyberspace19

IRC-Server: irc.freenode.net IRC-Channel: #linuxgaming.de
TeamSpeak Server: www.spielen-unter-linux.de

  • »khymon« ist der Autor dieses Themas

Beiträge: 76

Registrierungsdatum: 30.04.2006

  • Nachricht senden

3

12.07.2006, 10:58

Ich hab das gemacht und den Webserver mit "/etc/init.d/apache2 force-reload" neu gestartert.

Hat aber leider nichts gebracht: Ich bekomme immer noch die Dialogbox, die mich zum Auswählen des Tools, mit dem ich die php-Datei öffnen will, auffordert.

Ich kann mich aber auch erinnern, daß ich das letzte Mal das Problem dadurch gelöst habe, daß ich Paket(e) nachinstalliert habe. Irgendwas hat da gefehlt und ich hab mir dabei noch gedacht, daß das, was da fehlt, irgendwie eigenartig war und man so schnell nicht darauf kommt.

Hat noch jemand eine Idee?

Gruß,
khymon

  • »Cyberspace19« ist männlich

Beiträge: 373

Registrierungsdatum: 13.09.2005

Architektur: 64-Bit PC

Andere Betriebssysteme: ArchLinux

  • Nachricht senden

4

12.07.2006, 11:56

Was mir noch aufgefallen ist, Du hast apache-mod-php4 für den Webserver installiert aber ansonnst nur php5.

Versuch doch mal das php5 Modul für Apache zu installieren.

IRC-Server: irc.freenode.net IRC-Channel: #linuxgaming.de
TeamSpeak Server: www.spielen-unter-linux.de

  • »Sknulp« ist männlich

Beiträge: 715

Registrierungsdatum: 11.03.2006

  • Nachricht senden

5

12.07.2006, 12:06

Das Problem kann eigentlich nur damit zusammen hängen, wie Cyberspace19 es schon erwähnt hat, dass in der httpd.conf dem Apache mitgeteilt werden muss, welche Dateitypen wie behandelt werden.

Also zum Beispiel:

Quellcode

1
2
3
4
5
6
AddType application/x-tar .tgz
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3 
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps


Wenn Du also lediglich die von Cyberspace19 erwähnten Zeilen auskommentierst, wird es nicht zum Erfolg führen, weil Dein Dateityp (.phtml) dort nicht erwähnt wird.
Füge also die unten stehende Zeile hinzu.

Quellcode

1
AddType application/x-httpd-php .phtml

(Der Neustart des Apache ist wohl klar!)

Dann weiß der Apache, dass PHTML-Dateien vom PHP-Parser interpretiert werden sollen.
Software is like sex: it's better when it's free. (Linus Torvalds)

  • »khymon« ist der Autor dieses Themas

Beiträge: 76

Registrierungsdatum: 30.04.2006

  • Nachricht senden

6

12.07.2006, 15:31

Ich hab die Zeile hinzugefügt, Apache neu gestartet und angeschaut, was der Browser macht: Leider dasselbe wie immer: Eine Maske, die mir anbietet, mit welchem Tool ich die Datei öffnen will.

Es kann m.E. also keine Config-Zeile in apache2.conf sein. Wie gesagt: Ich hatte dasselbe Problem bereits einmal und ich habe es dadurch gelöst, daß ich etwas nachinstalliert habe. Leider weiß ich nicht mehr was.

Bitte schaut Euch doch nochmal die Liste der installierten Pakete durch!

Gruß,
khymon

  • »Sknulp« ist männlich

Beiträge: 715

Registrierungsdatum: 11.03.2006

  • Nachricht senden

7

12.07.2006, 16:26

Erstelle mal folgendes PHP-Skript:

Zitat


<?php
phpinfo();
?>


Und poste die Ausgabe des Skriptes. Dann wird klarer, wie Dein Apache bzw. PHP konfiguriert ist. Hänge die Ausgabe am besten als Datei an. Sonst wird Dein Posting zeimlich lang.

Am besten Du postes zusätzlich noch Deine http.conf (notfalls schwärze Infos, die uns nichts angehen).
Software is like sex: it's better when it's free. (Linus Torvalds)

  • »khymon« ist der Autor dieses Themas

Beiträge: 76

Registrierungsdatum: 30.04.2006

  • Nachricht senden

8

12.07.2006, 17:27

Here we go!

Zuerst mal der Output des kleinen php-Skripts:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
phpinfo()
PHP Version => 5.1.2

System => Linux jorn 2.6.15-19-386 #1 PREEMPT Mon Mar 20 16:46:02 UTC 2006 i686
Build Date => May 18 2006 05:03:22
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php5/cli/php.ini
PHP API => 20041225
PHP Extension => 20050922
Zend Extension => 220051025
Debug Build => no
Thread Safety => disabled
Zend Memory Manager => enabled
IPv6 Support => enabled
Registered PHP Streams => php, file, http, ftp, compress.bzip2, compress.zlib, https, ftps
Registered Stream Socket Transports => tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters => string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, convert.iconv.*, bzip2.*, zlib.*


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


 _______________________________________________________________________


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 => 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 => /usr/lib/php5/20051025 => /usr/lib/php5/20051025
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 => Off => On
ignore_repeated_errors => Off => Off
ignore_repeated_source => Off => Off
ignore_user_abort => Off => Off
implicit_flush => On => Off
include_path => .:/usr/share/php:/usr/share/pear => .:/usr/share/php:/usr/share/pear
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 => 0 => 30
max_input_time => 60 => 60
memory_limit => 8M => 8M
open_basedir => no value => no value
output_buffering => 0 => no value
output_handler => no value => no value
post_max_size => 8M => 8M
precision => 12 => 12
realpath_cache_size => 16K => 16K
realpath_cache_ttl => 120 => 120
register_argc_argv => On => On
register_globals => Off => Off
register_long_arrays => On => On
report_memleaks => On => On
report_zend_debug => Off => Off
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 => 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 => 2M => 2M
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
zend.ze1_compatibility_mode => Off => Off

bcmath

BCMath support => enabled

bz2

BZip2 Support => Enabled
Stream Wrapper support => compress.bz2://
Stream Filter support => bzip2.decompress, bzip2.compress
BZip2 Version => 1.0.3, 15-Feb-2005

calendar

Calendar support => enabled

ctype

ctype functions => enabled

date

date/time support => enabled
Timezone Database Version => 2005.18
Timezone Database => internal
Default timezone => Europe/Berlin

Directive => Local Value => Master Value
date.default_latitude => 31.7667 => 31.7667
date.default_longitude => 35.2333 => 35.2333
date.sunrise_zenith => 90.583333 => 90.583333
date.sunset_zenith => 90.583333 => 90.583333
date.timezone => no value => no value

dba

DBA support => enabled
Supported handlers => gdbm cdb cdb_make db4 inifile flatfile

dom

DOM/XML => enabled
DOM/XML API Version => 20031129
libxml Version => 2.6.24
HTML Support => enabled
XPath Support => enabled
XPointer Support => enabled
Schema Support => enabled
RelaxNG Support => enabled

exif

EXIF Support => enabled
EXIF Version => 1.4 $Id: exif.c,v 1.173.2.4 2006/01/01 12:50:06 sniper Exp $
Supported EXIF Version => 0220
Supported filetypes => JPEG,TIFF

ftp

FTP support => enabled

gettext

GetText Support => enabled

hash

hash support => enabled
Hashing Engines => md4 md5 sha1 sha256 sha384 sha512 ripemd128 ripemd160 whirlpool tiger128,3 tiger160,3 tiger192,3 tiger128,4 tiger160,4 tiger192,4 snefru gost adler32 crc32 crc32b haval128,3 haval160,3 haval192,3 haval224,3 haval256,3 haval128,4 haval160,4 haval192,4 haval224,4 haval256,4 haval128,5 haval160,5 haval192,5 haval224,5 haval256,5

iconv

iconv support => enabled
iconv implementation => glibc
iconv library version => 2.3.6

Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1

libxml

libXML support => active
libXML Version => 2.6.24
libXML streams => enabled

mbstring

Multibyte Support => enabled
Multibyte string engine => libmbfl
Multibyte (japanese) regex support => enabled
Multibyte regex (oniguruma) version => 3.7.1

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 => ISO-8859-1 => no value
mbstring.language => neutral => neutral
mbstring.strict_detection => Off => Off
mbstring.substitute_character => no value => no value

mime_magic

mime_magic support => enabled

Directive => Local Value => Master Value
mime_magic.debug => Off => Off
mime_magic.magicfile => /usr/share/file/magic.mime => /usr/share/file/magic.mime

mysql

MySQL Support => enabled
Active Persistent Links => 0
Active Links => 0
Client API version => 5.0.22
MYSQL_MODULE_TYPE => external
MYSQL_SOCKET => /var/run/mysqld/mysqld.sock
MYSQL_INCLUDE => -I/usr/include/mysql
MYSQL_LIBS => -L/usr/lib -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

mysqli

MysqlI Support => enabled
Client API version => 5.0.22
MYSQLI_SOCKET => /var/run/mysqld/mysqld.sock

Directive => Local Value => Master Value
mysqli.default_host => no value => no value
mysqli.default_port => 3306 => 3306
mysqli.default_pw => no value => no value
mysqli.default_socket => no value => no value
mysqli.default_user => no value => no value
mysqli.max_links => Unlimited => Unlimited
mysqli.reconnect => Off => Off

ncurses

ncurses support => enabled
ncurses library version => 5.5
color support => yes

openssl

OpenSSL support => enabled
OpenSSL Version => OpenSSL 0.9.8a 11 Oct 2005

pcntl

pcntl support => enabled

pcre

PCRE (Perl Compatible Regular Expressions) Support => enabled
PCRE Library Version => 6.4 05-Sep-2005

posix

Revision => $Revision: 1.70.2.3 $

Reflection

Reflection => enabled
Version => $Id: php_reflection.c,v 1.164.2.17 2006/01/01 12:50:12 sniper Exp $

session

Session Support => enabled
Registered save handlers => files user
Registered serializer handlers => php php_binary wddx

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 => 0 => 0
session.hash_bits_per_character => 4 => 4
session.hash_function => 0 => 0
session.name => PHPSESSID => PHPSESSID
session.referer_check => no value => no value
session.save_handler => files => files
session.save_path => /var/lib/php5 => /var/lib/php5
session.serialize_handler => php => php
session.use_cookies => On => On
session.use_only_cookies => Off => Off
session.use_trans_sid => 0 => 0

shmop

shmop support => enabled

SimpleXML

Simplexml support => enabled
Revision => $Revision: 1.151.2.10 $
Schema support => enabled

soap

Soap Client => enabled
Soap Server => enabled

Directive => Local Value => Master Value
soap.wsdl_cache_dir => /tmp => /tmp
soap.wsdl_cache_enabled => 1 => 1
soap.wsdl_cache_ttl => 86400 => 86400

sockets

Sockets Support => enabled

SPL

SPL support => enabled
Interfaces => Countable, OuterIterator, RecursiveIterator, SeekableIterator, SplObserver, SplSubject
Classes => AppendIterator, ArrayIterator, ArrayObject, BadFunctionCallException, BadMethodCallException, CachingIterator, DirectoryIterator, DomainException, EmptyIterator, FilterIterator, InfiniteIterator, InvalidArgumentException, IteratorIterator, LengthException, LimitIterator, LogicException, NoRewindIterator, OutOfBoundsException, OutOfRangeException, OverflowException, ParentIterator, RangeException, RecursiveArrayIterator, RecursiveCachingIterator, RecursiveDirectoryIterator, RecursiveFilterIterator, RecursiveIteratorIterator, RuntimeException, SimpleXMLIterator, SplFileInfo, SplFileObject, SplObjectStorage, SplTempFileObject, UnderflowException, UnexpectedValueException

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
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

sysvmsg

sysvmsg support => enabled
Revision => $Revision: 1.20.2.3 $

tokenizer

Tokenizer Support => enabled

wddx

WDDX Support => enabled
WDDX Session Serializer => enabled

xml

XML Support => active
XML Namespace Support => active
libxml2 Version => 2.6.24

xmlreader

XMLReader => enabled

xmlwriter

XMLWriter => enabled

zlib

ZLib Support => enabled
Stream Wrapper support => compress.zlib://
Stream Filter support => zlib.inflate, zlib.deflate
Compiled Version => 1.2.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
filepro
sysvsem
sysvshm

Environment

Variable => Value
KDE_MULTIHEAD => false
SSH_AGENT_PID => 5346
DM_CONTROL => /var/run/xdmctl
TERM => xterm
SHELL => /bin/bash
XDM_MANAGED => /var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic
GTK2_RC_FILES => /etc/gtk-2.0/gtkrc:/home/michael/.gtkrc-2.0:/home/michael/.kde/share/config/gtkrc-2.0
GTK_RC_FILES => /etc/gtk/gtkrc:/home/michael/.gtkrc:/home/michael/.kde/share/config/gtkrc
GS_LIB => /home/michael/.fonts
WINDOWID => 54525959
KDE_FULL_SESSION => true
USER => michael
LS_COLORS => no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.flac=01;35:*.mp3=01;35:*.mpc=01;35:*.ogg=01;35:*.wav=01;35:
LIBGL_DRIVERS_PATH => /usr/lib/dri
SSH_AUTH_SOCK => /tmp/ssh-CfHsht5300/agent.5300
SESSION_MANAGER => local/jorn:/tmp/.ICE-unix/5400
KONSOLE_DCOP => DCOPRef(konsole-5576,konsole)
DESKTOP_SESSION => kde
PATH => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/usr/local/kde/bin
KONSOLE_DCOP_SESSION => DCOPRef(konsole-5576,session-1)
PWD => /home/michael
LANG => de_DE.UTF-8
SHLVL => 2
HOME => /home/michael
LANGUAGE => de_DE:de:en_GB:en
XCURSOR_THEME => kubuntu
LOGNAME => michael
DBUS_SESSION_BUS_ADDRESS => unix:abstract=/tmp/dbus-FtF7gqiuxk,guid=5c0db544082161f92a84b8bed4868200
LESSOPEN => | /usr/bin/lesspipe %s
DISPLAY => :0.0
LESSCLOSE => /usr/bin/lesspipe %s %s
COLORTERM =>
_ => /usr/bin/php

PHP Variables

Variable => Value
_SERVER["KDE_MULTIHEAD"] => false
_SERVER["SSH_AGENT_PID"] => 5346
_SERVER["DM_CONTROL"] => /var/run/xdmctl
_SERVER["TERM"] => xterm
_SERVER["SHELL"] => /bin/bash
_SERVER["XDM_MANAGED"] => /var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic
_SERVER["GTK2_RC_FILES"] => /etc/gtk-2.0/gtkrc:/home/michael/.gtkrc-2.0:/home/michael/.kde/share/config/gtkrc-2.0
_SERVER["GTK_RC_FILES"] => /etc/gtk/gtkrc:/home/michael/.gtkrc:/home/michael/.kde/share/config/gtkrc
_SERVER["GS_LIB"] => /home/michael/.fonts
_SERVER["WINDOWID"] => 54525959
_SERVER["KDE_FULL_SESSION"] => true
_SERVER["USER"] => michael
_SERVER["LS_COLORS"] => no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.flac=01;35:*.mp3=01;35:*.mpc=01;35:*.ogg=01;35:*.wav=01;35:
_SERVER["LIBGL_DRIVERS_PATH"] => /usr/lib/dri
_SERVER["SSH_AUTH_SOCK"] => /tmp/ssh-CfHsht5300/agent.5300
_SERVER["SESSION_MANAGER"] => local/jorn:/tmp/.ICE-unix/5400
_SERVER["KONSOLE_DCOP"] => DCOPRef(konsole-5576,konsole)
_SERVER["DESKTOP_SESSION"] => kde
_SERVER["PATH"] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/usr/local/kde/bin
_SERVER["KONSOLE_DCOP_SESSION"] => DCOPRef(konsole-5576,session-1)
_SERVER["PWD"] => /home/michael
_SERVER["LANG"] => de_DE.UTF-8
_SERVER["SHLVL"] => 2
_SERVER["HOME"] => /home/michael
_SERVER["LANGUAGE"] => de_DE:de:en_GB:en
_SERVER["XCURSOR_THEME"] => kubuntu
_SERVER["LOGNAME"] => michael
_SERVER["DBUS_SESSION_BUS_ADDRESS"] => unix:abstract=/tmp/dbus-FtF7gqiuxk,guid=5c0db544082161f92a84b8bed4868200
_SERVER["LESSOPEN"] => | /usr/bin/lesspipe %s
_SERVER["DISPLAY"] => :0.0
_SERVER["LESSCLOSE"] => /usr/bin/lesspipe %s %s
_SERVER["COLORTERM"] =>
_SERVER["_"] => /usr/bin/php
_SERVER["PHP_SELF"] => ./phptest.php
_SERVER["SCRIPT_NAME"] => ./phptest.php
_SERVER["SCRIPT_FILENAME"] => ./phptest.php
_SERVER["PATH_TRANSLATED"] => ./phptest.php
_SERVER["DOCUMENT_ROOT"] =>
_SERVER["REQUEST_TIME"] => 1152717552
_SERVER["argv"] => Array
(
    [0] => ./phptest.php
)

_SERVER["argc"] => 1
_ENV["KDE_MULTIHEAD"] => false
_ENV["SSH_AGENT_PID"] => 5346
_ENV["DM_CONTROL"] => /var/run/xdmctl
_ENV["TERM"] => xterm
_ENV["SHELL"] => /bin/bash
_ENV["XDM_MANAGED"] => /var/run/xdmctl/xdmctl-:0,maysd,mayfn,sched,rsvd,method=classic
_ENV["GTK2_RC_FILES"] => /etc/gtk-2.0/gtkrc:/home/michael/.gtkrc-2.0:/home/michael/.kde/share/config/gtkrc-2.0
_ENV["GTK_RC_FILES"] => /etc/gtk/gtkrc:/home/michael/.gtkrc:/home/michael/.kde/share/config/gtkrc
_ENV["GS_LIB"] => /home/michael/.fonts
_ENV["WINDOWID"] => 54525959
_ENV["KDE_FULL_SESSION"] => true
_ENV["USER"] => michael
_ENV["LS_COLORS"] => no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.flac=01;35:*.mp3=01;35:*.mpc=01;35:*.ogg=01;35:*.wav=01;35:
_ENV["LIBGL_DRIVERS_PATH"] => /usr/lib/dri
_ENV["SSH_AUTH_SOCK"] => /tmp/ssh-CfHsht5300/agent.5300
_ENV["SESSION_MANAGER"] => local/jorn:/tmp/.ICE-unix/5400
_ENV["KONSOLE_DCOP"] => DCOPRef(konsole-5576,konsole)
_ENV["DESKTOP_SESSION"] => kde
_ENV["PATH"] => /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games:/usr/local/kde/bin
_ENV["KONSOLE_DCOP_SESSION"] => DCOPRef(konsole-5576,session-1)
_ENV["PWD"] => /home/michael
_ENV["LANG"] => de_DE.UTF-8
_ENV["SHLVL"] => 2
_ENV["HOME"] => /home/michael
_ENV["LANGUAGE"] => de_DE:de:en_GB:en
_ENV["XCURSOR_THEME"] => kubuntu
_ENV["LOGNAME"] => michael
_ENV["DBUS_SESSION_BUS_ADDRESS"] => unix:abstract=/tmp/dbus-FtF7gqiuxk,guid=5c0db544082161f92a84b8bed4868200
_ENV["LESSOPEN"] => | /usr/bin/lesspipe %s
_ENV["DISPLAY"] => :0.0
_ENV["LESSCLOSE"] => /usr/bin/lesspipe %s %s
_ENV["COLORTERM"] =>
_ENV["_"] => /usr/bin/php

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 [EMAIL]license@php.net[/EMAIL].


Und hier noch die apache2.conf (ist im Grund nur die Basis-config, weil das ganze ein lokaler Testserver ist, insofern ist da noch nix besonderes drin):

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
# Based upon the NCSA server configuration files originally by Rob McCool.
# Changed extensively for the Debian package by Daniel Stone <daniel@sfarc.net>
# and also by Thom May <thom@debian.org>.

# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE!  If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:[URL]http://www.apache.org/docs/mod/core.html#lockfile[/URL]>);
# you will save yourself a lot of trouble.

ServerRoot "/etc/apache2"

# The LockFile directive sets the path to the lockfile used when Apache
# is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or
# USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at
# its default value. The main reason for changing it is if the logs
# directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL
# DISK. The PID of the main server process is automatically appended to
# the filename. 

LockFile /var/lock/apache2/accept.lock

# PidFile: The file in which the server should record its process
# identification number when it starts.

PidFile /var/run/apache2.pid

# Timeout: The number of seconds before receives and sends time out.

Timeout 300

# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.

KeepAlive On

# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.

MaxKeepAliveRequests 100

# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.

KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
## 

# prefork MPM
# StartServers ......... number of server processes to start
# MinSpareServers ...... minimum number of server processes which are kept spare
# MaxSpareServers ...... maximum number of server processes which are kept spare
# MaxClients ........... maximum number of server processes allowed to start
# MaxRequestsPerChild .. maximum number of requests a server process serves
<IfModule prefork.c>
StartServers         5
MinSpareServers      5
MaxSpareServers     10
MaxClients          20
MaxRequestsPerChild  0
</IfModule>

# pthread MPM
# StartServers ......... initial  number of server processes to start
# MaxClients ........... maximum  number of server processes allowed to start
# MinSpareThreads ...... minimum  number of worker threads which are kept spare
# MaxSpareThreads ...... maximum  number of worker threads which are kept spare
# ThreadsPerChild ...... constant number of worker threads in each server process
# MaxRequestsPerChild .. maximum  number of requests a server process serves
<IfModule worker.c>
StartServers         2
MaxClients         150 
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>

# perchild MPM
# NumServers ........... constant number of server processes
# StartThreads ......... initial  number of worker threads in each server process
# MinSpareThreads ...... minimum  number of worker threads which are kept spare
# MaxSpareThreads ...... maximum  number of worker threads which are kept spare
# MaxThreadsPerChild ... maximum  number of worker threads in each server process
# MaxRequestsPerChild .. maximum  number of connections per server process (then it dies)
<IfModule perchild.c>
NumServers           5
StartThreads         5
MinSpareThreads      5
MaxSpareThreads     10
MaxThreadsPerChild  20
MaxRequestsPerChild  0
AcceptMutex fcntl
</IfModule>

User www-data
Group www-data

# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"" combined
LogFormat "%h %l %u %t "%r" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent


# Global error log.
ErrorLog /var/log/apache2/error.log

# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf

# Include all the user configurations:
Include /etc/apache2/httpd.conf

# Include ports listing
Include /etc/apache2/ports.conf

# Include generic snippets of statements
Include /etc/apache2/conf.d/[^.#]*

#Let's have some Icons, shall we?
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>

# Set up the default error docs.
#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 [URL]http://www.example.com/subscription_info.html[/URL]
#

#
# Putting this all together, we can Internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections.  We use 
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line;
#
#   Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /usr/local/apache2/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
    Alias /error/ "/usr/share/apache2/error/"

    <Directory "/usr/share/apache2/error">
        AllowOverride None
        Options IncludesNoExec
        AddOutputFilter Includes html
        AddHandler type-map var
        Order allow,deny
        Allow from all
        LanguagePriority en es de fr
        ForceLanguagePriority Prefer Fallback
    </Directory>

    ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
    ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
    ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
    ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
    ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
    ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
    ErrorDocument 410 /error/HTTP_GONE.html.var
    ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
    ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
    ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
    ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
    ErrorDocument 415 /error/HTTP_SERVICE_UNAVAILABLE.html.var
    ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
    ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
    ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
    ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
    ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>

DirectoryIndex index.html index.cgi index.pl index.php index.xhtml

# UserDir is now a module
#UserDir public_html
#UserDir disabled root

#<Directory /home/*/public_html>
#	AllowOverride FileInfo AuthConfig Limit
#	Options Indexes SymLinksIfOwnerMatch IncludesNoExec
#</Directory>

AccessFileName .htaccess

<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
</Files>

UseCanonicalName Off

TypesConfig /etc/mime.types
DefaultType text/plain

HostnameLookups Off

IndexOptions FancyIndexing VersionSort

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

# This really should be .jpg.

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^


# This is from Matty J's patch. Anyone want to make the icons?
#AddIcon /icons/dirsymlink.jpg ^^SYMDIR^^
#AddIcon /icons/symlink.jpg ^^SYMLINK^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

IndexIgnore .??* *~ *# HEADER* RCS CVS *,t

AddEncoding x-compress Z
AddEncoding x-gzip gz tgz

AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .et
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage it .it
AddLanguage ja .ja
AddLanguage pl .po
AddLanguage ko .ko
AddLanguage pt .pt
AddLanguage no .no
AddLanguage pt-br .pt-br
AddLanguage ltz .ltz
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage tw .tw
AddLanguage zh-tw .tw

LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw


#AddDefaultCharset	ISO-8859-1

AddCharset ISO-8859-1  .iso8859-1  .latin1
AddCharset ISO-8859-2  .iso8859-2  .latin2 .cen
AddCharset ISO-8859-3  .iso8859-3  .latin3
AddCharset ISO-8859-4  .iso8859-4  .latin4
AddCharset ISO-8859-5  .iso8859-5  .latin5 .cyr .iso-ru
AddCharset ISO-8859-6  .iso8859-6  .latin6 .arb
AddCharset ISO-8859-7  .iso8859-7  .latin7 .grk
AddCharset ISO-8859-8  .iso8859-8  .latin8 .heb	
AddCharset ISO-8859-9  .iso8859-9  .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5        .Big5       .big5
# For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251   .win-1251
AddCharset CP866       .cp866
AddCharset KOI8-r      .koi8-r .koi8-ru
AddCharset KOI8-ru     .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8       .utf8

AddCharset GB2312      .gb2312 .gb 
AddCharset utf-7       .utf7
AddCharset utf-8       .utf8
AddCharset big5	       .big5 .b5
AddCharset EUC-TW      .euc-tw	
AddCharset EUC-JP      .euc-jp
AddCharset EUC-KR      .euc-kr
AddCharset shift_jis   .sjis

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .phtml

AddType application/x-tar .tgz
# To use CGI scripts outside /cgi-bin/:
#
#AddHandler cgi-script .cgi

# To use server-parsed HTML files
#
<FilesMatch "\.shtml(\..+)?$">
    SetOutputFilter INCLUDES
</FilesMatch>

# If you wish to use server-parsed imagemap files, use
#
#AddHandler imap-file map

BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
#

BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully 
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully

# Allow server status reports, with the URL of [URL]http://servername/server-status[/URL]
# Change the ".your_domain.com" to match your domain to enable.
#
#<Location /server-status>
#    SetHandler server-status
#    Order deny,allow
#    Deny from all
#    Allow from .your_domain.com
#</Location>

# Allow remote server configuration reports, with the URL of
#  [URL]http://servername/server-info[/URL] (requires that mod_info.c be loaded).
# Change the ".your_domain.com" to match your domain to enable.
#
#<Location /server-info>
#    SetHandler server-info
#    Order deny,allow
#    Deny from all
#    Allow from .your_domain.com
#</Location>

# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/[^.#]*


Hoffentlich bringt das was!

Gruß,
khymon

  • »Sknulp« ist männlich

Beiträge: 715

Registrierungsdatum: 11.03.2006

  • Nachricht senden

9

12.07.2006, 18:57

Editier mal Dein letzes Posting und breche die wenigen extrem breiten Zeilen um. Manch ein User wird mit einer kleinen Auflösung sonst wahnsinnig. :]

Du hast geschrieben, dass Du phpMyAdmin wie folgt aufrufst: localhost/phpmyadmin

Ruf phpMyAdmin mal so auf: localhost/phpmyadmin/index.php

Welche phpMyAdmin-Version verwendest Du?

Kann in der Konfiguration keinen Fehler finden. Ausser, dass als DirectoryIndex kein .phtml angegeben ist. Das ist aber kein Fehler. Die Startseite von phpMyAdmin ist ohnehin eine index.php (Zuminest in der Version 2.6.2).
Software is like sex: it's better when it's free. (Linus Torvalds)

  • »basslord« ist männlich

Beiträge: 1 888

Registrierungsdatum: 21.10.2005

Derivat: Ubuntu

Architektur: 64-Bit PC

  • Nachricht senden

10

12.07.2006, 23:40

Zitat

Manch ein User wird mit einer kleinen Auflösung sonst wahnsinnig.

Yep, ich zum Beispiel, auch wenn ich eine große Auflösung habe.
Habe mir erlaubt, das mal zu ändern. Ist Code und dafür gibt es ja auch [CODE] ;)

Gruß
Rodge

  • »Cyberspace19« ist männlich

Beiträge: 373

Registrierungsdatum: 13.09.2005

Architektur: 64-Bit PC

Andere Betriebssysteme: ArchLinux

  • Nachricht senden

11

13.07.2006, 08:45

Kann es sein, dass phpMyAdmin nicht mit PHP5 kann?

Vielleicht versucht Du es mal mit PHP4 anstatt PHP5. Die Config an sich schaut aber soweit ok aus.

Das einzigste was mich noch wundert:
Paket "libapache2-mod-php4" installiert und es wird aber die Version 5.1.2 von PHP in Apache genommen ?(

IRC-Server: irc.freenode.net IRC-Channel: #linuxgaming.de
TeamSpeak Server: www.spielen-unter-linux.de

  • »Sknulp« ist männlich

Beiträge: 715

Registrierungsdatum: 11.03.2006

  • Nachricht senden

12

13.07.2006, 18:56

Doch, phpMyAdmin kann mit PHP5. Definitiv. Hab es selber auf meinem Webserver laufen.

Das libapache2-mod-php4 installiert ist, macht ja nichts. So könnte man bei Bedarf switchen. Entsprechende Konfigurationsdateien vorausgesetzt.

Was mich eher wundert, ist, dass phpMyAdmin eigentlich eine index.php besitzt. Ergo sind mir derlei Probleme nie begegnet.

Ansonsten (wenn es nicht gerade ein Produktiv-System ist) kann ich Dir auch xampp ans Herz legen. Apache, PHP, MySQL, phpMyAdmin alles in einem Paket. Da musst Du Dich nicht mit der Konfiguration rumärgern.
Das ganze gibts hier: http://ww.apachefriends.org

Für ein Produktiv-System wie gesagt nicht immer zu empfehlen!
Software is like sex: it's better when it's free. (Linus Torvalds)

Beiträge: 6 680

Registrierungsdatum: 04.06.2005

Derivat: Kein Ubuntu-Derivat

Version: gar kein Ubuntu

Architektur: 64-Bit PC

Desktop: anderer Desktop

Andere Betriebssysteme: Arch Linux

  • Nachricht senden

13

14.07.2006, 07:43

Hallo,

kann es vielleicht sein, dass die erste Seite die du aufrufst eine php Seite ist und der Apache aber als mögliche ausführbare Dateiendungen dies nicht in die config eingestellt ist.

Dann führt er vielleicht nur *.htm oder *.html *.phtml Seiten aus und keine *.php Seiten.

m.f.g.
Carl-Heinz
###--- Gott sei Dank, ich bin weg vom Fenster ---###


Hilfen:
- Mir eine Nachricht senden - - Meine Homepage - - Linux-Beginnerforum -

  • »khymon« ist der Autor dieses Themas

Beiträge: 76

Registrierungsdatum: 30.04.2006

  • Nachricht senden

14

14.07.2006, 09:46

Also jetzt bin ich ein wenig verwirrt.

Fakt ist, daß es bei phpmyadmin eine Datei namens index.php gibt, und das ist ja eindeutig eine php-Datei.
Ich dachte immer, eine phtml-Datei sei ein html-File mit eingebetteten php-code. Ist das falsch?

Und selbst wenn: Wie kommt mein browser (oder hier vielmehr mein apache2) dazu, eine php-Datei als phtml zu deklarieren? Denn ansonsten müsste ich ja eine Fehlermeldung bekommen, in der irgendwas mit php und nicht mit phtml steht?!?

Hab ich jetzt irgendwie den Überblick verloren und seh da was ganz falsch?

Gruß,
khymon

  • »webbutterfly« ist weiblich

Beiträge: 472

Registrierungsdatum: 21.07.2005

Derivat: Ubuntu

Architektur: 32-Bit PC

  • Nachricht senden

15

14.07.2006, 10:35

Hi

...hmmm also bei mir läuft myphadmin ohne besondere Einstellungen bzw. Probleme.
So wie ich das sehe macht nicht Apache die Probleme sondern myphpadmin und der sollte auch lt. deiner
info.php auch funktionieren.

Hol dir doch mal einen Neuen aus dem Netz...
http://www.phpmyadmin.net/home_page/index.php
und installiere mal den ganzen neu...

Marion

Ubuntu Österreich



  • »Cyberspace19« ist männlich

Beiträge: 373

Registrierungsdatum: 13.09.2005

Architektur: 64-Bit PC

Andere Betriebssysteme: ArchLinux

  • Nachricht senden

16

14.07.2006, 11:07

Also ich habe das ganze bei mir nach dem Thread Apache / PHP / MySQL installieren gemacht und es funzt alles wunderbar! :D

Ich hatte damit noch nie Probleme.

Vielleicht kannst Du ja das ganze apache/Mysql/php/myphpadmin deinstallieren und nochmals nach dem How-To neu installieren. :rolleyes:

Sollte eigentlich tun...

#Greetz,

Cyberspace19

IRC-Server: irc.freenode.net IRC-Channel: #linuxgaming.de
TeamSpeak Server: www.spielen-unter-linux.de

Beiträge: 6 680

Registrierungsdatum: 04.06.2005

Derivat: Kein Ubuntu-Derivat

Version: gar kein Ubuntu

Architektur: 64-Bit PC

Desktop: anderer Desktop

Andere Betriebssysteme: Arch Linux

  • Nachricht senden

17

15.07.2006, 09:21

Hallo,

sorry, hatte ich nicht gelesen, nur wo soll der Unterschied sein zwischen der einen und der anderen php Datei.

Wenn eine geht und eine andere nicht, dann kann es entweder an der Datei selbst, dem Inhalt oder an den Zugriffsrechten liegen.

Was anderes fällt mir jetzt so aus der Ferne auch nicht ein.

m.f.g.
Carl-Heinz
###--- Gott sei Dank, ich bin weg vom Fenster ---###


Hilfen:
- Mir eine Nachricht senden - - Meine Homepage - - Linux-Beginnerforum -

  • »Sknulp« ist männlich

Beiträge: 715

Registrierungsdatum: 11.03.2006

  • Nachricht senden

18

15.07.2006, 10:13

Zitat

Wenn eine geht und eine andere nicht, dann kann es entweder an der Datei selbst, dem Inhalt oder an den Zugriffsrechten liegen.


Läge das Problem an den Zugriffsrechten, würde die Datei ja nicht zum Download angeboten werden.
Software is like sex: it's better when it's free. (Linus Torvalds)

  • »Cyberspace19« ist männlich

Beiträge: 373

Registrierungsdatum: 13.09.2005

Architektur: 64-Bit PC

Andere Betriebssysteme: ArchLinux

  • Nachricht senden

19

15.07.2006, 19:38

Jap. Sehe ich genau so. Zugriffsrechte scheiden aus.

IRC-Server: irc.freenode.net IRC-Channel: #linuxgaming.de
TeamSpeak Server: www.spielen-unter-linux.de

  • »khymon« ist der Autor dieses Themas

Beiträge: 76

Registrierungsdatum: 30.04.2006

  • Nachricht senden

20

16.07.2006, 10:39

Ich weiß jetzt momentan auch nicht weiter. Allerdings komme ich erst morgen wieder dazu, da richtig rumzuspielen. Ich werde dann das ganze mal deinstallieren und nach der Anleitung neu auf die Platte bannen.

Eigenartigerweise funktioniert es auf zwei anderen Systemen - und zwar allesamt von derselben Kubuntu-CD mit genau denselben repositories in der sources.list. Irgendwas ist da oberfaul!

Gruß,
khymon