php.de

Zurück   php.de > Webentwicklung > PHP Einsteiger > PHP Tipps 2005-2

 
 
LinkBack Themen-Optionen Thema bewerten
Alt 16.06.2005, 12:45  
Gast
 
Beiträge: n/a
Standard PHP 5 installation

Hallo habe ein Problem. Und zwar habe ich hier ein Suse Linux Enterprise Server 9 mit php 4.3.4 mit Apache2. So nun wollte ich php5 installieren.

Hat er auch alles gemacht.

configure mit allen operatoren die ich brauche problemlos

dann

make

/etc/init.d/apache2 stop

ln -s /etc/apache2/sysconfig.d/loadmodule.conf /etc/apache2/httpd2-prefork.conf

make install

cp php.ini-dist /etc/php.ini

/etc/init.d/apache2 start

alles super ohne probleme

Aber wenn ich jetzt die phpinfo mir aufrufe sagt er immer noch php 4.3.4???

Hoffe mir kann jemand helfen.....
 
Sponsor Mitteilung
PHP Code Flüsterer

Registriert seit: 21.08.2005
Beiträge: 4682
PHP-Kenntnisse:
Fortgeschritten

Alt 16.06.2005, 12:49  
Gast
 
Beiträge: n/a
Standard

Ändere in der Datei /etc/sysconfig/apache2 in der Zeile

APACHE_MODULES=

php4 in php5. Nach Neustart des Indianers sollte das Problem behoben sein.

Gruß
phpfan
 
Alt 16.06.2005, 13:10  
Gast
 
Beiträge: n/a
Standard

sorry aber den Eintrag hab i da ne??

das steht alles drin:

# Path: Network/WWW/Apache2
## Description: Configuration for Apache 2
## Type: string
## Default: ""
## ServiceRestart: apache2
#
# Which config file do you want to use?
# (if not set, /etc/apache2/httpd.conf is used.)
#
APACHE_HTTPD_CONF=""

## Type: list(prefork,worker,leader,metuxmpm)
## Default: ""
## Command: /usr/sbin/apache2-reconfigure-mpm
#
# MPM (multi-processing module) to use.
#
# Needed to determine with which MPM apache will run, as well as
# against which header files modules will be built.
#
# If not set, the system will simply pick one of the installed MPMs.
#
APACHE_MPM=""

## Type: string
## Default: ""
## ServiceReload: apache2
#
# email address of the server administrator (ServerAdmin directive)
# This address is added to the server's responses if APACHE_SERVERSIGNATURE
# is set to "email".
#
# If empty ("") it defaults to webmaster@$FQHOSTNAME, where FQHOSTNAME is
# taken from /etc/HOSTNAME.
#
# Note that ServerAdmin directives inside VirtualHost statements are not
# changed, even not the one in the stock SSL virtual host block.
#
APACHE_SERVERADMIN=""

## Type: string
## Default: ""
## ServiceReload: apache2
#
# ServerName gives the name and port that the server uses to identify itself.
# This can often be determined automatically, but we recommend you specify
# it explicitly to prevent problems during startup.
#
# If this is not set to valid DNS name for your host, server-generated
# redirections will not work. See also the UseCanonicalName directive.
#
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address anyway, and this will make
# redirections work in a sensible way.
#
APACHE_SERVERNAME=""

## Type: string
## Default: ""
## ServiceRestart: apache2
#
# Here you can name files, separated by spaces, that should be Include'd from
# httpd.conf.
#
# This allows you to add e.g. VirtualHost statements without touching
# /etc/httpd/httpd.conf itself, which makes upgrading easier.
#
APACHE_CONF_INCLUDE_FILES=""

## Type: string
## Default: ""
## ServiceRestart: apache2
#
# Here you can name directories, separated by spaces, that should be Include'd
# from httpd.conf.
#
# All files contained in these directories will be recursively included by apache.
# If a pattern like *.conf is appended, apache will use it.
#
# Examples: "/etc/apache2/my_conf/"
# "/etc/apache2/virtual_hosts/*.conf"
# "local/*.conf /srv/www/virtual/"
#
APACHE_CONF_INCLUDE_DIRS=""

