php-install Digest 26 Dec 2001 14:31:16 -0000 Issue 620
Topics (messages 5388 through 5389):
Php-Mysql installation error ...
5388 by: Fred
Re: PHP doesn't work on Redhat 7.2
5389 by: Marc Maniscalco
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]
----------------------------------------------------------------------
--- Begin Message ---
Hi,
I have this debug.log message after my php ./configure command :
--------------------------------------------------------------------------------------------------------------
CONFIGURE: './configure' '--with-mysql=/opt/mysql'
'--with-config-file-path=/usr/local/etc' '--w
ith-gd' '--with-apache=../apache_1.3.22' '--enable-track-vars'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS
CXX:
CXXFLAGS:
INCLUDES: -I/usr/local/apache_1.3.22/src/include
-I/usr/local/apache_1.3.22/src/os/unix -I$(to
p_builddir)/Zend -I/opt/mysql/include/mysql
LDFLAGS: -R/usr/ucblib -L/usr/ucblib
-R/usr/local/lib/gcc-lib/i386-pc-solaris2.7/2.95.2 -L/usr
/local/lib/gcc-lib/i386-pc-solaris2.7/2.95.2 -R/opt/mysql/lib/mysql
-L/opt/mysql/lib/mysql
LIBS: -lmysqlclient -lgd -lcrypt -lresolv -lresolv -lm -ldl -lnsl
-lsocket -lsocket -lgcc -
lcrypt
DLIBS:
SAPI: apache
PHP_RPATHS: /usr/ucblib
/usr/local/lib/gcc-lib/i386-pc-solaris2.7/2.95.2 /opt/mysql/lib/mysql
uname -a: SunOS exodus 5.7 Generic_106542-18 i86pc i386 i86pc
gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib
-L/usr/ucblib -R/usr/local/lib/g
cc-lib/i386-pc-solaris2.7/2.95.2
-L/usr/local/lib/gcc-lib/i386-pc-solaris2.7/2.95.2 -R/opt/mysql/l
ib/mysql -L/opt/mysql/lib/mysql conftest.c -lmysqlclient -lgd -lcrypt
-lresolv -lresolv -lm -ldl -
lnsl -lsocket -lsocket -lgcc -lcrypt 1>&5
Undefined first referenced
symbol in file
uncompress
/opt/mysql/lib/mysql/libmysqlclient.so
compress
/opt/mysql/lib/mysql/libmysqlclient.so
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
--------------------------------------------------------------------------------------------------------------
It seems to be a mysql compilation error, but the mysql compilation do
not return errors, but I have this warning with the mysql make install :
----------------------------------------------------------------------
Libraries have been installed in:
/opt/mysql/lib/mysql
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- use the `-RLIBDIR' linker flag
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
It's the first time I have this errors and I don't understand.
If I try to compile Apache aftter taht, it crash with an the same error
concerning /opt/mysql/lib/mysql/libmysqlclient.so ...
Can anyone help me ?
Thank you.
Frederic.
--- End Message ---
--- Begin Message ---
Good PHP install tutorial for linux:
http://www.linuxguruz.org/z.php?id=31
This may solve your problem.
# Uncomment or Change the following lines in
/usr/local/apache/conf/httpd.conf
<IfModule mod_dir.c>
DirectoryIndex index.html index.php index.php3 index.phtml
</IfModule>
# And for PHP 4.x, use:
#
AddType application/x-httpd-php .html .htm .php .php3 .phtml
AddType application/x-httpd-php-source .phps
cp /usr/local/php-4.1.0/php.ini-dist /usr/local/apache/conf/php.ini
"Michiel Van Otegem )" <[EMAIL PROTECTED]> wrote in message
002501c18bf9$c1fa52d0$[EMAIL PROTECTED]">news:002501c18bf9$c1fa52d0$[EMAIL PROTECTED]...
Here's the deal...
I've downloaded Redhat 7.2, created two CDs and installed it.
I installed it with Apache and all the PHP modules.
I found out that Apache didn't run autmoatically after booting, so I changed
that. Apache now runs fine.
However, when I request a PHP file, I get the contents of the PHP file,
without it being executed by the server.
When I open the Apache Config tool, I see index.php set as the default page,
so why isn't any .php file being executed?
I tried chmodding so it has execute rights... nothing.
My files are in the root webdir (index.html loads fine over HTTP), so it
should work.
Anybody have clue what I have to do? Thanks.
/Michiel
--- End Message ---