php-install Digest 20 Oct 2001 15:25:13 -0000 Issue 514
Topics (messages 4669 through 4676): PHP-4.0.6 compilation error 4669 by: Paul pdflib 4670 by: Brent Meshier 4671 by: Mark Newnham PHP/CGI problem: #!/path/php at top of CGI script appears in output 4672 by: Pour Mailings Lists - pass huitre 4673 by: Curt A. Gilman 4674 by: Pour Mailings Lists - pass huitre 4675 by: Pour Mailings Lists - pass huitre 4676 by: Pour Mailings Lists - pass huitre 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'm trying to build php.4.0.6 from source and the first I get an error while using the --with-gd switch so I took that out and it stopped complaining after I reconfigured. Then I did make and I get this error: /usr/bin/ld: cannot find -lgd collect2: ld returned 1 exit status make[1]: *** [libphp4.la] Error 1 make[1]: Leaving directory `/home/tuxpow3r/php-4.0.6' make: *** [all-recursive] Error 1 My debug.log file is pasted below, please anyone have a look and hopefully you can help me. Thanks in advance. CONFIGURE: './configure' '--with-mysql' '--with-apxs=/usr/sbin/apxs' '--en able-bcmath' '--enable-trans-sid' '--with-config-file-path=/etc' '--enable-magic-quotes' '--enable-track-vars' '--enable-ftp' '--enable-calendar' '--prefix=/usr' '--with-exec-d ir=/usr/bin' CC: gcc CFLAGS: -g -O2 CPPFLAGS: -DLINUX=22 -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DSUPPORT_UTF8 CXX: CXXFLAGS: INCLUDES: -I/var/www/include -I$(top_builddir)/Zend -I/home/tuxpow3r/php -4.0.6/ext/m ysql/libmysql LDFLAGS: LIBS: -lgd -lcrypt -lresolv -lm -ldl -lnsl -lresolv DLIBS: SAPI: apache PHP_RPATHS: uname -a: Linux thresholdev 2.4.3-20mdk #1 Sun Apr 15 23:03:10 CEST 2001 i586 unknown gcc -o conftest -g -O2 -DLINUX=22 -DNO_DBM_REWRITEMAP -DUSE_HSREGEX -DSUPPORT_UTF8 con ftest.c -lgd -lcrypt -lresolv -lm -ldl -lnsl -lresolv 1>&5 /usr/bin/ld: cannot find -lgd collect2: ld returned 1 exit status
I recently upgraded to php 4.0.6 and can no longer get pdflib working. PHP compiled perfectly with pdflib 4.0.1, yet when I load apache it gives me the following error: PHP Warning: Invalid library (maybe not a PHP library) 'libpdf_php.so' in Unknown on line 0 Any ideas? Is pdflib broken with 4.0.6 ?? --Brent
it sounds like you need to upgrade pdflib > -----Original Message----- > From: Brent Meshier [mailto:[EMAIL PROTECTED]] > Sent: Friday, October 19, 2001 1:10 PM > To: [EMAIL PROTECTED] > Subject: [PHP-INST] pdflib > > > I recently upgraded to php 4.0.6 and can no longer get pdflib > working. PHP > compiled perfectly with pdflib 4.0.1, yet when I load apache > it gives me the > following error: > > PHP Warning: Invalid library (maybe not a PHP library) > 'libpdf_php.so' in > Unknown on line 0 > > Any ideas? Is pdflib broken with 4.0.6 ?? > > --Brent > > > -- > 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] >
Hi, I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6 I've installed PHP in Apache, it works very well I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think it's the problem) but I've a problem. In CGI mode, the path of PHP is always written at the top of the result I'll take for example this script : ---- #!/usr/local/bin/php <? print "Hello World"; ?> ---- When the file is called by the browser, the result is : ---- #!/usr/local/bin/php Hello World ---- Does someone know the problem and the solution ? Have I forgotten something ? Thanks for your help Philippe
Philippe, Does the file name end in .php or something similar? If so, it is probably being handled by the Apache PHP module, since you have it installed, and not by the CGI. You could try changing the name to .cgi or something else and see what happens. Also, have you remembered to put the file in executable mode with chmod? for example: chmod a+x foo.bar Is it in a cgi-bin folder or similar folder where scripts will be executed? Do other CGI scripts in the same folder work? __________ Curt A. Gilman Richmond, Virginia, USA [EMAIL PROTECTED] "Pour Mailings Lists - Pass Huitre" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi, > I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6 > I've installed PHP in Apache, it works very well > I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think it's > the problem) but I've a problem. > In CGI mode, the path of PHP is always written at the top of the result > > I'll take for example this script : > ---- > #!/usr/local/bin/php > <? > print "Hello World"; > ?> > ---- > > When the file is called by the browser, the result is : > ---- > #!/usr/local/bin/php > Hello World > ---- > > Does someone know the problem and the solution ? > Have I forgotten something ? > > Thanks for your help > > Philippe >
Hi, My file end in .cgi, it's in 777 It isn't handled by Apache because it don't work if I don't put #!/usr/local/bin/php It's in cgi-bin directory, and yes others cgi languages work well (I've already tested perl) Philippe Curt A. Gilman writes: > Philippe, > > Does the file name end in .php or something similar? If so, it is probably > being handled by the Apache PHP module, since you have it installed, and not > by the CGI. You could try changing the name to .cgi or something else and > see what happens. > > Also, have you remembered to put the file in executable mode with chmod? > > for example: chmod a+x foo.bar > > Is it in a cgi-bin folder or similar folder where scripts will be executed? > Do other CGI scripts in the same folder work? > > __________ > Curt A. Gilman > Richmond, Virginia, USA > [EMAIL PROTECTED] > > "Philippe" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >> Hi, >> I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6 >> I've installed PHP in Apache, it works very well >> I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think > it's >> the problem) but I've a problem. >> In CGI mode, the path of PHP is always written at the top of the result >> >> I'll take for example this script : >> ---- >> #!/usr/local/bin/php >> <? >> print "Hello World"; >> ?> >> ---- >> >> When the file is called by the browser, the result is : >> ---- >> #!/usr/local/bin/php >> Hello World >> ---- >> >> Does someone know the problem and the solution ? >> Have I forgotten something ? >> >> Thanks for your help >> >> Philippe >> > >
Hi, A small update, the file is in 755 (otherwise Suexec don't let the script work) Philippe Philippe writes: > Hi, > My file end in .cgi, it's in 777 > It isn't handled by Apache because it don't work if I don't put > #!/usr/local/bin/php > It's in cgi-bin directory, and yes others cgi languages work well (I've > already tested perl) > > Philippe > > Curt A. Gilman writes: > >> Philippe, >> >> Does the file name end in .php or something similar? If so, it is >> probably >> being handled by the Apache PHP module, since you have it installed, and >> not >> by the CGI. You could try changing the name to .cgi or something else and >> see what happens. >> >> Also, have you remembered to put the file in executable mode with chmod? >> >> for example: chmod a+x foo.bar >> >> Is it in a cgi-bin folder or similar folder where scripts will be >> executed? >> Do other CGI scripts in the same folder work? >> >> __________ >> Curt A. Gilman >> Richmond, Virginia, USA >> [EMAIL PROTECTED] >> >> "Philippe" <[EMAIL PROTECTED]> wrote in message >> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... >>> Hi, >>> I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6 >>> I've installed PHP in Apache, it works very well >>> I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think >> it's >>> the problem) but I've a problem. >>> In CGI mode, the path of PHP is always written at the top of the result >>> >>> I'll take for example this script : >>> ---- >>> #!/usr/local/bin/php >>> <? >>> print "Hello World"; >>> ?> >>> ---- >>> >>> When the file is called by the browser, the result is : >>> ---- >>> #!/usr/local/bin/php >>> Hello World >>> ---- >>> >>> Does someone know the problem and the solution ? >>> Have I forgotten something ? >>> >>> Thanks for your help >>> >>> Philippe >>> >> >> > > > -- > PHP General 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] >
Hi, I'll synthetize the problem with the response I have givven to Curt. I've FreeBSD 4.2/Apache 1.3.9/PHP 4.0.6 I've installed PHP in Apache, it works very well I need to have too PHP 4.0.6 in CGI mode (With Suexec but I don't think it's the problem) but I've a problem. In CGI mode, the path of PHP is always written at the top of the result I'll take for example this script which is in the cgi-bin with the execute mod (755), the extension is .cgi : ---- #!/usr/local/bin/php <? print "Hello World"; ?> ---- When the file is called by the browser, the result is : ---- #!/usr/local/bin/php Hello World ---- Does someone know the problem and the solution ? Have I forgotten something ? I think that's a misconfiguration in PHP Thanks for your help Philippe