PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : (SuSE8.2) Wie startet man PHP4 unter APACHE2?



Sonny
18.08.03, 16:00
Who knows?

rpm -qa | grep php
apache2-mod_php4-4.3.1-24
mod_php4-core-4.3.1-24
phplib-7.2d-638

Sonny
18.08.03, 16:29
P.S. und sowas hab ich noch gefunden:
/etc/apache2/conf.d #
ll
total 16
drwxr-xr-x 2 root root 4096 Aug 18 17:26 .
drwxr-xr-x 9 root root 4096 Aug 18 16:50 ..
-rw-r--r-- 1 root root 733 Mar 17 17:54 mod_perl.conf
-rw-r--r-- 1 root root 273 Mar 17 18:35 mod_php4.conf

Aber beim rcapache2 start kommt nix mit [ PHP4 ]

Sheriff
18.08.03, 17:21
naja, schreibst dir halt ne php datei und schaust ob se angezeigt wird. wenn´s geht dann gehts. wenn nicht, dann konifg checken:

PHP Version 4.3.1

httpd.conf anpassen (liegt unter /etc/apache2 )
..
#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule php4_module /usr/lib/apache2/apache2-prefork/libphp4.so
..
..
..
#
# DirectoryIndex: sets the file that Apache will serve if a directory
# is requested.
#
# The index.html.var file (a type-map) is used to deliver content-
# negotiated documents. The MultiViews Option can be used for the
# same purpose, but it is much slower.
#
DirectoryIndex index.html index.htm index.php
..
..
..
#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
AddType application/x-tar .tgz
AddType image/x-icon .ico
AddType application/x-httpd-php .php
..
..
..


btw: afaik musst php net extra starten

hiTCH-HiKER
18.08.03, 19:23
http://www.linuxforen.de/forums/showthread.php?s=&postid=542081#post542081

Sheriff
18.08.03, 19:44
@hiTCH-HiKER: habe ich nicht und es geht dennoch

Sonny
19.08.03, 14:07
bei mir gehts jetzt auch :p

hiTCH-HiKER
19.08.03, 17:43
Original geschrieben von Sheriff
@hiTCH-HiKER: habe ich nicht und es geht dennoch

Dann lädts und konfigurierst du das PHP Modul über die httpd.conf ... in der hab ich wiederum kein Wort über PHP stehen ;)

Sheriff
19.08.03, 18:05
@hiTCH-HiKER: yepp ;)

@Sonny: und verrätst du uns auch woran es lag und wie du es jetzt gelöst hast ? *interessehab*
(dann haben evtl. andere mit ähnlichem Prob auch was davon ;) )

Sonny
19.08.03, 21:11
ich hab php4 in /ets/sysconfig/apache2 eingetragen. Beim starten wird [ PHP ] nicht mehr wie früher bei SuSE angezeigt.
Jetzt kommt aber der Hammer. PHP geht bei mir nicht mit dem Mozilla unter Windoof was eigentlich nicht sein kann. Mit Opera oder Beonex (auch mozilla) gehts.
Naja. was solls.