php-install Digest 8 Sep 2001 15:13:17 -0000 Issue 449 Topics (messages 4231 through 4245): PHP 4.0.6 printer functions... 4231 by: Dave 4232 by: Jon Wagoner TSRM PROBLEMS W/ MAKE 4233 by: Gordon D. Principi PHP not configured with MySQL. How to fix? 4234 by: Greg Re: php configure problem 4235 by: Steve Cayford RH7.1-PHP4.06-Apache1.3.20 problems !!! 4236 by: GoGi 4237 by: GoGi 4238 by: Mike Eheler 4239 by: GoGi 4240 by: Mike Eheler Problem in installing php-4.0.6 with Apache_1.3.20 on a Unix account 4241 by: Xiaopeng Hu 4242 by: Xiaopeng Hu Errors in php installation under unix 4243 by: Xiaopeng Hu configuring php with curl 4244 by: Bob Re: Marketing Request 4245 by: () 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] ----------------------------------------------------------------------
PHP GROUP: I installed the latest version of php on our web server hoping to be able to use the printer functions, however, they are not working. Not sure if it is just built-in or if I was supposed to have a config setting to include the printer functions (?). Here's what we get on the php page with printer functions: Fatal error: Call to undefined function: printer_open() ... The system: Linux RedHat 6.2, Apache, PHP 4.0.6 The PHP config: ./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/ Anyone have experience with the printer functions? Thanks! - D
On the main printer page (http://www.php.net/manual/en/ref.printer.php) it says the printer functions are only available under Windows. -----Original Message----- From: Dave [mailto:[EMAIL PROTECTED]] Sent: Friday, September 07, 2001 9:28 AM To: [EMAIL PROTECTED] Subject: [PHP-INST] PHP 4.0.6 printer functions... PHP GROUP: I installed the latest version of php on our web server hoping to be able to use the printer functions, however, they are not working. Not sure if it is just built-in or if I was supposed to have a config setting to include the printer functions (?). Here's what we get on the php page with printer functions: Fatal error: Call to undefined function: printer_open() ... The system: Linux RedHat 6.2, Apache, PHP 4.0.6 The PHP config: ./configure --with-apxs=/usr/sbin/apxs --with-mysql=/usr/ Anyone have experience with the printer functions? Thanks! - D -- 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]
Help!, I installed Apache using the .depot tar ball that I got from Apache (1.3.20-sd-10.20). ./configure --with-mysql --with-aps=/opt/apache/bin/apxs make The configure completed okay; when I ran make, I ended up with an error after it entered the TSRM directory. The error seems to be related to a mote_t that is promoted to "int" when passed through '...' tsrm_virtual_cwd.lo (error 1). Does anyone know how to get around this? Or is there an HP UX 10.20 binary around that someone knows of? Thanks, G.
I installed MySQL3.23.41-1 (from an RPM) *AFTER* my original Linux install of Apache1.3.14 and PHP4.04pl1 (from the Red Hat 7.1 CDs). PHP works and MySql works. However, they're not working together. <?php phpinfo(); ?> spits out a list of interesting stuff, including the configure command: './configure' '--prefix=/usr' '--with-config-file-path=/etc' '--disable-debug' '--enable-pic' '--enable-shared' '--enable-inline-optimization' '--with-apxs=/usr/sbin/apxs' '--with-exec-dir=/usr/bin' '--with-regex=system' '--with-gettext' '--with-gd' '--with-jpeg-dir=/usr' '--with-png' '--with-zlib' '--with-db2' '--with-db3' '--with-gdbm' '--enable-debugger' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-yp' '--enable-ftp' '--enable-wddx' '--without-mysql' '--without-oracle' '--without-oci8' '--with-xml' which has "--without-mysql" in there towards the end. I assume this is why I can't use php to connect to mysql databases. I got the following error with my first connect function: Fatal error: Call to undefined function: mysql_pconnect() in /var/www/html/ushl/index.php on line 8 Do I have to reconfigure PHP with mysql? Since I installed everything using RPM, I'm not sure what directory I have to be in to restate the ./configure command. Also, should I use the entire configure command shown above or can I just do it with just: ./configure --with-mysql=/path/to/mysql Finally, how can I tell if PHP was installed as a module of Apache or as a CGI interpreter and does it matter for configuring PHP to work with MySQL. Thanks, Greg Please remove the -NOSPAM when replying.
I'm not much more than a newbie myself, so caveat lector and all. The config.log is usually full of errors, that's how it works. configure compiles and runs a whole slew of little programs to see which ones work or don't work to give it a picture of your machine. The important bit is the last error before it stopped. In this case I'm guessing that would be "/usr/bin/ld: cannot find -lgdbm". So it can't find the gdbm library that you're requesting. Do you have it installed? If you do, is the library directory listed in /etc/ld.so.conf (assuming this is linux) and have you run ldconfig (I forget if that's the right name exactly) since you installed it? These two steps are necessary to put the library directory in ld's search path. Or you could drop the --with-gdbm and see how it goes. -Steve On Friday, September 7, 2001, at 01:17 PM, Bob wrote: > Hi Steve > > I'm a newbie so didn't know about the config.log file. Thanks for the > hint. > I have errors throughout the config.log and so I just included the whole > thing. I've been searching through the web for info on this and > reading up on > it. When configuring, does it matter what order my options are > listed? Maybe > I'm grabbing at straws. The same php version is installed and I'm just > using > the ./configure found in phpinfo() so I don't know what I"m doing wrong. > > > This file contains any messages produced by compilers while > running configure, to aid debugging if configure makes a mistake. > > configure:1359: checking for a BSD compatible install > configure:1412: checking whether build environment is sane > <- snipped -> > configure:13371: checking for gdbm_open in -lgdbm > configure:13390: gcc -o conftest -g -O2 -DLINUX=2 -DMOD_SSL=207101 > -DEAPI > -DUSE_EXPAT -L/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib > -Wl,-rpath,/usr/local/ssl/lib -L/usr/local/ssl/lib conftest.c -lgdbm > -lcurl > -ldl -lcrypto -lssl -lcurl -lz -lcrypt -lssl -lssl -lcrypto -lresolv > -lm -ldl > -lnsl -lresolv 1>&5 > /usr/bin/ld: cannot find -lgdbm > collect2: ld returned 1 exit status > configure: failed program was: > #line 13379 "configure" > #include "confdefs.h" > /* Override any gcc2 internal prototype to avoid an error. */ > /* We use char because int might match the return type of a gcc2 > builtin and then its argument prototype would still apply. */ > char gdbm_open(); > > int main() { > gdbm_open() > ; return 0; } > > > Steve Cayford wrote: > >> Does config.log have anything more about the error? >> >> -steve >> >> On Friday, September 7, 2001, at 06:28 AM, Bob wrote: >> >>> Hi everyone, if you can help me with this I would really appreciate >>> it. >>> >>> If I configure php with this then it works: >>> >>> # ./configure >>> --with-apxs=/usr/sbin/apxs >>> --without-mysql >>> --with-openssl=/usr >>> --with-curl=/usr/local/lib >>> >>> But if I configure with this it gives me "configure: error: cannot >>> find >>> necessary header file(s)" How can I narrow this down to find out >>> which >>> header files it's talking about? >>> >>> # ./configure >>> --prefix=/usr >>> --with-config-file-path=/etc >>> --disable-debug >>> --enable-pic >>> --enable-shared >>> --enable-inline-optimization >>> --with-apxs=/usr/sbin/apxs >>> --with-exec-dir=/usr/bin >>> --with-regex=system >>> --with-zlib >>> --with-gdbm >>> --with-gd >>> --with-jpeg-dir=/usr >>> --with-png >>> --with-ttf >>> --with-layout=GNU >>> --with-openssl=/usr >>> --enable-debugger >>> --enable-safe-mode >>> --enable-sockets >>> --enable-sysvsem=shared >>> --enable-sysvshm=shared >>> --enable-track-vars >>> --enable-magic-quotes >>> --enable-mem-limit >>> --enable-yp >>> --enable-ftp >>> --enable-wddx >>> --without-mysql >>> --with-imap=shared >>> --without-unixODBC >>> --without-oracle >>> --without-oci8 >>> --with-xml >>> --with-curl >>> >>> [snip] >>> Configuring extensions >>> checking if the location of ZLIB install directory is defined... no >>> checking whether to include ZLIB support... yes >>> checking for gzgets in -lz... yes >>> checking for fopencookie... yes >>> checking for ASPELL support... no >>> checking for bc style precision math functions... no >>> checking for BZip2 support... no >>> checking whether to enable calendar conversion support... no >>> checking CCVS Support... no >>> checking whether to include cpdflib support... no >>> checking whether to include crack support... no >>> checking whether to enable ctype support... no >>> checking for CURL support... yes >>> checking for CURL in default path... found in /usr/local >>> checking for cURL greater than or equal to 7.8... libcurl 7.8.1 >>> checking for curl_easy_perform in -lcurl... yes >>> checking for CyberCash support... no >>> checking for cybermut support... no >>> checking whether to include old xDBM support... no >>> checking whether to enable DBA... no >>> checking for gdbm_open in -lgdbm... no >>> configure: error: cannot find necessary header file(s) >>> [this is where it stops] >>> >>> >>> _________________________________________________________ >>> Do You Yahoo!? >>> Get your free @yahoo.com address at http://mail.yahoo.com >>> >>> >>> -- >>> 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: php-list- >>> [EMAIL PROTECTED] >>> > > > _________________________________________________________ > Do You Yahoo!? > Get your free @yahoo.com address at http://mail.yahoo.com >
hy all , a have big problem with PHP files on my new RH box - where is RH 7.1 - php 4.0.6 -Apache 1.3.20 - modssl - openssl i compile stuff like taht : first modssl an openssl then apache: SSL_BASE=../openssl..... ./configure --prefix=/usr/local/apache --enable-ssl php : ./configure --with-apxs=/usr/local/apache/bin/apxs --with-imap=/usr/lib --with-mysql=/usr/local/mysql --with-zlib --with-gd --with-freetype .... then make & make install then i uncomment AddType for php in Apache's httpd.conf and start it. Then look ok . BUT !!! when i look at section where are aded module then i see that php4 module is in <IfDefine SSL></IfDefineSSL> but only mod_ssl must be in - so i change this and restart apache. Then i get error like "cannot load module in libexec/libphp4.c :undefined mx_driver what is that ??? i got another box with RG 6.2 and php4.0.5 -apache 1.3.19 -mysql-modssl-openssl and everything works just fine ! here i'm wasting 4 hours of time ;(( CAN ANYONE HELP ME !! tnx & regards
hy all , a have big problem with PHP files on my new RH box - where is RH 7.1 - php 4.0.6 -Apache 1.3.20 - modssl - openssl i compile stuff like taht : first modssl an openssl then apache: SSL_BASE=../openssl..... ./configure --prefix=/usr/local/apache --enable-ssl php : ./configure --with-apxs=/usr/local/apache/bin/apxs --with-imap=/usr/lib --with-mysql=/usr/local/mysql --with-zlib --with-gd --with-freetype .... then make & make install then i uncomment AddType for php in Apache's httpd.conf and start it. Then look ok . BUT !!! when i look at section where are aded module then i see that php4 module is in <IfDefine SSL></IfDefineSSL> but only mod_ssl must be in - so i change this and restart apache. Then i get error like "cannot load module in libexec/libphp4.c :undefined mx_driver what is that ??? i got another box with RG 6.2 and php4.0.5 -apache 1.3.19 -mysql-modssl-openssl and everything works just fine ! here i'm wasting 4 hours of time ;(( CAN ANYONE HELP ME !! tnx & regards GoGi
I've had that problem many times. It comes from compiling apache with IMAP support. It's a real bugger. I've had to disable IMAP support on my development machine, and instead create development branches on the production server (which somehow miraculously compiled and runs fine with Cyrus IMAP) to do IMAP-related development. Mike GoGi wrote: >hy all , >a have big problem with PHP files on my new RH box - where is RH 7.1 - php >4.0.6 -Apache 1.3.20 - modssl - openssl >i compile stuff like taht : > >first modssl an openssl >then > >apache: >SSL_BASE=../openssl..... >./configure >--prefix=/usr/local/apache >--enable-ssl > >php : >./configure >--with-apxs=/usr/local/apache/bin/apxs >--with-imap=/usr/lib >--with-mysql=/usr/local/mysql >--with-zlib >--with-gd >--with-freetype >.... >then make & make install > >then i uncomment AddType for php in Apache's httpd.conf and start it. >Then look ok . >BUT !!! when i look at section where are aded module then i see that php4 >module is in <IfDefine SSL></IfDefineSSL> >but only mod_ssl must be in - so i change this and restart apache. >Then i get error like >"cannot load module in libexec/libphp4.c >:undefined mx_driver > >what is that ??? >i got another box with RG 6.2 and php4.0.5 -apache >1.3.19 -mysql-modssl-openssl and everything works just fine ! >here i'm wasting 4 hours of time ;(( > >CAN ANYONE HELP ME !! > >tnx & regards >GoGi > > > >
so waht i must to do ? take cvs snapshot of PHP or replace all with old stuff "apache 1.3.19 - php 4.0.5 " and so on ? or what ? anyway what is mx_driver ? ;) never heard of that on compiling this stuff about 1 year ;)) i really need woking this all ! tnx for helping me out GoGi "Mike Eheler" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I've had that problem many times. It comes from compiling apache with > IMAP support. > > It's a real bugger. I've had to disable IMAP support on my development > machine, and instead create development branches on the production > server (which somehow miraculously compiled and runs fine with Cyrus > IMAP) to do IMAP-related development. > > Mike > > GoGi wrote: > > >hy all , > >a have big problem with PHP files on my new RH box - where is RH 7.1 - php > >4.0.6 -Apache 1.3.20 - modssl - openssl > >i compile stuff like taht : > > > >first modssl an openssl > >then > > > >apache: > >SSL_BASE=../openssl..... > >./configure > >--prefix=/usr/local/apache > >--enable-ssl > > > >php : > >./configure > >--with-apxs=/usr/local/apache/bin/apxs > >--with-imap=/usr/lib > >--with-mysql=/usr/local/mysql > >--with-zlib > >--with-gd > >--with-freetype > >.... > >then make & make install > > > >then i uncomment AddType for php in Apache's httpd.conf and start it. > >Then look ok . > >BUT !!! when i look at section where are aded module then i see that php4 > >module is in <IfDefine SSL></IfDefineSSL> > >but only mod_ssl must be in - so i change this and restart apache. > >Then i get error like > >"cannot load module in libexec/libphp4.c > >:undefined mx_driver > > > >what is that ??? > >i got another box with RG 6.2 and php4.0.5 -apache > >1.3.19 -mysql-modssl-openssl and everything works just fine ! > >here i'm wasting 4 hours of time ;(( > > > >CAN ANYONE HELP ME !! > > > >tnx & regards > >GoGi > > > > > > > > > >
Correction: it comes from compiling PHP, not apache, with IMAP support. I only ever have problems compiling with Cyrus IMAP. Compiling with WU IMAPD works fine for me, but you gotta make sure that all the dev packages, etc, are installed.. Mike Mike Eheler wrote: > I've had that problem many times. It comes from compiling apache with > IMAP support. > > It's a real bugger. I've had to disable IMAP support on my development > machine, and instead create development branches on the production > server (which somehow miraculously compiled and runs fine with Cyrus > IMAP) to do IMAP-related development. > > Mike > > GoGi wrote: > >> hy all , >> a have big problem with PHP files on my new RH box - where is RH 7.1 >> - php >> 4.0.6 -Apache 1.3.20 - modssl - openssl >> i compile stuff like taht : >> >> first modssl an openssl >> then >> >> apache: >> SSL_BASE=../openssl..... >> ./configure >> --prefix=/usr/local/apache >> --enable-ssl >> >> php : >> ./configure >> --with-apxs=/usr/local/apache/bin/apxs >> --with-imap=/usr/lib >> --with-mysql=/usr/local/mysql >> --with-zlib >> --with-gd >> --with-freetype >> .... >> then make & make install >> >> then i uncomment AddType for php in Apache's httpd.conf and start it. >> Then look ok . >> BUT !!! when i look at section where are aded module then i see that >> php4 >> module is in <IfDefine SSL></IfDefineSSL> >> but only mod_ssl must be in - so i change this and restart apache. >> Then i get error like >> "cannot load module in libexec/libphp4.c >> :undefined mx_driver >> >> what is that ??? >> i got another box with RG 6.2 and php4.0.5 -apache >> 1.3.19 -mysql-modssl-openssl and everything works just fine ! >> here i'm wasting 4 hours of time ;(( >> >> CAN ANYONE HELP ME !! >> >> tnx & regards >> GoGi >> >> >> >> > >
I am new to php and to unix system. I've set an Apache httpd server and php engine on several Windows 2000 server, which are running well. However, I got problems in installing php-4.0.6 with apache_1.3.20 on Solaris2.7. I've tested the Apache httpd server and found it worked fine. Now, I unzip the php-4.0.6.tar.gz to a direcroty "/home/myAccount/webserver". I entered the command "./configure --with-apache=/home/myAccount/webserver/apache", and got the following warning: "You chose to compile PHP with the built-in MySQL support. If you are compiling a server module, and intend to use other server modules that also use MySQL you must not rely on PHP's built-in MySQL support, and instead build it with your local MySQL support files, by adding --with-mysql=/path/to/mysql to your configure line." Since I don't use MySQL as a database, I just ignore this warning and continue to enter the command "make". On the last few lines, I found this warning: "make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving direcroty '/home/myAccount/apache/php-4.0.6' Making all in pear make[1]: Entering directory '/home/myAccount/apache/php-4.0.6/pear' make[1]: Leaving directory '/home/myAccount/apache/php-4.0.6/pear' " I don't know what this warning mean and how to get rid of it. Now, I just assume that this warning is not fatal and neglectible. I entered the command "make install". It failed to create a lot of files under /usr/local/lib/php/...". Also, the last few lines shows the following error message: "make[2]: *** [install-data-local] Error 2 make[2]: Leaving directory '/home/myAccount/webserver/php-4.0.6/pear' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory 'home/myAccount/webserver/php-4.0.6/pear' make: *** [install-recursive] Error 1" One thing I want to be clear is that I only want to install and php engine under my account. Any idea on how to fix it? Thanks a lot.
Any one has any experience in installing php_4.0.6 with Apache_1.3.20 under a Unix account? Can you show me the steps How? Currently, I unzipped the php-4.0.6.tar.Z to a directory "/home/myAccount/webserver/php-4.0.6". The Apache httpd server was installed on "/home/myAccount/webserver/apache". I've tried the following commands: 1.)% ./configure --with-apache=/home/myAccount/webserver/apache //warning on MySQL 2.)% make //warning: Clock skew detected 3.)% make install //failed in the middle If you installed php under a unix account successfully, can you share your experience? Thanks.
I am new to php and to unix system. I've set an Apache httpd server and php engine on several Windows 2000 server, which are running well. However, I got problems in installing php-4.0.6 with apache_1.3.20 on Solaris2.7. I've tested the Apache httpd server and found it worked fine. Now, I unzip the php-4.0.6.tar.gz to a direcroty "/home/myAccount/webserver". I entered the command "./configure --with-apache=/home/myAccount/webserver/apache", and got the following warning: "You chose to compile PHP with the built-in MySQL support. If you are compiling a server module, and intend to use other server modules that also use MySQL you must not rely on PHP's built-in MySQL support, and instead build it with your local MySQL support files, by adding --with-mysql=/path/to/mysql to your configure line." Since I don't use MySQL as a database, I just ignore this warning and continue to enter the command "make". On the last few lines, I found this warning: "make[1]: warning: Clock skew detected. Your build may be incomplete. make[1]: Leaving direcroty '/home/myAccount/apache/php-4.0.6' Making all in pear make[1]: Entering directory '/home/myAccount/apache/php-4.0.6/pear' make[1]: Leaving directory '/home/myAccount/apache/php-4.0.6/pear' " I don't know what this warning mean and how to get rid of it. Now, I just assume that this warning is not fatal and neglectible. I entered the command "make install". It failed to create a lot of files under /usr/local/lib/php/...". Also, the last few lines shows the following error message: "make[2]: *** [install-data-local] Error 2 make[2]: Leaving directory '/home/myAccount/webserver/php-4.0.6/pear' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory 'home/myAccount/webserver/php-4.0.6/pear' make: *** [install-recursive] Error 1" One thing I want to be clear is that I only want to install and php engine under my account. Any idea on how to fix it? Thanks a lot.
okay i've been trying to reconfigure php with curl as an option. i have curl installed and have problems configuring php so i asked my webhost if they could reconfigure php exactly the same but just add --with-curl and this is what they said. is this correct? i can't even find php.conf >> Response: You cant reconfigure php. You can work with php.conf but you cant change the way its compiled without removing and and reinstalling it. We dont recommend this since it will take you out of our upgrade path for the php service. But you can do it without hurting your server. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
Below is the result of your feedback form. It was submitted by () on Saturday, September 8, 2001 at 16:12:02 --------------------------------------------------------------------------- message: ATTENTION: ANY SERIOUS NETWORK MARKETER TAKE A LOOK AT THE FOLLOWING OPPORTUNITIES I CAME ACROSS!! IF YOU PLUG INTO THEIR PROVEN SYSTEM, THEY GUARANTEE YOU SUCCESS, AND PROVIDE YOU WITH FREE LEADS TO BUILD YOUR GROUP!! http://www.geocities.com/wealthwithus2002 Please Email Us Directly At [EMAIL PROTECTED] If You Experience Any Problems With The Site As It Is Very Popular And Sometimes Very Busy. **YOU MUST INCLUDE YOUR NAME AND PHONE NUMBER TO RECEIVE A RESPONSE** ALSO - If You Are An Aol Member, You Can View The Site ButMust Email Us Directly As We Are Not Able To Receive Your Requests Through The Site. ---------------------------------------------------------------------------