php dateien werden zum Download angeboten?! :(

Alles, was den Apache betrifft, kann hier besprochen werden.

php dateien werden zum Download angeboten?! :(

Postby _bobby » 04. March 2006 21:43

Hallo Forum!

Ich habe einen Root Server von netdirekt.

Mein Problem ist folgendes, sobald ich die IP aufrufe werden mir alle php dateien zum Download angeboten. Diese sind NICHT geparst....

Woran kann das liegen?

Ein paar Einstellungen:

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


PHP4.conf
<VirtualHost 217.20.122.76>
ServerName 217.20.122.76
ServerAlias tradingstore
DocumentRoot /var/www/tradingstore/
</VirtualHost>
DirectoryIndex index.html index.htm index.php

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


Falls ihr weitere Informationen braucht sagt mir bescheid ...

Hatte von euch shconmal ähnliche Probleme?

Vielen DANK!! :wink:
MfG,
bobby
_bobby
 
Posts: 3
Joined: 04. March 2006 21:27

Postby Knight1 » 05. March 2006 09:29

Ändere mal dieses hier:
<VirtualHost 217.20.122.76>
ServerName 217.20.122.76
ServerAlias tradingstore
DocumentRoot /var/www/tradingstore/
</VirtualHost>
DirectoryIndex index.html index.htm index.php

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


in folgendes:
<VirtualHost 217.20.122.76>
ServerName 217.20.122.76
ServerAlias tradingstore
DocumentRoot /var/www/tradingstore/
DirectoryIndex index.html index.htm index.php

AddType application/x-httpd-php .php .php3 .php4 .phtml
AddType application/x-httpd-php-source .phps
</VirtualHost>



Vielleicht wars das ja schon.


Kai aka Knight1
PS: Ist denn PHP auch installiert und der Apache mit PHP compeliert?
Image
User avatar
Knight1
 
Posts: 310
Joined: 18. October 2003 10:03
Location: Trier
Operating System: Windows 7 Ultimate x64

Postby _bobby » 05. March 2006 11:09

Hallo
ne das hat leider auch nicht geholfen.

PS: Ist denn PHP auch installiert



Das sagt mir:

aptitude search php |grep ^i
i libapache-mod-php4 - server-side, HTML-embedded scripting langu
i libapache2-mod-php4 - server-side, HTML-embedded scripting langu
i php4 - server-side, HTML-embedded scripting langu
i php4-cgi - server-side, HTML-embedded scripting langu
i A php4-cli - command-line interpreter for the php4 scri
i A php4-common - Common files for packages built from the p
i php4-curl - CURL module for php4
i php4-domxml - XMLv2 module for php4
i php4-gd - GD module for php4
i php4-idn - PHP api for the IDNA library
i php4-imagick - ImageMagick module for php4
i php4-imap - IMAP module for php4
i php4-mcrypt - MCrypt module for php4
i php4-mysql - MySQL module for php4
i php4-pear - PEAR - PHP Extension and Application Repos
i php4-xslt - XSLT module for php4


Also so wie ich das sehe ist php installiert ...

und der Apache mit PHP compeliert?


Wie meinst du das?

BTW. Das OS ist Debian Sarge ;-)

Gruss aus Essen
MfG,
bobby
_bobby
 
Posts: 3
Joined: 04. March 2006 21:27

Postby Wiedmann » 05. March 2006 11:24

i libapache-mod-php4 - server-side, HTML-embedded scripting langu
i libapache2-mod-php4 - server-side, HTML-embedded scripting langu

Wird denn eines dieser Module (je nach Apache-Version) geladen in der Conf?
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby _bobby » 05. March 2006 11:30

Öhem .. gute Frage:

also in meiner php4.conf steht das:

<VirtualHost 217.20.122.76>
ServerName 217.20.122.76
ServerAlias tradingstore
DocumentRoot /var/www/tradingstore/
DirectoryIndex index.html index.htm index.php

AddType application/x-httpd-php .php .php3 .php4 .phtml
AddType application/x-httpd-php-source .phps
</VirtualHost>


in der Httpd.conf hab ich mal gesucht .. da steht aber gar nix über php4?


Bzw. WELCHE conf meinst du?


Grüsse,
_bobby
MfG,
bobby
_bobby
 
Posts: 3
Joined: 04. March 2006 21:27

Postby Wiedmann » 05. March 2006 11:43

also in meiner php4.conf steht das:

Das wussten wir ja schon. (s.o.)

Das Apache-Manual würde dir sogar verraten, wie die Directive sich nennt zum Module laden:
http://httpd.apache.org/docs/2.2/mod/mo ... loadmodule

Steht aber logischerweise auch im PHP-Manual wie man PHP installiert:
http://de.php.net/manual/en/install.uni ... php#AEN503


Bzw. WELCHE conf meinst du?

Das muss halt in der httpd.conf stehen, oder eine andere die in httpd.conf includiert wird.

BTW. Das OS ist Debian Sarge

Lustigerweise gibts zu Debian sogar ein eigenes Kapitel im PHP-Manual, wo u.a. deine Frage beantwortet wird...:
http://de.php.net/manual/en/install.uni ... debian.faq
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to Apache

Who is online

Users browsing this forum: No registered users and 16 guests