PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : PHP (IMP) wird mal ausgeführt, mal nicht!



tim99
02.04.05, 11:25
Hallo,

ich habe Schwierigkeiten mit IMP:

Wenn ich imp mit http://localhost/horde2/index.php aufrufe, wird die Seite wie gewünscht angezeigt.

Wenn ich imp mit http://localhost/horde2 oder mit http://meinserver.de/horde2/index.php aufrufe, lädt der Browser die Quelltextdatei herunter.

Wenn ich mir ein kleines Php-Testskript schreibe, dann kann ich es sowohl unter meinserver.de als auch unter lovalhost aufrufen.

Ich hab apache2, php4 und horde2/imp unter debian installiert und die /etc/apache2/sites-enabled/000-default wie folgt abgeändert:


NameVirtualHost *

<VirtualHost *>
ServerAdmin webmaster@localhost

DocumentRoot /var/www/
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
#RedirectMatch ^/$ /apache2-default/
</Directory>

ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>

ErrorLog /var/log/apache2/error.log

# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel debug

CustomLog /var/log/apache2/access.log combined
ServerSignature On

Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>

Alias /horde2 /usr/share/horde2
<Directory /usr/share/horde2>
Options FollowSymLinks
AllowOverride Limit
Order allow,deny
Allow from all
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_value session.save_path "/var/lib/horde2"
php_value include_path .:/etc/horde2:/usr/share/php:/usr/share/pear:/usr/share/horde2
php_flag session.use_trans_sid Off
</Directory>

</VirtualHost>

tim99
02.04.05, 17:44
Hallo,

sorry, hab den Fehler gefunden... Na besser gesagt: jetzt ist's kein Fehler mehr. Es geht!

Vielen Dank

Tim

Tomek
02.04.05, 17:57
Was war denn der Fehler? Dann könnten vielleicht auch andere von diesem Thread profitieren.