← Back to team overview

sslug-teknik team mailing list archive

Re: Sv: Php er gået ned.

 

Anders wrote:
> 
> Hi Kresten,
> 
> Sunday, June 03, 2001, 4:55:18 PM, you wrote:
> 
> KB>     AddType application/x-httpd-php .php
> KB>     AddType application/x-httpd-php-source .phps
> KB> Det skulle vel kunne gøre det?
> 
> Jo, så skal du bare sikre dig at følgende linier også er der (over de
> andre!):
> 
> LoadModule php4_module          modules/libphp4.so
> AddModule mod_php4.c

Jeg har indsat de nævnte linje:

#
# 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.
# Please read the file README.DSO in the Apache 1.3 distribution for
more
# details about the DSO mechanism and run `httpd -l' for the list of
already
# built-in (statically linked and thus always available) modules in your
httpd
# binary.
#
# Note: The order in which modules are loaded is important.  Don't
change
# the order below without expert advice.
#
# Example:
# LoadModule foo_module libexec/mod_foo.so

LoadModule php4_module          modules/libphp4.so
AddModule mod_php4.c

Når jeg forsøger at starte apache får jeg følgende medding:

Syntax error on line 208 of /usr/local/conf/httpd.conf:
Cannot load /usr/local/modules/libphp4.so into server:
/usr/local/modules/libphp4.so: cannot open shared object file: No such
file or directory
/usr/local/bin/apachectl start: httpd could not be started

Det er meget fornuftigt for /usr/local/modules/libphp4.so eksisterer
ikke.
Jeg har installeret php i mappen /home/kresten/src/php-4.0.3pl1/

Der er en tom mappe:
/home/kresten/src/php-4.0.3pl1/modules/

Der er en fil: 
/home/kresten/src/php-4.0.3pl1/libphp4.la


Fortæl mig Anders. Hvordan gøres det?
-- 
venlig hilsen Kresten Buch
krestenbuch@xxxxxxxxxxxx


Follow ups

References