## Type: string
## Default: "access actions alias auth auth_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php4"
## ServiceRestart: apache2
#
# [It might look silly to not simply edit httpd.conf for the LoadModule statements.
# However, since the LoadModule statements might need an absolute path to the modules,
# switching between MPMs can be quite a hassle. It's easier to just give the names here.]
#
# * list of all modules shipped with the base distribution:
#
# access actions alias asis auth auth_anon auth_dbm auth_digest auth_ldap
# autoindex cache case_filter case_filter_in cern_meta cgi charset_lite
# dav dav_fs deflate dir disk_cache echo env expires ext_filter file_cache
# headers imap include info ldap log_config logio mem_cache mime mime_magic
# negotiation proxy proxy_connect proxy_ftp proxy_http rewrite setenvif
# speling ssl status suexec unique_id userdir usertrack vhost_alias
#
# see http://httpd.apache.org/docs-2.0/mod/ !
#
# * It pays to use IfDefine statements... like
# <IfModule mod_xyz.c>
# ....
# </IfModule>
#
# * In the APACHE_MODULES variable, you can use mod_xyz or just xyz syntax.
# You may also name an absolute path if you like.
#
# * NOTE ON MOD_SSL: before you can enable this module, you need a server certificate.
# A test certificate can be created by entering
# 'cd /usr/share/doc/packages/apache2; ./certificate.sh' as root.
# Also, you need to set the ServerName inside the <VirtualHost _default_:443>
# block to the fully qualified domain name (see /etc/HOSTNAME).
#
# * if your server certificate is protected by a passphrase you should increase the
# APACHE_START_TIMEOUT (see above)
#
# * modules listed here will be ignored if they are not installed
#
#
# EXAMPLES:
#
# fairly minimal
# APACHE_MODULES="access alias auth dir log_config mime setenvif"
#
# apache's default installation
# APACHE_MODULES="access actions alias asis auth autoindex cgi dir imap include log_config mime negotiation setenvif status userdir"
# your settings
APACHE_MODULES="access actions alias auth auth_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php4"

## Type: string
## Default: ""
## ServiceRestart: apache2
#
# Additional server flags:
#
# Put here any server flags ("Defines") that you want to hand over to
# httpd at start time, or other command line flags.
#
# Background: Any directives within an <IfDefine flag>...</IfDefine>
# section are only processed if the flag is defined.
#
# This could be -D SSL, for example. Or -DSTATUS.
# (it does not matter whether you "-D flag1 -D flag2" or simply "flag1 flag2")
#
# Specifying such flags here is equivalent to giving them on the commandline.
# (e.g. rcapache2 start -DReverseProxy)
#
APACHE_SERVER_FLAGS=""

## Type: integer
## Default: 2
#
# timeout during server startup (seconds)
# after this time, the start script decides wether the httpd process started without error.
#
# Increase it, if you use mod_ssl and your certificate is passphrase protected!
#
APACHE_START_TIMEOUT="2"

## Type: list(on,off,email)
## Default: "on"
## ServiceReload: apache2
#
# Configures the footer on server-generated documents
# This correlates to the ServerSignature directive.
#
APACHE_SERVERSIGNATURE="on"

## Type: list(debug,info,notice,warn,error,crit,alert,emerg )
## Default: "warn"
## ServiceReload: apache2
#
# LogLevel: Control the number of messages logged to the error_log.
#
APACHE_LOGLEVEL="warn"

## Type: string
## Default: "/var/log/apache2/access_log combined"
## ServiceRestart: apache2
#
# The location and format of the access logfile (Common Logfile Format).
# If you do not define any access logfiles within a <VirtualHost>
# container, they will be logged here. Contrarywise, if you *do*
# define per-<VirtualHost> access logfiles, transactions will be
# logged therein and *not* in this file.
#
# Simply set it to empty, if you configure it yourself somewhere else.
#
# Examples:
#
# If you would like to have agent and referer logfiles:
#
# setting it to "/var/log/apache2/referer_log referer, /var/log/apache2/agent_log agent"
# corresponds to
# CustomLog /var/log/apache2/referer_log referer
# CustomLog /var/log/apache2/agent_log agent
#
# If you prefer a single logfile with access, agent, and referer information
# (Combined Logfile Format):
#
# setting it to "/var/log/apache2/access_log combined"
# corresponds to
# CustomLog /var/log/apache2/access_log combined
#
APACHE_ACCESS_LOG="/var/log/apache2/access_log combined"

## Type: list(On,Off,DNS)
## Default: "Off"
## ServiceReload: apache2
#
# UseCanonicalName: Determines how Apache constructs self-referencing
# URLs and the SERVER_NAME and SERVER_PORT variables.
# When set "Off", Apache will use the Hostname and Port supplied
# by the client. When set "On", Apache will use the value of the
# ServerName directive.
#
APACHE_USE_CANONICAL_NAME="off"

## Type: list(Major,Minor,Minimal,ProductOnly,OS,Full)
## Default: "OS"
## ServiceReload: apache2
#
# How much information the server response header field contains about the server.
# (installed modules, versions, etc.)
# see http://httpd.apache.org/docs-2.0/mod...l#servertokens
#
APACHE_SERVERTOKENS="OS"

