Click to See Complete Forum and Search --> : php4-apache install


Anon
09-06-2001, 09:16 AM
I'm having trouble installing php4.0.6 with my apache 1.3.20 on Mandrake 8.0. when I try to configure php with-apxs it gives me the following error:

perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = "en_US:en",
LC_ALL = (unset),
LC_MESSAGES = "C",
LC_TIME = "en_US",
LC_NUMERIC = "en_US",
LC_CTYPE = "C",
LC_MONETARY = "en_US",
LC_COLLATE = "en_US",
LANG = "C"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
Usage: apxs -g [-S <var>=<val>] -n <modname>
apxs -q [-S <var>=<val>] <query> ...
apxs -c [-S <var>=<val>] [-o <dsofile>] [-D <name>[=<value>]]
[-I <incdir>] [-L <libdir>] [-l <libname>] [-Wc,<flags>]
[-Wl,<flags>] <files> ...
apxs -i [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
apxs -e [-S <var>=<val>] [-a] [-A] [-n <modname>] <dsofile> ...
Sorry, I was not able to successfully run APXS. Possible reasons:
1. Perl is not installed;
2. Apache was not compiled with DSO support (--enable-module=so);
3. 'apxs' is not in your path.
configure: error: ;

What do I need to do to make this work? Do I need to reinstall perl? Thanks for any help you can give me.

Adam.

Anon
09-06-2001, 03:12 PM
My Steps
MySQL First of course
I left this out since it's rather simple.

Apache 1.3.20 Next
./configure -enable-module=most --enable-shared=max
***(This enables the DSO support) ***
make then make install

PHP 4.04i Last Config
./configure --with-mysql=/usr/local/mysql-3.22.32-pc-linux-gnu-i686/ --with-apxs=/usr/local/apache_1.3.20/bin/apxs
make then make install

Uncommented the PHP4 in HTTPD.CONF and restarted Apache
./bin/apachectl restart

all worked and I am very happy

Anon
09-06-2001, 04:28 PM
Thanks for your response. I tried all that(without the mysql), but I still get errors when I try to configure php4 with apxs I get the perl error I described above.

mithril
09-07-2001, 12:33 AM
Adam,

Have you tried compiling without apxs? I compiled up Apache 1.3.20 and PHP 4.0.6 this afternoon (also on Mandrake 8.0) without any problems except that GD doesn't want to compile...... but that's a different problem:) I followed the build instructions detailed in the Apache module section of PHP Manual Ch. 1.2 (http://www.php.net/manual/en/install.apache.php). The notable differences where in the php config arguments:

--with-apache=../apache_1.3.20
--with-pgsql=shared
--with-yp
--with-unixODBC
--with-zlib

MySQL and track_vars support is now embedded into the PHP core, so you don't need to add those arg's. Now if I could only figure out how to add Apache to the services list:) HTH.

geoff

rickyhau
09-13-2001, 06:29 AM
I could do it on solaris2.7 but not 2.8.

i get the following error message when i tried to start apache...

any idea?

Syntax error on line 205 of <apache install path>/conf/httpd.conf:
Cannot load <installpath>/libexec/libphp4.so into server: ld.so.1: <installpath>/bin/httpd: fatal: relocation error: file <installpath>/libexec/libphp4.so: symbol uncompress: referenced symbol not found

thanks.