Justtechjobs.com Find a programming school near you






Online Campus Both


php-install | 2004032

Re: [PHP-INSTALL] Error: Cannot load libphp4.so From: Chris Hewitt (g0pae <email protected>)
Date: 03/20/04

mariano aragon wrote:

>Hi,
>
>I followed the instructions to install apache and php
>on my linux (RedHat9).
>
>I added the module php in the httpd.conf:
>
>LoadModule php4_module libexec/libphp4.so
>
>although the file libphp4.so does not exist in
>/usr/local/libexec/ nor the folder
>/usr/local/apache/libexec/ .
>
>Now I am having a error by starting:
>
>Syntax error on line 231 of
>/usr/local/apache2/conf/httpd.conf:
>Cannot load /usr/local/apache2/libexec/libphp4.so into
>server: /usr/local/apache2/libexec/libphp4.so: cannot
>open shared object file: No such file or directory
>
>What am I actually doing wrong and where can I find
>the module libphp4.so ???
>
Redhat 9 comes with the Apache httpd server and PHP, so it is only if
you need a different version of either one that you need to do any
downloading. Perhaps you did not install it? You do not tell us which
versions or what instructions you are using. From your path
/usr/local/apache2 it is an Apache httpd V2 (quite a lot of people using
PHP will use 1.3.x).

libphp4.so will be put wherever you asked php (when you compiled it) to
put it. It will only be generated if your php compile options contain
--with-apxs2, which tells the compiler you want to generate an Apache
httpd module.

As root do an "updatedb", then "locate libphp4.so". That will tell you
where it is if it was compiled. Different linux distributions will use
different directories for programs, configuration files etc. Its easiest
therefore to get a RPM file to install for your distribution. If you
compile from source then you will either need to know all the options
needed, or be prepared to change things accordingly.

Let us know how you get on.
HTH
Chris