> 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):

It's better to specify exactly where apxs is anyway, just so you know for
sure you don't get the wrong one.

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

> "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? "

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

Well, it's a DSO, but it got broken somehow when you built it...  I mean, a
car that you build from scratch with no carbuerator is still gonna look like
a car, but it ain't gonna run too good. :-)

> So....Can anybody Help ???
>
> I don't have MySQL installed yet - do I need to have that first ???

YES!

(Technically, in some situations, no...  But for now, just go with YES! as
the answer.)

If you don't have MySQL installed, PHP has to use its "built-in version".

This "built-in version" has a rather low chance of matching up with the
version you are actually running.  In some instances, I conjecture that it
might also conflict with a version that Apache is *already* using with
mod_auth_mysql or some other nifty Apache module I've never heard of that
uses MySQL...  But I dunno for sure about that part.

Anyway, if the versions are far enough off, your PHP and your MySQL won't
talk to each other, or will talk, but some functions won't work right, or
PHP itself won't even be able to be loaded.

At any rate, get MySQL, install it, and be sure to
use --with-mysql=/path/to/mysql when you re-compile to get the right stuff.

*ALSO* -- You have to watch what goes by during configure.  Some "errors"
are printed but aren't big enough to stop the configure script.  Alas, they
are, in some cases, big enough to make your PHP non-functional, or at least
not having all the features you asked for.  You can check the files left
behind from configure name config.log and config.cache.  They're just text
files.  A little digging in there may help you figure out what exactly went
wrong.

WISH LIST:  config.log doesn't seem to record the Yes/No answer to what
happened...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to