php-install Digest 26 Aug 2001 18:34:15 -0000 Issue 431

Topics (messages 4085 through 4086):

PHP4 Install Problems - Please Help
        4085 by: Martin Stephenson

Re: Installing PHP4 - Please Help !!
        4086 by: Bill Carter

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


Hi All,

I'm running Suse Linux 7.1, Kernet 2.4

I have downloaded and installed the latest version of Apache and it's up
and running OK

It is installed in :

/usr/local/apache

To Install PHP, i have downloaded the Source and put it in:

/usr/local/src/php-4.0.6

To Install PHP I have done this ( ihave specified the location of apxs
as Suse Installed an Apache server also, but I want the one I've
installed to /usr/local/apache):

./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs

Then I type:

make

make install

Then I edit /usr/local/apache/conf/httpd.conf

The required lines ARE there, ie.

LoadModule php4_module        libexec/libphp4.so
AddModule mod_php4.c

AddType application/x-httpd-php .php

I have also copied /usr/local/src/php-4.0.6/php.ini-dist to
/usr/local/lib/php.ini

Now the problem :
I then go to start my Server as follows:

cd /usr/local/apache/bin
./httpd

BUT Then I get this:

"Syntax error on line 236 of /usr/local/apache/conf/httpd.conf:
API module structure `php4_module' in file
/usr/local/apache/libexec/libphp4.so is garbled - perhaps this is not an
Apache module DSO? "

Line 236 of /usr/local/apache/conf/httpd.conf is :

LoadModule php4_module        libexec/libphp4.so


And If I check the file type of libphp4.so as follows:
cd /usr/local/apache/libexec/
file libphp4.so

I get :
"libphp4.so: ELF 32-bit LSB shared object, Intel 80386, version 1, not
stripped "


So....Can anybody Help ???

I don't have MySQL installed yet - do I need to have that first ???

Thanks,

Martin Stephenson.





I get the same exact problem, I was tearing my hair out over
it all day yesterday. I'm looking back over the previous posts
here and see people experiencing this even last year but I
haven't seen any solutions posted...


Martin Stephenson wrote:
> 
> Hi All,
> 
> I'm running Suse Linux 7.1, Kernet 2.4
> 
> I have downloaded and installed the latest version of Apache and it's up
> and running OK
> 
> It is installed in :
> 
> /usr/local/apache
> 
> To Install PHP, i have downloaded the Source and put it in:
> 
> /usr/local/src/php-4.0.6
> 
> To Install PHP I have done this ( ihave specified the location of apxs
> as Suse Installed an Apache server also, but I want the one I've
> installed to /usr/local/apache):
> 
> ./configure --with-mysql --with-apxs=/usr/local/apache/bin/apxs
> 
> Then I type:
> 
> make
> 
> make install
> 
> Then I edit /usr/local/apache/conf/httpd.conf
> 
> The required lines ARE there, ie.
> 
> LoadModule php4_module        libexec/libphp4.so
> AddModule mod_php4.c
> 
> AddType application/x-httpd-php .php
> 
> I have also copied /usr/local/src/php-4.0.6/php.ini-dist to
> /usr/local/lib/php.ini
> 
> Now the problem :
> I then go to start my Server as follows:
> 
> cd /usr/local/apache/bin
> ./httpd
> 
> BUT Then I get this:
> 
> "Syntax error on line 236 of /usr/local/apache/conf/httpd.conf:
> API module structure `php4_module' in file
> /usr/local/apache/libexec/libphp4.so is garbled - perhaps this is not an
> Apache module DSO? "
> 
> Line 236 of /usr/local/apache/conf/httpd.conf is :
> 
> LoadModule php4_module        libexec/libphp4.so
> 
> And If I check the file type of libphp4.so as follows:
> cd /usr/local/apache/libexec/
> file libphp4.so
> 
> I get :
> "libphp4.so: ELF 32-bit LSB shared object, Intel 80386, version 1, not
> stripped "
> 
> So....Can anybody Help ???
> 
> I don't have MySQL installed yet - do I need to have that first ???
> 
> Thanks,
> 
> Martin Stephenson.


Reply via email to