Thema geschlossen
Ergebnis 1 bis 3 von 3

Thema: Update php4.2 auf php5 -httpd.conf-

  1. #1
    Newbie
    Registriert seit
    23.11.2006
    Beiträge
    2

    Standard Update php4.2 auf php5 -httpd.conf-

    Hallo,

    ich hab ein Problem mit dem Updaten auf php5. Zuerst einmal möchte ich aber mein System posten damit da keine Missverständnisse entstehen.

    Server:
    OS:Suse Professional 9.3
    Webserver: Apache2
    alte php: 4.2
    neue php: 5
    Confixx 2003

    Ich wollte mir das Updaten eigentlich leicht machen und hab unter YAST php5 und die dazugehörigen Extensions und natürlich das apache2-php5 Modul. Um einen Konflikt zu verursachen habe ich das apche2-php4 Modul deinstalliert.

    So das Installation verlief so weit so gut.
    Jetzt wollte ich /etc/init.d/apache2 restart machen jedoch bekomme ich folgende Fehlermeldung:
    /etc/init.d/apache2 restart
    Syntax error on line 231 of /etc/apache2/httpd.conf:
    Invalid command 'php_admin_value', perhaps mis-spelled or defined by a module not included in the server configuration
    Meine httpd.conf sieht folgender Maßen aus:
    ### 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
    TypesConfig /etc/apache2/mime.types
    DefaultType text/plain
    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>

    # 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


    # Note: instead of adding your own configuration here, consider
    # adding it in your own file (/etc/apache2/httpd.conf.local)
    # putting its name into APACHE_CONF_INCLUDE_FILES in
    # /etc/sysconfig/apache2 -- this will make system updates
    # easier
    ## CONFIXX
    <Directory "/srv/www/confixx/html">
    AllowOverride all
    </Directory>
    NameVirtualHost xxx.xxx.xxx.xxx:80
    <VirtualHost xxx.xxx.xxx.xxx:80>
    ServerName xxxxxxxx.xxxxxxxxxx.xx
    #User confixx
    #Group users
    DocumentRoot /srv/www/confixx/html
    Alias /phpMyAdmin /srv/www/htdocs/phpMyAdmin
    php_admin_value safe_mode Off
    php_admin_value safe_mode_exec_dir /srv/www/confixx/bin
    php_admin_value upload_tmp_dir /srv/www/confixx/tmp
    php_admin_value open_basedir none
    ScriptAlias /cgi-bin/ /srv/www/confixx/html/cgi-bin/
    CustomLog /var/log/apache2/xxxxxxxxx_access.log "%h %l %u %t \"%r\" %s %b \"%{Referer}i\" \"%{User-agent}i\""
    ErrorLog /var/log/apache2/xxxxxxxxxx_error.log
    </VirtualHost>
    Include /etc/apache2/confixx_vhost.conf
    # ^- Dieser Eintrag sollte unbedingt am Ende der Datei bleiben
    ## /CONFIXX
    php_value short_open_tag 1
    php_value register_globals 1
    Meine loadmodule.conf
    #
    # Files in this directory are created at apache start time by /usr/sbin/rcapache2.
    # Do not edit them!
    #

    # as listed in APACHE_MODULES (/etc/sysconfig/apache2)

    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 userdir_module /usr/lib/apache2-prefork/mod_userdir.so
    #
    Es wäre super, wenn m ir jemand helfen könnte.

    Vielen Dank

    MrGTI

  2. #2
    Administrator Avatar von Rain_Maker
    Registriert seit
    06.02.2006
    Beiträge
    5,458

    Standard AW: Update php4.2 auf php5 -httpd.conf-

    Hm, steht ja eigentlich da:

    Code:
    /etc/init.d/apache2 restart
     Syntax error on line 231 of /etc/apache2/httpd.conf:
     Invalid command 'php_admin_value', perhaps mis-spelled or defined by a module not included in the server configuration
    
    In Zeile 231 der /etc/apache2/httpd.conf ist ein Syntaxfehler bei 'php_admin_value', also scheint diese Option so bei php5 nicht mehr zu existieren oder das entsprechende Modul fehlt.

    Und Tante Google weiß auch EINIGES dazu.

    http://www.google.de/search?q=Invali...UTF-8&oe=UTF-8

    Greetz,

    RM
    "Programming today is a race between software engineers striving to build better & bigger idiot-proof programs and the Universe trying to produce bigger & better idiots. So far, the Universe is winning." (Rick Cook)

    Dies ist ein _öffentliches_ Supportforum, keinerlei Support per PN, EMail oder Instant Messenger.

    openSUSE 11.4 - 3.2.X-desktop - fluxbox 1.3.2

    For Windows-Problems - Reboot / For Linux-Problems - BE ROOT!
    (==> Und hier das wirkliche "Geheimnis meines Erfolges")

  3. #3
    Newbie
    Registriert seit
    23.11.2006
    Beiträge
    2

    Standard AW: Update php4.2 auf php5 -httpd.conf-

    danke... Ich hab wohl falsch gegoogelt... so ein Mist... naja werd die Ergebnisse mal auswerten und hoffe ich komme zum Ziel: :-)

Thema geschlossen

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

     

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87