php-install Digest 4 Aug 2001 04:16:30 -0000 Issue 394
Topics (messages 3818 through 3829):
Error connecting to MySQL with PHP4
3818 by: Michael Franssen
3824 by: Johannes Janson
Installation problem
3819 by: Arkoudeas Dimosthenis \( Arkonet \)
Re: PHP doesn't find PDFLib functions
3820 by: Christophe Gerard
Building PHP with sybase support
3821 by: Kevin Sayre
Re: How to compile PHP with IMAP option?
3822 by: Christopher Cheng
Problem with Apache + mod_ssl + php + Oracle + mysql
3823 by: Navin Doshi
3825 by: Jim Thome
Values in the php.ini
3826 by: Richard Hensley
problem with session.save_handler...
3827 by: Neo-Fredy
problem with session.save_handler in php.ini
3828 by: Neo-Fredy
Imlib2 install issue
3829 by: Greg Donald
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've just installed RedHat linux 7.0 (update) for intel and installed
the Apache webserver, including a PHP4 module (libphp4.so) and MySQL.
Apache works fine, including standard PHP (at least, the hello-world
example works fine). Also, MySQL appears to be working fine, since I can
use 'mysql mysql' to edit the members-table and add the 'nobody' account
apparently needed by Apache.
However, when I try to run the following simple script to connect to
MySQL on localhost, I get the baffling error: 'undefined function'. I
thought that MySQL connections were standard baked in PHP4.
Does anybody know how to get this up and running without have to
recompile and re-install apache and all other components from scratch?
What's going on here anyway?
Thanks in advance!
Michael Franssen
-------------
<HTML>
<BODY>
<?php
echo "PHP is starting here<BR>";
$host = "localhost";
$user = "root";
$database = "ogodb";
echo "Trying to connect to $host as $user<BR>";
$db = mysql_connect($host,$user) or
die ("Connection could not be established<BR>");
echo "Connected<BR>";
echo "end of PHP.<BR>";
?>
</BODY>
</HTML>
The script above produced the output:
PHP is starting here
Trying to connect to localhost as root
Fatal error: Call to undefined function: mysql_connect() in
/var/www/html/index.php4 on line 9
Hi,
[...]
> Fatal error: Call to undefined function: mysql_connect() in
> /var/www/html/index.php4 on line 9
It seems like your PHP has been vompiled without MySQL support.
Put <?php phpinfo(); ?> into a file and look at the configure command
printed there. If --with-mysql[=/path/to/mysql] is not listed you'll have
to recompile it with MySQL support.
cheers
Johannes
Im trying to compile PHP 4.0.6 to a Slackware linux
machine with support for mssql (via freetds) and sapdb
I send you the attachment of the
debug.log
Any help is acceptable
Thanks in advance
Arkoudeas Dimosthenis
|
It works on Solaris too !
Thank's a lot.
> -----Message d'origine-----
> De : Jim Thome [mailto:[EMAIL PROTECTED]]
> Envoye : mercredi 1 aout 2001 17:34
> A : [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Objet : Re: [PHP-INST] PHP doesn't find PDFLib functions
> Importance : Haute
>
>
> It took me quite awhile to get PDFLIB 4.0.1 to compile with PHP,
> and here are the config options that finally worked for me (on HPUX).
>
> PDFLIB:
> ./configure --enable-shared-pdflib --enable-cxx
> --with-tifflib=/usr/lib --with-zlib=no --with-pnglib=no
>
> PHP (DSO build):
> ./configure --with-apxs=/path/to/apache/bin/apxs --with-mysql=no
> --with-pdflib=/usr/local --enable-shared=pdflib --enable-libgcc
> --with-zlib=/opt/zlib --with-zlib-dir=/opt/zlib
>
> NOTE - Even though the PHP compile might say that PDFLIB is
> being included, if you don't have see the following lines during
> compile, PDFLIB will NOT be included:
>
> ####################################
> checking whether to include PDFlib support... yes
> checking for PDF_show_boxed in -lpdf... yes
> #####################################
>
> Good Luck,
>
> Jim Thome
>
>
>
> >>> "Christophe Cinquantun" <[EMAIL PROTECTED]> 08/01 4:49 AM >>>
> I don't succeed in building PHP 4.0.6 with PDFLib 4.0.1
> I've installed the PDFLIB 4.01 source in <pdflib-dir>, run
> ./configure, make
> and make install.
> Then, as specified in <pdflib-dir>/bind/php/readme.txt, I've copied
> <pdflib-dir>/bind/php/ext/pdf/* in <php-dir>/ext/pdf and build php with
> ./configure --with-pdflib=/usr/local, make and make install
Ok, I've downloaded the source code, and ran the
./configure --with-sybase=/opt/sybase-11.9.2/. When I got to do the make
on it, I get these errors:
/home/ksayre/downloads/php-4.0.6/ext/sybase/php_sybase_db.h:67:22:
sybfront.h: No such file or directory
/home/ksayre/downloads/php-4.0.6/ext/sybase/php_sybase_db.h:68:19: sybdb.h:
No such file or directory
/home/ksayre/downloads/php-4.0.6/ext/sybase/php_sybase_db.h:69:22:
syberror.h: No such file or directory
make[2]: *** [internal_functions.lo] Error 1
make[2]: Leaving directory `/home/ksayre/downloads/php-4.0.6/main'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ksayre/downloads/php-4.0.6/main'
make: *** [all-recursive] Error 1
I'm awesoming that it's totally blowing up because it can't complete the
sybase portion. Anyone else had this problem, and where can I get a hold of
those files to finish the build? Thanks, just trying to get connected to
our SQL 2000 server.
-Kevin M. Sayre
[EMAIL PROTECTED]
./configure --with-imap --with-sybase=/opt/sybase -with-apxs -with-mysql --w
ith-kerberos --with-imap-ssl --enable-track-vars --enable-force-cgi-redirect
--with-gettext
I added the kerberos option to it. This time it comes up with a message that
the c-client.a does not support SSL....
How do I recompile c-client.a to support SSL?
"Adrian D'Costa" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> From your mail it seems to install properly. Find out where libphp4.so is
> and set the exact path. In my case /etc/httpd/modules. I had the same
> problem once I set the path it works.
>
> Adrian
>
> On Wed, 1 Aug 2001, Christopher Cheng wrote:
>
> > I am new to using PHP with IMAP?
> > As I recompile PHP, I use
> >
> > rm config.cache
> >
./configure --enable-track-vars --enable-force-cgi-redirect --with-gettext -
> > -with-mysql --with-sybase=/opt/sybase --with-apxs --with-imap
> > make
> > make install
> >
> > After I restart Apache, it says that
> > Cannot load /www/libexec/libphp4.so into server:
/www/libexec/libphp4.so:
> > undefined symbol: gss_mech_krb5
> >
> > Does it mean that I miss the DIR option after "--with-imap"? I am using
> > Redhat 6.2, what should it always be?
> >
> >
> >
>
When I setup up Apache 1.3.19 with mod_ssl and PHP 4.0.6 with oracle
and mysql , the SSL ( https ) doesn't work on my system.
If I exclude mysql from above, SSL works fine.
If I exclude Oracle from above, SSL works fine.
I am trying on HP UX and not know what is going wrong.
Any help will be appreciated.
- Navin
Navin-
I had the same problem on HPUX, and finally had to get some third party software to
get ssl to work with Apache. If you can wait, I recommend waiting until HP finishes
work on their version of Apache 2.0. The engineers at HP contributed the ssl source
to Apache, and should work well on HPUX.
Jim
>>> Navin Doshi <[EMAIL PROTECTED]> 08/03 9:18 AM >>>
When I setup up Apache 1.3.19 with mod_ssl and PHP 4.0.6 with oracle
and mysql , the SSL ( https ) doesn't work on my system.
If I exclude mysql from above, SSL works fine.
If I exclude Oracle from above, SSL works fine.
I am trying on HP UX and not know what is going wrong.
Any help will be appreciated.
- Navin
--
PHP Install 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]
I've installed php on a win2k/iis5 machine using the isapi filter. I'm
having a problem with it recognizing my settings in the php.ini file. I've
placed the file in c:\winnt, but when I run a simple .php file that contains
a phpinfo() function call, the parameters shown do not contain the values I
put into the php.ini.
Does anybody know how to get php to recognize my php.ini?
Thanks,
Richard Hensley
Hi!
well I've got a starnge behavior from my php4.0.3pl1 (deb stable
package) with the session.save_handler...
I am looking for 2 things :
-> all the options that are recognized in the php.ini for the
session.save_handler parameter.
-> why the files created in /tmp (default) named "phpXXX" (where XXXX
is the PHPSESSID) are never erased once the session is closed?
C-Ya!
@+
Fredy
Hi!
well I've got a strange behavior from my php4.0.3pl1 (deb stable
package) with the session.save_handler...
I am looking for 2 things :
-> all the options that are recognized in the php.ini for the
session.save_handler parameter.
-> why the files created in /tmp (default) named "phpXXX" (where XXXX
is the PHPSESSID) are never erased once the session is closed?
C-Ya!
@+
Fredy
make fails while trying to add Imlib2 support.
./configure --with-xml --with-apxs=/usr/sbin/apxs --with-mysql=/usr
--with-pgsql --with-imlib
I can see the configure script finds my new Imlib2 install:
<snip>
checking for imlib2 support... yes
checking for imlib_load_image in -lImlib2... yes
</snip>
anyway, here's the error:
Making all in .
make[1]: Entering directory `/usr/src/php-4.0.6'
/bin/sh /usr/src/php-4.0.6/libtool --silent --mode=link gcc -I.
-I/usr/src/php-4.0.6/ -I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6
-I/usr/include/apache -I/usr/src/php-4.0.6/Zend -I/usr/include/mysql
-I/usr/src/php-4.0.6/ext/xml/expat/xmltok
-I/usr/src/php-4.0.6/ext/xml/expat/xmlparse -I/usr/src/php-4.0.6/TSRM
-DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g
-O2 -o libphp4.la -rpath /usr/src/php-4.0.6/libs -avoid-version
-L/usr/local/pgsql/lib -R /usr/local/pgsql/lib stub.lo Zend/libZend.la
sapi/apache/libsapi.la main/libmain.la regex/libregex.la
ext/imlib/libimlib.la ext/mysql/libmysql.la ext/pcre/libpcre.la
ext/pgsql/libpgsql.la ext/posix/libposix.la ext/session/libsession.la
ext/standard/libstandard.la ext/xml/libxml.la TSRM/libtsrm.la -lpam -ldl
-lpq -lmysqlclient -l -lcrypt -lresolv -lm -ldl -lnsl -lresolv
/usr/bin/ld: cannot find -l--library=crypt
collect2: ld returned 1 exit status
make[1]: *** [libphp4.la] Error 1
make[1]: Leaving directory `/usr/src/php-4.0.6'
make: *** [all-recursive] Error 1
I also tried adding a couple of paths to the --with-imlib switch,
/usr/local/lib and /usr/local/include. Both variations produced the same
error as above.
I am trying to "add" imlib support. This is an upgrade on the same
version of PHP I'm already running, 4.06. I experienced no missing crypt
libraries on the previous install.
I don't exactly understand why it's failing on this error:
/usr/bin/ld: cannot find -l--library=crypt
I don't see any kind of crypt files listed in the requirements for Imlib2:
http://www.mcclanahan.cx/php_imlib/downloads.php
If I leave off the --with-imlib option I get no errors, so I know that's
the part that's breaking.
When I installed Imlib2 there were no errors, and I see the files:
> locate Imlib2
/usr/local/lib/libImlib2.so.1.0.1
/usr/local/lib/libImlib2.so.1
/usr/local/lib/libImlib2.so
/usr/local/lib/libImlib2.la
/usr/local/lib/libImlib2.a
/usr/local/include/Imlib2.h
So I had a look at /etc/ld.so.conf. I added /usr/local/lib and ran
ldconfig. This didn't help, same errors as above.
A friend pointed out this:
> -lpq -lmysqlclient -l -lcrypt -lresolv -lm -ldl -lnsl -lresolv
> ^
> |
> Here's the problem
I have no idea how to fix it, if this is the issue...
I am using
PHP 4.0.6
Apache 1.3.20
MySQL 3.23.40
Postgresql 7.1.2
Imlib2 1.0.1
RedHat 7.1
Thanks for any help in advance,
Greg