php-install Digest 23 Jul 2001 22:28:12 -0000 Issue 377 Topics (messages 3671 through 3687): Config.inc.php3 variable undefined ?? 3671 by: Ulrich Emmanuel Zend compilation fails on Solaris 8 3672 by: alex.telmap.com [PHP 4.0.5]-[PHP 4.0.6] Install on NT 4.0 with Netscape 3.6 3673 by: Arkegide problems building PHP 3674 by: Jan-Erik Bullett 3684 by: Steve Brazill rpm or source 3675 by: Jan-Erik Bullett Problems with Solaris an iPlanet 3676 by: Stefano Angelici Problems with Solaris and iPlanet 3677 by: Stefano Angelici 3678 by: Stefano Angelici Re: Problem loading libiodbc.so.2 3679 by: Andrew Hill OIC8 and connecting to a remote machine 3680 by: Chuck Lidderdale 3681 by: Jim Thome 3683 by: Chuck Lidderdale Re: WELCOME to [EMAIL PROTECTED] 3682 by: Cleiton Peres Reis libphp4.so not built on 2nd configure 3685 by: Keith Attfield PHP+SNMP 3686 by: Cleiton Peres Reis Unknown host error while tyring to use iodbc driver 3687 by: Neil Aggarwal 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] ----------------------------------------------------------------------
Hello as i try to configure PHPmyadmin i get the following errors if someone could have a look a it Error starting PHPMyadmin Here's my default config.inc.php3 file... // The $cfgServers array starts with $cfgServers[1]. Do not use $cfgServers[0]. // You can disable a server config entry by setting host to ''. $cfgServers[1]['host'] = '10.68.10.16'; // MySQL hostname $cfgServers[1]['port'] = ''; // MySQL port - leave blank fordefault port $cfgServers[1]['adv_auth'] = true; // Use advanced authentication? $cfgServers[1]['stduser'] = 'root'; // MySQL standard user (only needed with advanced auth) $cfgServers[1]['stdpass'] = 'MYPASSWORD'; // MySQL standard password (only needed with advanced auth) $cfgServers[1]['user'] = 'root'; // MySQL user (only needed withbasic auth) $cfgServers[1]['password'] = 'MYPASSWORD'; // MySQL password (only needed with basic auth) $cfgServers[1]['only_db'] = ''; // If set to a db-name, only this db is accessible $cfgServers[1]['verbose'] = ''; // Verbose name for this host -leave blank to show the hostname And i get the following error on my brower after login prompt --> Fatal error: Call to undefined function: mysql_connect() in /var/www/html/phpMyAdmin/lib.inc.php3 on line 170 ...while the line shows --> if(empty($cfgServer['port'])) $dbh = $connect_func($cfgServer['host'],$cfgServer['stduser'],$cfgServer['stdpass'] ) or mysql_die(); for sure i'm must change someting but what ? Any advices are welcome thanks . Ulrich Emmanuel, IT Group Infogrames Entertainment, France Tel: +33 (0)4 37 64 31 56 / Icq :50918682 http://www.infogrames.com
arbiter:~/build/php-4.0.6# ./configure --with-apxs=/usr/local/apache/sbin/apxs --enable-debug=no --with-java=/usr/java --with-openssl=/usr/local --with-pgsql=/usr/local/pgsql --enable-sockets --enable-versioning --without-mysql checking for a BSD compatible install... ./install-sh -c checking whether build environment is sane... yes checking whether make sets ${MAKE}... (cached) yes checking for working aclocal... found checking for working autoconf... found checking for working automake... found checking for working autoheader... found checking for working makeinfo... missing checking whether to enable maintainer-specific portions of Makefiles... no checking host system type... sparc-sun-solaris2.8 ...................................... **** configure stuff here **** ...................................... creating ext/xml/expat/xmltok/Makefile creating sapi/apache/Makefile creating regex/Makefile creating main/internal_functions.c +--------------------------------------------------------------------+ | License: | | This software is subject to the PHP License, available in this | | distribution in the file LICENSE. By continuing this installation | | process, you are bound by the terms of this license agreement. | | If you do not agree with the terms of this license, you must abort | | the installation process at this point. | +--------------------------------------------------------------------+ Thank you for using PHP. arbiter:~/build/php-4.0.6# make Making all in Zend /bin/sh ../libtool --silent --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../main -D_POSIX_PTHREAD_SEMANTICS -DHARD_SERVER_LIMIT=512 -DDOCUMENT_LOCATION="/usr/local/www/data/" -DDEFAULT_PATH="/bin:/usr/bin:/usr/local/bin" -DBUFFERED_LOGS -DSOLARIS2=280 -DMOD_SSL=208104 -DEAPI -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=21 -c zend_language_scanner.c "zend_language_scanner.c", line 2826: reference to static variable "yy_current_buffer" in inline extern function "zend_language_scanner.c", line 2828: reference to static variable "yy_start" in inline extern function "zend_language_scanner.c", line 2840: reference to static variable "yy_current_buffer" in inline extern function "zend_language_scanner.c", line 2845: reference to static variable "yy_current_buffer" in inline extern function "zend_language_scanner.c", line 2850: reference to static variable "yy_start" in inline extern function "zend_language_scanner.c", line 4898: cannot recover from previous errors cc: acomp failed for zend_language_scanner.c *** Error code 1 make: Fatal error: Command failed for target `zend_language_scanner.lo' Current working directory /export/home/alex/build/php-4.0.6/Zend *** Error code 1 make: Fatal error: Command failed for target `all-recursive'
Hello, I try to install the last version of PHP on my server. But the version 4.0.6 and the 4.0.5 don't run well. There's no particular message when I launch the server but the message : "php4_init reports: Initialized PHP Module" is not displayed and the server doesn't work. When I install PHP 4.0.4pl1 there's no problems the server work well and I've got the message below in the nestcape server logs error message file. Thank in advance for your time and your help. Jean-François
Help, please! I'm trying to install PHP 4.0.6, using ./configure --with-mysql=/usr/bin --with-apxs=/usr/sbin/apxs make make install It worked once, where did it put the file it built? And what are the compiled files called? now when I try to run ./configure, I get the error configure: error: Cannot find header files under /usr/bin I assume it's looking for the mysql headers. Can I only build it once (I re-decompressed the download to the same location and tried again)? Thanks - Jan
How did you install MySQL ?? If you used the RPM method, you should find all of the MySQL files 'dispersed' throughout "/usr", so that should be what you use in your config statement ("--with-mysql=/usr"). If you used the 'source' method of installation, you'd point to the directory where you 'configured' MySQL to reside (i.e. "/usr/local/mysql"). There are no 'header' files in "/usr/bin"... ----- Original Message ----- From: "Jan-Erik Bullett" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 23, 2001 9:50 AM Subject: [PHP-INST] problems building PHP > Help, please! > > I'm trying to install PHP 4.0.6, > using ./configure --with-mysql=/usr/bin --with-apxs=/usr/sbin/apxs > make > make install > > It worked once, where did it put the file it built? > And what are the compiled files called? > > now when I try to run ./configure, I get the error > configure: error: Cannot find header files under /usr/bin > I assume it's looking for the mysql headers. Can I only build it once > (I re-decompressed the download to the same location and tried again)? > > Thanks > > - > > Jan > > > -- > 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 am also having trouble (probably getting confused) with whether to use rpm or src install. I have installed the rpms for php-4.0.6, apache and mysql-3.23.36. Will doing this confuse the install paths, or are they the same. should I stick to only rpm or only source distributions, or can I mix them? jan
Hi everybody. I'm trying to install php 4.0.6 on Solaris (SunOS 5.8) and iPlanet Web Server Enterprise Edition 6.0. I've compiled and installed everything as described in http://www.php.net/manual/it/install.netscape-enterprise.php. I can start the server, but when I ask for a php page, a segmentation fault occours. Can anybody help me in some way? TNX Stefano Angelici [EMAIL PROTECTED]
Hi everybody. I'm trying to install php 4.0.6 on Solaris (SunOS 5.8) and iPlanet Web Server Enterprise Edition 6.0. I've compiled and installed everything as described in http://www.php.net/manual/it/install.netscape-enterprise.php. I can start the server, but when I ask for a php page, a segmentation fault occours. Can anybody help me in some way? TNX Stefano Angelici [EMAIL PROTECTED]
Hi everybody. I'm trying to install php 4.0.6 on Solaris (SunOS 5.8) and iPlanet Web Server Enterprise Edition 6.0. I've compiled and installed everything as described in http://www.php.net/manual/it/install.netscape-enterprise.php. I can start the server, but when I ask for a php page, a segmentation fault occours. Can anybody help me in some way? TNX Stefano Angelici [EMAIL PROTECTED]
Neil, You must have your LD_LIBRARY_PATH environment variable set (pointing to odbcsdk/lib) before starting apache. Best regards, Andrew Hill Director of Technology Evangelism OpenLink Software http://www.openlinksw.com Universal Data Access & Data Integration Technology Providers > -----Original Message----- > From: Neil Aggarwal [mailto:[EMAIL PROTECTED]] > Sent: Saturday, July 21, 2001 8:44 PM > To: [EMAIL PROTECTED] > Subject: [PHP-INST] Problem loading libiodbc.so.2 > > > Hello: > > I am trying to set-up odbc on my RedHat 7.1 Server. > I want the PHP as a DSO for apache. > > Here is what I did: > > Logged in as root > cd /usr/local > > Downloaded the file ftp://www.openlinksw.com/open40/l3kozzzz.taz > mkdir odbc > cd odbc > tar zxvf ../l3kozzzz.taz > > cd /usr/local > Downloaded the php 4.0.6 source file from http://us4.php.net/downloads.php > > tar zxvf php-4.0.6.tar.gz > cd php-4.0.6 > > ./configure --with-zlib --with-iodbc=/usr/local/odbc/odbcsdk > --with-mysql=/u > sr/local/mysql --with-apxs=/usr/local/apache/bin/apxs > make > make install > > cp php.ini-dist /usr/local/lib/php.ini > vi /etc/ld.so.conf > Added a line: > /usr/local/odbc/odbcsdk/lib > > When I tried to start apache via apachectl restart, I got this message > Starting apache: Syntax error on line 206 of > /usr/local/apache/conf/httpd.conf: > Cannot load /usr/local/apache/libexec/libphp4.so into server: > libiodbc.so.2: > cannot load shared object file: No such file or directory > /usr/local/apache/bin/apachectl startssl: httpd could not be started > > The lib files are existing and they should be loaded via the > /etc/ld.so.conf > file. > Any ideas why apache cant find them? > > Thanks, > Neil. > > -- > Neil Aggarwal > JAMM Consulting, Inc. (972) 612-6056, http://www.JAMMConsulting.com > Custom Internet Development Ecommerce, Java, JSP, servlets, databases > > > -- > 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'm running a INTEL box - RH linux, Apache, PHP - there is no Oracle on it. I want to run a PHP page that has in it $db = ori_logon ("user@motesheen", "pw"); That gets me "undefined function" [ I did the php phpinfo() - not there ] Ok, I'm told download the L&G PHP and reconfigure --with_oci8 ..... and recompile That gets me "Oracle-OCI8 needed libraries not found" I don't have Oracle for Linux - and can't find the "needed libs" So my question is - Where can I get these "needed libs"? Thanks Chuck
Chuck- The Oracle libraries come with the Oracle installation, they are not part of PHP (source). PHP links to the libraries upon compile. You need Oracle for Linux to install Oracle client on your web server. Also, beware of the Oracle pricing model which requires you to license any Oracle DB for the web according to a UPU (universal power unit). The faster your server, the more you will pay. Regards, Jim Thome [EMAIL PROTECTED] >>> Chuck Lidderdale <[EMAIL PROTECTED]> 07/23 8:43 AM >>> I'm running a INTEL box - RH linux, Apache, PHP - there is no Oracle on it. I want to run a PHP page that has in it $db = ori_logon ("user@motesheen", "pw"); That gets me "undefined function" [ I did the php phpinfo() - not there ] Ok, I'm told download the L&G PHP and reconfigure --with_oci8 ..... and recompile That gets me "Oracle-OCI8 needed libraries not found" I don't have Oracle for Linux - and can't find the "needed libs" So my question is - Where can I get these "needed libs"? Thanks Chuck -- 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]
Jim Thome wrote: > Chuck- > > The Oracle libraries come with the Oracle installation, they are not part of PHP >(source). PHP links to the libraries upon compile. You need Oracle for Linux to >install Oracle client on your web server. Also, beware of the Oracle pricing model >which requires you to license any Oracle DB for the web according to a UPU (universal >power unit). The faster your server, the more you will pay. > > Regards, > Jim Thome > [EMAIL PROTECTED] Not the answer I wanted - but that's not your fault - I don't kill messengers - Well I guess I'll just keep doing the RSH scripts. Arcane as it b. Thanks Chuck.
Hello, I'm getting some problems trying to compile PHP+SNMP, my configure line it's : "./configure --with-apache=../apache_1.3.20/ --with-pgsql=/usr/lib/pgsql/ --with-snmp=/usr/local/src/ucd-snmp-4.2.1/ --enable-ucd-snmp-hack --enable-track-vars " and a message after the configure line is showed, saying that's a problems with the parameter line, here is my "debug.log" file : ----DEBUG.LOG---------Start-of-File---------------------------------------- CONFIGURE: './configure' '--with-apache=../apache_1.3.20/' '--with-pgsql=/usr/lib/pgsql/' '--with-snmp=/usr/local/src/ucd-snmp-4.2.1/' '--enable-ucd-snmp-hack' '--enable-track-vars' CC: gcc CFLAGS: -g -O2 CPPFLAGS: -DSUPPORT_UTF8 CXX: CXXFLAGS: INCLUDES: -I/usr/local/src/apache_1.3.20/src/include -I/usr/local/src/apache_1.3.20/src/os/unix -I$(top_builddir)/Zend -I/usr/local/src/php-4.0.6/ext/mysql/libmysql -I/usr/local/src/ucd-snmp-4.2.1//include LDFLAGS: -Wl,-rpath,/lib -L/lib -Wl,-rpath,/usr/local/src/ucd-snmp-4.2.1//lib -L/usr/local/src/ucd-snmp-4.2.1//lib LIBS: -lsnmp -lpq -lcrypt -lresolv -lm -ldl -lnsl -lresolv DLIBS: SAPI: apache PHP_RPATHS: /lib /usr/local/src/ucd-snmp-4.2.1//lib uname -a: Linux linux-laptop.ucpel.tche.br 2.2.17-14cl #1 ter jun 19 23:52:18 EST 2001 i686 unknown gcc -o conftest -g -O2 -DSUPPORT_UTF8 -Wl,-rpath,/lib -L/lib -Wl,-rpath,/usr/local/src/ucd-snmp-4.2.1//lib -L/usr/local/src/ucd-snmp-4.2.1//lib conftest.c -lsnmp -lpq -lcrypt -lresolv -lm -ldl -lnsl -lresolv 1>&5 /usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestInit' /usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestFinal' /usr/local/lib/libsnmp.so: undefined reference to `EVP_md5' /usr/local/lib/libsnmp.so: undefined reference to `HMAC' /usr/local/lib/libsnmp.so: undefined reference to `EVP_sha1' /usr/local/lib/libsnmp.so: undefined reference to `des_cbc_encrypt' /usr/local/lib/libsnmp.so: undefined reference to `des_key_sched' /usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestUpdate' /usr/local/lib/libsnmp.so: undefined reference to `RAND_bytes' /usr/local/lib/libsnmp.so: undefined reference to `des_ncbc_encrypt' collect2: ld returned 1 exit status --------DEBUG.LOG-----------------------------------End-of-File----------- Versions of my system : php-4.0.6 (tar.gz) apache_1.3.20 (tar.gz) ucd-snmp-4.2.1 (tar.gz) postgresql-7.0.2-19cl (RPM Conectiva) glibc-2.1.3-18cl Distribution Conectiva Linux 6.0 ----------------------------------------------------------------------------- What's going on ?? anybody can help me ? ######################################## Catholic University of Pelotas BRAZIL-RS Cleiton Peres Reis - [EMAIL PROTECTED]
I cannot install an updated configuration of PHP-4.0.6 (downloaded source code), onto my Madrake Linux 6.5 installation Apache 1.3.9-7mdk. It worked the first time I ran ./configure with all the options I wanted, and overwrote the PHP3 package installed with the Mandrake distribution. But I then wanted to change the configuration options (to add Oracle support) but could not get the updated version recognised. I deleted the config.cache file ran "make clean" (followed by "make" and "make install"), and restarted Apache, but still the original configuration remains. I then rather brutally deleted all files containing "php" in the filename and unpacked again from source, thinking this would fix it. Unfortunately the shared library "libphp4.so" nor the module "mod_php4.c" were rebuilt. I am not getting any obvious failure message during configuration or making. However, I have subsequently tried to install glibc-devel from the Mandrake distribution and get the log error of: "Installing glibc-devel. install-info: No such file or directory for /usr/info/libc.info.bz2 execution of script failed" and wonder whether this is significant. Does anybody have any ideas.
Hello, I'm getting some problems trying to compile PHP+SNMP, my configure line it's : "./configure --with-apache=../apache_1.3.20/ --with-pgsql=/usr/lib/pgsql/ --with-snmp=/usr/local/src/ucd-snmp-4.2.1/ --enable-ucd-snmp-hack --enable-track-vars " and a message after the configure line is showed, saying that's a problems with the parameter line, here is my "debug.log" file : ----DEBUG.LOG---------Start-of-File---------------------------------------- CONFIGURE: './configure' '--with-apache=../apache_1.3.20/' '--with-pgsql=/usr/lib/pgsql/' '--with-snmp=/usr/local/src/ucd-snmp-4.2.1/' '--enable-ucd-snmp-hack' '--enable-track-vars' CC: gcc CFLAGS: -g -O2 CPPFLAGS: -DSUPPORT_UTF8 CXX: CXXFLAGS: INCLUDES: -I/usr/local/src/apache_1.3.20/src/include -I/usr/local/src/apache_1.3.20/src/os/unix -I$(top_builddir)/Zend -I/usr/local/src/php-4.0.6/ext/mysql/libmysql -I/usr/local/src/ucd-snmp-4.2.1//include LDFLAGS: -Wl,-rpath,/lib -L/lib -Wl,-rpath,/usr/local/src/ucd-snmp-4.2.1//lib -L/usr/local/src/ucd-snmp-4.2.1//lib LIBS: -lsnmp -lpq -lcrypt -lresolv -lm -ldl -lnsl -lresolv DLIBS: SAPI: apache PHP_RPATHS: /lib /usr/local/src/ucd-snmp-4.2.1//lib uname -a: Linux linux-laptop.ucpel.tche.br 2.2.17-14cl #1 ter jun 19 23:52:18 EST 2001 i686 unknown gcc -o conftest -g -O2 -DSUPPORT_UTF8 -Wl,-rpath,/lib -L/lib -Wl,-rpath,/usr/local/src/ucd-snmp-4.2.1//lib -L/usr/local/src/ucd-snmp-4.2.1//lib conftest.c -lsnmp -lpq -lcrypt -lresolv -lm -ldl -lnsl -lresolv 1>&5 /usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestInit' /usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestFinal' /usr/local/lib/libsnmp.so: undefined reference to `EVP_md5' /usr/local/lib/libsnmp.so: undefined reference to `HMAC' /usr/local/lib/libsnmp.so: undefined reference to `EVP_sha1' /usr/local/lib/libsnmp.so: undefined reference to `des_cbc_encrypt' /usr/local/lib/libsnmp.so: undefined reference to `des_key_sched' /usr/local/lib/libsnmp.so: undefined reference to `EVP_DigestUpdate' /usr/local/lib/libsnmp.so: undefined reference to `RAND_bytes' /usr/local/lib/libsnmp.so: undefined reference to `des_ncbc_encrypt' collect2: ld returned 1 exit status --------DEBUG.LOG-----------------------------------End-of-File----------- Versions of my system : php-4.0.6 (tar.gz) apache_1.3.20 (tar.gz) ucd-snmp-4.2.1 (tar.gz) postgresql-7.0.2-19cl (RPM Conectiva) glibc-2.1.3-18cl Distribution Conectiva Linux 6.0 ----------------------------------------------------------------------------- What's going on ?? anybody can help me ? regards. ######################################## Catholic University of Pelotas BRAZIL-RS Cleiton Peres Reis - [EMAIL PROTECTED]
Hello: I am trying to use the iodbc driver to connect to an orable database running on an NT server. Here is the code(test.php): <? putenv("ODBCINSTINI=/usr/local/odbc/odbcsdk/doc/odbcinst.ini"); putenv("ODBCINI=/usr/local/odbc/odbcsdk/doc/odbc.ini"); $connect = odbc_connect("dbName", "userName", "password"); ?> I get this error message: Warning: SQL error: [OpenLink][ODBC]RPC: Unknown host, SQL state 08004 in SQLConnect in test.php on line 4 Here is what I did: cd /usr/local lynx ftp://www.openlinksw.com/open40/l3kozzzz.taz mkdir odbc cd odbc tar zxvf ../l3kozzzz.taz cd /usr/local/php-4.0.6 ./configure --with-zlib --with-iodbc=/usr/local/odbc/odbcsdk --with-mysql=/u sr/local/mysql --with-apxs=/usr/local/apache/bin/apxs make make install cp php.ini-dist /usr/local/lib/php.ini cp /usr/local/odbc/odbcsdk/lib/* /usr/lib vi /usr/local/odbc/odbcsdk/doc/odbc.ini and edited it to have this: [ODBC Data Sources] OpenLink = OpenLink Generic ODBC Driver [OpenLink] Driver = /usr/lib/oplodbc.so.1 Description = Sample OpenLink MT DSN Host = xx.xx.xx.xx <-- This is the IP address of my NT server ServerType = Oracle 8.1 FetchBufferSize = 99 UserName = userName <-- I changes the db name, user, and pass Password = password Database = dbName ServerOptions = ConnectOptions = Options = ReadOnly = no [Default] Driver = /usr/lib/oplodbc.so.1 vi /usr/local/odbc/odbcsdk/doc/odbcinst.ini and made its content into: [ODBC Drivers] OpenLink Generic ODBC Driver = Installed [OpenLink Generic ODBC Driver] Driver = /usr/lib/oplodbc.so.1 Setup = /usr/lib/oplodbc.so.1 Any ideas why I am getting a hostname error with an IP address? Thanks, Neil. -- Neil Aggarwal JAMM Consulting, Inc. (972) 612-6056, http://www.JAMMConsulting.com Custom Internet Development Ecommerce, Java, JSP, servlets, databases