View previous topic :: View next topic |
Author |
Message |
dude75 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Jan 2003 Posts: 14
|
Posted: Tue Feb 04, 2003 1:05 pm Post subject: PHP-Scripte werden nicht ausgeführt |
|
|
Hallo
Um mySQL zu verwalten, habe ich mir phpmyadmin installiert. Dazu habe ich emerge phpmyadmin ausgeführt. Dabei wurden neben Apache auch einige andere Programme gemerged.
Wenn ich jetzt jedoch die Startseite von phpmyadmin aufrufe, erhalte ich denn Quelltext von phpmyadmin. Was muss ich noch einstellen, damit PHP-Scripte ausgeführt werden.
Bastian |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
de4d Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 12 Sep 2002 Posts: 181 Location: fr. i. br. (ger)
|
Posted: Tue Feb 04, 2003 1:10 pm Post subject: |
|
|
schaumal in httpd.conf
da muss irgendwie sowas wie
Code: |
AddType application/x-httpd-php .php
|
stehen _________________ void main(){fork();main();} |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
chaos2 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Maggie.jpg)
Joined: 04 Feb 2003 Posts: 5 Location: Germany Hamburg
|
Posted: Tue Feb 04, 2003 1:20 pm Post subject: |
|
|
apache mit -D PHP starten |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dude75 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Jan 2003 Posts: 14
|
Posted: Tue Feb 04, 2003 1:22 pm Post subject: |
|
|
Hm
ich denke mal das die httpd.conf bei Gentoo apache.conf heißt oder?
Was ich nun unter /etc/apache gefunden habe ist ein weiterer Folder (addon-modules) in dem sich eine mod_php.conf befindet mit dem von Dir beschriebenen Inhalt.
Wird diese Datei nicht automatisch in der apache.conf eingebunden, oder was muss ich unternehmen, damit diese mod_php.conf ausgeführt wird?
Bastian |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
dude75 n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 09 Jan 2003 Posts: 14
|
Posted: Tue Feb 04, 2003 1:26 pm Post subject: |
|
|
Hm -D PHP steht in der /etc/conf.d/apache drin |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
A.Stranger Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/StarCraft/starcraft_protoss_arbiter.gif)
Joined: 31 Oct 2002 Posts: 148 Location: Dortmund
|
Posted: Tue Feb 04, 2003 3:44 pm Post subject: |
|
|
Hi,
Code: |
* To have Apache run php programs, please do the following:
* 1. Execute the command:
* "ebuild /var/db/pkg/dev-php/mod_php-4.3.0-r2/mod_php-4.3.0-r2.ebuild config"
* 2. Edit /etc/conf.d/apache and add "-D PHP4"
*
* That will include the php mime types in your configuration
* automagically and setup Apache to load php when it starts.
|
_________________ Bis denn...
A.Stranger
_________________________
System: findet Ihr hier |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|