Ankündigung

Einklappen
Keine Ankündigung bisher.

The Perfect Setup - Debian Sarge (3.1) ???? php läuft nicht.

Einklappen

Neue Werbung 2019

Einklappen
X
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

  • The Perfect Setup - Debian Sarge (3.1) ???? php läuft nicht.

    Hallo,
    ich war auf der Seite

    http://www.falkotimme.com/howtos/per...arge/index.php

    und habe Debian, Apache 2, Mysql und PHP installiert aber jetzt habe ich gemerkt das PHP nicht funktioniert könnt ihr mir sagen warum???
    Habe ich was falsch gemacht oder die Anleitung enthält fehler???
    Ob eine Sache gelingt, erfährst du nicht, wenn du darüber nachdenkst, sondern wenn du es ausprobierst.

  • #2
    und was meinst du jetzt mit "funktioniert nicht" ?

    Kommentar


    • #3
      Also ich habe eine php datei erstellt

      PHP-Code:
      <?php
      echo "hallo";
      ?>
      und der ganze code wird angezeigt, statt hallo kommt
      Code:
      <?php
      echo "hallo";
      ?>
      [/php]
      Ob eine Sache gelingt, erfährst du nicht, wenn du darüber nachdenkst, sondern wenn du es ausprobierst.

      Kommentar


      • #4
        Code:
        #application/x-httpd-php                                phtml pht php
        #application/x-httpd-php-source                 phps
        #application/x-httpd-php3                       php3
        #application/x-httpd-php3-preprocessed          php3p
        #application/x-httpd-php4                       php4
        hast du das Zeug in der /etc/mime.types auch wirklich nicht mehr komentiert?
        :arrow: [URL="http://tiny.cc/0xlvv"]Wie man Fragen richtig stellt[/URL]

        Kommentar


        • #5
          ja das habe ich so gemacht wie da stand.
          Falsch oder richtig?
          Ob eine Sache gelingt, erfährst du nicht, wenn du darüber nachdenkst, sondern wenn du es ausprobierst.

          Kommentar


          • #6
            am schluss muss es so aussehen:

            Code:
            application/x-httpd-php                                phtml pht php
            application/x-httpd-php-source                 phps
            application/x-httpd-php3                       php3
            application/x-httpd-php3-preprocessed          php3p
            application/x-httpd-php4                       php4
            ohne die #

            und in der /etc/apache2/mods-enabled/php4.conf musst du auch die # an der richtigen Stelle entfernen

            so das aus:
            Code:
            <IfModule mod_php4.c>
            #  AddType application/x-httpd-php .php .phtml .php3
            #  AddType application/x-httpd-php-source .phps
            </IfModule>
            das hier wird:
            Code:
            <IfModule mod_php4.c>
              AddType application/x-httpd-php .php .phtml .php3
              AddType application/x-httpd-php-source .phps
            </IfModule>
            danach speichern, und nicht vergessen den apache neu zu starten
            :arrow: [URL="http://tiny.cc/0xlvv"]Wie man Fragen richtig stellt[/URL]

            Kommentar


            • #7
              Ich habe alle
              #
              #
              #
              #

              raus genomen und apache2 neu gestartet.
              Läuft immer noch nicht?
              Ob eine Sache gelingt, erfährst du nicht, wenn du darüber nachdenkst, sondern wenn du es ausprobierst.

              Kommentar


              • #8
                hast du das File auch mit .php abgespeichert?

                hast du den Post nochmal angeschaut? hatte ihn editiert..
                :arrow: [URL="http://tiny.cc/0xlvv"]Wie man Fragen richtig stellt[/URL]

                Kommentar


                • #9
                  bei mir ist die php4.conf in
                  /etc/apache2/mods-available#
                  und ich habe alle # entfernt wie du gesagt hast.
                  Ne Leider geht es immer noch nicht soll ich noch mal installieren oder ...?

                  Muss ich in apache2.conf
                  Code:
                  #AddType application/x-httpd-php .php
                  #AddType application/x-httpd-php-source .phps
                  ändern in

                  Code:
                  AddType application/x-httpd-php .php
                  AddType application/x-httpd-php-source .phps
                  Habe jetzt neu installiert. Jetzt wird die php datei runtergeladen?
                  Ob eine Sache gelingt, erfährst du nicht, wenn du darüber nachdenkst, sondern wenn du es ausprobierst.

                  Kommentar

                  Lädt...
                  X