Problem mit php

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

  • Problem mit php

    Hab einen Server von Strato. Dort habe ich das Modul "suPHP" entfernt und danach php per Yast wieder installiert.

    Server: Suse 9.3
    Apache 2.0.53
    php 4

    Folgendes tritt auf:
    nach einigen Stunden in Betrieb, liefert der Server vereinzelt nicht mehr die PHP Files aus sondern bietet die als Download an.

    hatte jemand so ein ähnliches Problem
    Mafia Browsergame - Scripts

    Wer glaubt, ein Christ zu sein, weil er die Kirche besucht, irrt sich. Man wird ja auch kein Auto, wenn man in eine Garage geht.
    Albert Schweitzer (14.01.1875 - 04.08.1965)

  • #2
    den Apache schon neu gestartet? Ansonstens zeige mal dein httpd.conf

    Kommentar


    • #3
      ja hab auch schon beides neu installiert.
      Hab mir selbst die Configs angeschaut und nichts gefunden

      ### Global Environment ######################################################
      #
      # The directives in this section affect the overall operation of Apache,
      # such as the number of concurrent requests.

      # run under this user/group id
      Include /etc/apache2/uid.conf

      # - how many server processes to start (server pool regulation)
      # - usage of KeepAlive
      Include /etc/apache2/server-tuning.conf

      # ErrorLog: The location of the error log file.
      # If you do not specify an ErrorLog directive within a <VirtualHost>
      # container, error messages relating to that virtual host will be
      # logged here. If you *do* define an error logfile for a <VirtualHost>
      # container, that host's errors will be logged there and not here.
      ErrorLog /var/log/apache2/error_log

      # generated from APACHE_MODULES in /etc/sysconfig/apache2
      Include /etc/apache2/sysconfig.d/loadmodule.conf

      # IP addresses / ports to listen on
      Include /etc/apache2/listen.conf

      # predefined logging formats
      Include /etc/apache2/mod_log_config.conf

      # generated from global settings in /etc/sysconfig/apache2
      Include /etc/apache2/sysconfig.d/global.conf

      # optional mod_status, mod_info
      #Include /etc/apache2/mod_status.conf
      #Include /etc/apache2/mod_info.conf

      # optional cookie-based user tracking
      # read the documentation before using it!!
      Include /etc/apache2/mod_usertrack.conf

      # configuration of server-generated directory listings
      Include /etc/apache2/mod_autoindex-defaults.conf

      # associate MIME types with filename extensions
      DefaultType text/plain
      TypesConfig /etc/apache2/mime.types

      Include /etc/apache2/mod_mime-defaults.conf

      # set up (customizable) error responses
      Include /etc/apache2/errors.conf

      # global (server-wide) SSL configuration, that is not specific to
      # any virtual host
      Include /etc/apache2/ssl-global.conf

      # forbid access to the entire filesystem by default
      #<Directory />
      #Options None
      #AllowOverride None
      #Order deny,allow
      #Deny from all
      #</Directory>
      <Directory />
      Options -Indexes +FollowSymLinks +Includes
      AllowOverride All
      </Directory>

      # use .htaccess files for overriding,
      AccessFileName .htaccess
      # and never show them
      <Files ~ "^\.ht">
      Order allow,deny
      Deny from all
      </Files>

      # List of resources to look for when the client requests a directory
      DirectoryIndex index.html index.html.var

      ### 'Main' server configuration #############################################
      #
      # The directives in this section set up the values used by the 'main'
      # server, which responds to any requests that aren't handled by a
      # <VirtualHost> definition. These values also provide defaults for
      # any <VirtualHost> containers you may define later in the file.
      #
      # All of these directives may appear inside <VirtualHost> containers,
      # in which case these default settings will be overridden for the
      # virtual host being defined.
      #
      Include /etc/apache2/default-server.conf





      # Another way to include your own files
      #
      # The file below is generated from /etc/sysconfig/apache2,
      # include arbitrary files as named in APACHE_CONF_INCLUDE_FILES and
      # APACHE_CONF_INCLUDE_DIRS
      Include /etc/apache2/sysconfig.d/include.conf


      ### Virtual server configuration ############################################
      #
      # VirtualHost: If you want to maintain multiple domains/hostnames on your
      # machine you can setup VirtualHost containers for them. Most configurations
      # use only name-based virtual hosts so the server doesn't need to worry about
      # IP addresses. This is indicated by the asterisks in the directives below.
      #
      # Please see the documentation at
      # <URL:http://httpd.apache.org/docs-2.0/vhosts/>
      # for further details before you try to setup virtual hosts.
      #
      # You may use the command line option '-S' to verify your virtual host
      # configuration.
      #
      Include /etc/apache2/vhosts.d/*.conf




      Mafia Browsergame - Scripts

      Wer glaubt, ein Christ zu sein, weil er die Kirche besucht, irrt sich. Man wird ja auch kein Auto, wenn man in eine Garage geht.
      Albert Schweitzer (14.01.1875 - 04.08.1965)

      Kommentar


      • #4
        hm ... was sagt Logfile? PHP läuft als was? Modul oder CGI? Poste mal diese Dateien:

        /etc/apache2/sysconfig.d/loadmodule.conf
        /etc/apache2/sysconfig.d/global.conf
        Include /etc/apache2/mod_autoindex-defaults.conf

        Kommentar


        • #5
          Aktuell als modul

          loadmodule.conf
          Code:
          LoadModule access_module                  /usr/lib/apache2-prefork/mod_access.so
          LoadModule actions_module                 /usr/lib/apache2-prefork/mod_actions.so
          LoadModule alias_module                   /usr/lib/apache2-prefork/mod_alias.so
          LoadModule auth_module                    /usr/lib/apache2-prefork/mod_auth.so
          LoadModule auth_dbm_module                /usr/lib/apache2-prefork/mod_auth_dbm.so
          LoadModule autoindex_module               /usr/lib/apache2-prefork/mod_autoindex.so
          LoadModule cgi_module                     /usr/lib/apache2-prefork/mod_cgi.so
          LoadModule dir_module                     /usr/lib/apache2-prefork/mod_dir.so
          LoadModule env_module                     /usr/lib/apache2-prefork/mod_env.so
          LoadModule expires_module                 /usr/lib/apache2-prefork/mod_expires.so
          LoadModule include_module                 /usr/lib/apache2-prefork/mod_include.so
          LoadModule log_config_module              /usr/lib/apache2-prefork/mod_log_config.so
          LoadModule mime_module                    /usr/lib/apache2-prefork/mod_mime.so
          LoadModule negotiation_module             /usr/lib/apache2-prefork/mod_negotiation.so
          LoadModule setenvif_module                /usr/lib/apache2-prefork/mod_setenvif.so
          LoadModule ssl_module                     /usr/lib/apache2-prefork/mod_ssl.so
          LoadModule suexec_module                  /usr/lib/apache2-prefork/mod_suexec.so
          LoadModule php4_module                    /usr/lib/apache2-prefork/libphp4.so
          LoadModule rewrite_module                 /usr/lib/apache2-prefork/mod_rewrite.so
          #
          global.conf
          Code:
          Timeout 300
          ServerSignature on
          UseCanonicalName off
          ServerTokens OS
          LogLevel warn
          CustomLog /var/log/apache2/access_log combined
          mod_autoindex-defaults.conf
          Code:
          #
          # Directives controlling the display of server-generated directory listings.
          #
          # see [url]http://httpd.apache.org/docs-2.0/mod/mod_autoindex.html[/url]
          #
          
          <IfModule mod_autoindex.c>
          
          	IndexOptions FancyIndexing VersionSort NameWidth=*
          
          	# Add Last-Modified and ETag values for the listed directory in the HTTP header, 
          	# based on files' modification dates
          	#IndexOptions +TrackModified
          
          	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/*
          
          	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^^
          
          	DefaultIcon /icons/unknown.gif
          
          	ReadmeName README.html
          	HeaderName HEADER.html
          
          	IndexIgnore .?* *~ *# HEADER*   RCS CVS *,v *,t
          
          </IfModule>
          Mafia Browsergame - Scripts

          Wer glaubt, ein Christ zu sein, weil er die Kirche besucht, irrt sich. Man wird ja auch kein Auto, wenn man in eine Garage geht.
          Albert Schweitzer (14.01.1875 - 04.08.1965)

          Kommentar


          • #6
            ich seh schon, so kann's nicht weiter gehen

            Sag mal, hast du auch in irgendeiner config-Datei festgelegt, dass bestimmte Extension von PHP geparst werden soll? Wie sieht die Zeile aus? Und hast du das Logfile schon untersucht?

            Kommentar


            • #7
              Code:
              <IfModule sapi_apache2.c>
                      AddType application/x-httpd-php .php
                      AddType application/x-httpd-php .php3
                      AddType application/x-httpd-php .php4
                      AddType application/x-httpd-php-source .phps
                      DirectoryIndex index.php
                      DirectoryIndex index.php3
                      DirectoryIndex index.php4
              </IfModule>
              logfiles steht nichts auffälliges drin.
              Mafia Browsergame - Scripts

              Wer glaubt, ein Christ zu sein, weil er die Kirche besucht, irrt sich. Man wird ja auch kein Auto, wenn man in eine Garage geht.
              Albert Schweitzer (14.01.1875 - 04.08.1965)

              Kommentar


              • #8
                und systemlog sagt auch nichts?

                Kommentar


                • #9
                  richtig.
                  Mafia Browsergame - Scripts

                  Wer glaubt, ein Christ zu sein, weil er die Kirche besucht, irrt sich. Man wird ja auch kein Auto, wenn man in eine Garage geht.
                  Albert Schweitzer (14.01.1875 - 04.08.1965)

                  Kommentar

                  Lädt...
                  X