## Type: list(on,off)
## Default: "off"
## ServiceReload: apache2
#
# If mod_status is used, include extended information about the server, like
# CPU usage, in the status report. It is a server-wide setting, and it can cost
# some performance!
#
APACHE_EXTENDED_STATUS="off"

## Type: list(on,off)
## Default: "off"
## ServiceRestart: apache2
#
# Enable buffered logging
#
APACHE_BUFFERED_LOGS="off"

## Type: integer
## Default: 300
## ServiceReload: apache2
#
# Timeout: The number of seconds before receives and sends time out.
# It is a server wide setting.
#
APACHE_TIMEOUT="300"
 
Alt 16.06.2005, 13:37  
Gast
 
Beiträge: n/a
Standard

Dann sieh' mal in die Datei /etc/apache2/sysconfig.d/loadmodule.conf, ob da noch PHP 4 drinsteht.

Gruß
phpfan
 
Alt 16.06.2005, 13:46  
Gast
 
Beiträge: n/a
Standard

Ja na da steht

LoadModule php4_module /usr/lib/apache2-prefork/libphp4.so

so wenn ich jetzt aus der 4 ne 5 mache und den apache neu starte steht denn danach wieder ne 4 drin?
 
Alt 16.06.2005, 13:52  
Gast
 
Beiträge: n/a
Standard

Ich habe mir gerade mal dein Datei /etc/sysconfig/apache2 genauer angesehen, was du eigentlich hättest machen sollen:

APACHE_MODULES="access actions alias auth auth_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir php4"

Gruß
phpfan
 
Alt 16.06.2005, 14:19  
Gast
 
Beiträge: n/a
Standard

Coole Sache jetzt läufts so wies aussieht.

Rechtherzlichen Dank hatte mich ne menge Kopfzerbrechen bereitet.


 
 


Themen-Optionen
Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an
Gehe zu

Ähnliche Themen
Thema Autor Forum Antworten Letzter Beitrag
Phpkit Installation Lylynn Beitragsarchiv 5 10.05.2008 23:27
Installation von PHP5 unter Solaris8 - undefinierte Funktion schiff PHP Tipps 2006 8 07.03.2006 12:31
Problem bei Installation von PECL Modulen /tmp PHP-Fortgeschrittene 3 27.01.2006 19:47
JpGraph Installation Loenne PHP Tipps 2006 38 11.01.2006 19:46
Installation PHP5 auf XP PHP Tipps 2005 7 03.05.2005 16:58
Benötige Hilfe bei Installation von MyODBC Datenbanken 1 22.03.2005 16:28
PHP: Fragen zur Version und Installation PHP Tipps 2007 1 02.01.2005 17:38
mysql Installation ? Datenbanken 4 20.10.2004 18:02
Debian Server installation??? c01001 Server, Hosting und Workstations 8 14.10.2004 10:44
Wichtig! Installation! PHP Tipps 2004 9 28.09.2004 08:36
PHP Installation PHP Tipps 2004 10 23.09.2004 15:13
Lamp Installation PHP Tipps 2004 1 24.08.2004 15:26
Probleme nach Installation von php4.3.8 auf Win XP PRO IIS 5 PHP Tipps 2004 3 29.07.2004 12:16
mmcache installation PHP Tipps 2004 3 06.07.2004 13:58
Probleme bei der Installation! PHP Tipps 2004 1 22.06.2004 21:01

Besucher kamen über folgende Suchanfragen bei Google auf diese Seite
apache_modules php, http://www.php.de/php-tipps-2005-2/24915-php-5-installation.html, debian apache_modules, apache_modules= php, ssl expires serverflags apache2, etc/sysconfig/apache2 apache_modules php5, php5 module apache2 sles 11 apache_modules, \/etc/make.conf\, line 3: need an operator, how to install apache2 and php on suse linux enterprise, debian apache_timeout=, apache2 apache_modules php, \enable buffered logging\ deutsch, absolute path \/srv/www/virtual/\, modules listed here will be ignored if they are not installed, etc /make conf line 3: need an operator, \apache_modules\ cgi php, apache_modules, apache2 httpd.conf php, pecl \suse linux enterprise server 9\ rpm, \apache_modules\ php

Alle Zeitangaben in WEZ +2. Es ist jetzt 04:28 Uhr.




Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Aprilia-Forum, Aquaristik-Forum, Liebeskummer-Forum, Zierfisch-Forum, Geizkragen-Forum

Creative Commons License
Dieser Inhalt ist unter einer Creative Commons-Lizenz lizenziert.