php-install Digest 8 May 2001 01:09:58 -0000 Issue 297

Topics (messages 3051 through 3059):

freebsd3 "bad magic number" error
        3051 by: Peter Vysotin

Re: php-install Digest 7 May 2001 12:36:13 -0000 Issue 296
        3052 by: Brian.J.Mauter

Re: Cant't not Start Apache with PHP.
        3053 by: Jonathan Hilgeman
        3058 by: Jonathan Hilgeman

Problems with PHP-4.05, Apache, etc. on Sol7 using gcc-2.95.3
        3054 by: E A Vazquez Jr

Help with Mime and php
        3055 by: Tobbe
        3056 by: Philip Snyder

problems compiling php \as apache module
        3057 by: Paulo Vinícius Vitto Ruthes

Still having problems with fdftk
        3059 by: Jon Peccarelli

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,

I want to install PHP 4.0.5 on FreeBSD 3 using DSO, Apache version 1.3.4:
./configure --with-apxs=/usr/local/sbin/apxs --with-mysql
make
make install
It's all works OK, but when I try to restart Apache, I receive "bad magic
number" error with libphp4.so module.
I think it's a file format error. I've found "ELF" signature inside
libphp4.so file. Probably my linker created an executable instead of shared
object? How can I fix it? Should I turn on some options in configure script
or try something else?

WBR,
Peter Vysotin







You need to install the Oracle 8i client on your Apache/PHP machine.  It
has the libraries necessary to compile PHP.  Then after everything
compiles, you can set your tnsnames.ora file to point over to the real
database on the other machine.  Or you can just build a connection string
like this:

// Setup DSN
$db = 
"(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=x.x.x.x)(PORT=1521))(CONNECT_DATA=(SID=TEST)))";

// Make connection
OCILogon("scott", "tiger", $db);

Where x.x.x.x is the IP of the database machine.

This is how I did it.  I had Apache/PHP on Linux and Oracle on NT.
(Blech!)

HTH,


Brian Mauter
[EMAIL PROTECTED]







Search the Net for a program called Sudo - it will allow any user, when they
are set up for certain commands, to run those certain commands as root. I
use it for rebooting Apache, the name server, etc...

Jonathan

-----Original Message-----
From: Pablo Sabatino [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 06, 2001 11:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Cant't not Start Apache with PHP.


Hello!!
I try install php-4.0.3pl1 on Solaris 2.7 and Apache 1.3.14 .
I can complete the installation without a error.
But When I start the apache (httpd start) I got the error in below:

wmail01# /usr/local/apache/bin >./apachectl start
Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:
/usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/libphp4.so: symbol ldap_unbind_s: referenced
symbol not found
./apachectl start: httpd could not be started
wmail01# /usr/local/apache/bin >


Please, help me!!
How can resolve it ???



wmail01# /usr/local/apache/bin >./httpd -l
Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_so.c
  mod_setenvif.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
wmail01# /usr/local/apache/bin >


Thanks, pablo.




Search the Net for a program called Sudo - it will allow any user, when they
are set up for certain commands, to run those certain commands as root. I
use it for rebooting Apache, the name server, etc...

Jonathan

-----Original Message-----
From: Pablo Sabatino [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 06, 2001 11:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Cant't not Start Apache with PHP.


Hello!!
I try install php-4.0.3pl1 on Solaris 2.7 and Apache 1.3.14 .
I can complete the installation without a error.
But When I start the apache (httpd start) I got the error in below:

wmail01# /usr/local/apache/bin >./apachectl start
Syntax error on line 207 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1:
/usr/local/apache/bin/httpd: fatal: relocation error: file
/usr/local/apache/libexec/libphp4.so: symbol ldap_unbind_s: referenced
symbol not found
./apachectl start: httpd could not be started
wmail01# /usr/local/apache/bin >


Please, help me!!
How can resolve it ???



wmail01# /usr/local/apache/bin >./httpd -l
Compiled-in modules:
  http_core.c
  mod_env.c
  mod_log_config.c
  mod_mime.c
  mod_negotiation.c
  mod_status.c
  mod_include.c
  mod_autoindex.c
  mod_dir.c
  mod_cgi.c
  mod_asis.c
  mod_imap.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_access.c
  mod_auth.c
  mod_so.c
  mod_setenvif.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
wmail01# /usr/local/apache/bin >


Thanks, pablo.




OK, I searched back to May of last year and didn't find anything 
relevant to this, so here goes.

I have a Solaris 7 server.

I am using the gcc-2.95.3 compiler

I have the following supporting tools installed:
GNU -
autoconf v2.13
bc v1.06
binutils v2.11
bison v2.18
gperf v2.72
m4 v1.4
make v2.79.1
patch v2.54
tar v1.13
texinfo 4.0

MISC - 
perl v5.6.1
zlib v1.1.3

I have successfully compiled OpenSSL v0.9.7, OpenSSH 2.5.2p2 and Apache 
1.3.19 with the Apache-SSL options.

On adding PHP I first tried the shared object libraries using the --
with-apxs option.  However, the PHP engine would not start.

So I went back to try the static libraries, read the INSTALL and the 
F.A.Q. (section 6.9 - stating that the php4 directory is automagically 
generated), which both state that I need to add --activate-
module=src/modules/php4/libphp4.a to my Apache and re-compile.  OK, no 
problem, so on running the ./configure with these options:
--with-layout=Solaris
--activate-module=src/modules/php4/libphp4.a
--enable-module=so

I get this error:

===> src/modules/php4
/bin/sh: php4: does not exist
gmake[3]: *** [all] Error 1
gmake[3]: Leaving directory `/home/src/apache_1.3.19/src/modules/'
gmake[2]: *** [subdirs] Error 1
gmake[2]: Leaving directory `/home/src/apache_1.3.19/src'
gmake[1]: *** [build-std] Error 2
gmake[1]: Leaving directory `/home/src/apache_1.3.19'
gmake: *** [build] Error 2
#

So I went looking in the php-4.0.5 source directory for the php4 
subdirectory.  The only one I found was under sapi/apache and did not 
have a libphp4.a built nor a working Makefile.

OK, so then I figured I needed to re-build PHP using the --with-apache 
instead of the --with-apxs option.  No problem.  Except on running 
./configure with these options:
--with-apache=/usr/apache/include

I get this error:
checking for Apache module support... no
configure: error: Invalid Apache directory - unable to find httpd.h 
under /usr/apache/include
# ls -l /usr/apache/include/httpd.h
-rw-r--r--    1 root    other    45572 May 7 18:13 
/usr/apache/include/httpd.h
# httpd -l
http_core.c
...
mod_so.c
suexec: disabled: invalid wrapper /usr/apache/bin/suexec
#

I have also tried --with-apache=/usr/apache/include/httpd.h and gotten 
the same error.

So, in conclusion, I cannot seem to get the shared modules to work, I 
cannot get the static module to "automagick" itself and I cannot get 
the static PHP to recognize that Apache exists (never mind the fact 
that it's serving up web pages...).

Can anyone suggest anything I haven't tried yet?

Thanks,

- Ed




Hello

I got to put up some php pages on a server that I don´t got acces to with
more than http and ftp

and the problem is that I don´t know if the server has php support

I tried to put up a file I called test.php that with a simple php code <?
print "php test"; ?>
to se if it hade php support put the browser wanted me to download the file
insted

I then tried to add a mime type throw a web addministrationtool that is
instaled on that server the mime type i tried was
application/x-httpd-php
with extension .php

Can any one tell me if there is another way to check that ther really is php
support on the server (The one who I'm doing it fore says there is) or am I
using the wrong mime type ?

Thanks / Tobbe






www.netcraft.com

Use the "What is this server running?" link.

-Philip

-----Original Message-----
From: Tobbe [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 07, 2001 1:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Help with Mime and php


Hello

I got to put up some php pages on a server that I don?t got acces to with
more than http and ftp

and the problem is that I don?t know if the server has php support

I tried to put up a file I called test.php that with a simple php code <?
print "php test"; ?>
to se if it hade php support put the browser wanted me to download the file
insted

I then tried to add a mime type throw a web addministrationtool that is
instaled on that server the mime type i tried was
application/x-httpd-php
with extension .php

Can any one tell me if there is another way to check that ther really is php
support on the server (The one who I'm doing it fore says there is) or am I
using the wrong mime type ?

Thanks / Tobbe



-- 
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]




folks, i can't handle it anymore
everytime i solve a problem appears another one,
here's the newest :)

when I try to compile modules.c from Apache 1.3.19
it gives a lot of erros in php files that can't find references
to the funcions, such as:

<=== src/modules
gcc -c  -I./os/unix -I./include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT
-I./lib/expat-lite -DNO_DL_NEEDED `./apaci` modules.c
gcc -c  -I./os/unix -I./include   -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT
-I./lib/expat-lite -DNO_DL_NEEDED `./apaci` buildmark.c
gcc  -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED `./apaci`    \
      -o httpd buildmark.o modules.o modules/standard/libstandard.a
modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a
regex/libregex.a lib/expat-lite/libexpat.a  -lm -lcrypt
modules/php4/libphp4.a(gd.o): In function `php_free_gd_image':
/home/install/php-4.0.5/ext/gd/gd.c:209: undefined reference to
`gdImageDestroy'modules/php4/libphp4.a(gd.o): In function
`php_if_imagecreate':
/home/install/php-4.0.5/ext/gd/gd.c:489: undefined reference to
`gdImageCreate'
modules/php4/libphp4.a(gd.o): In function `php_if_imagecolorallocate':
/home/install/php-4.0.5/ext/gd/gd.c:1051: undefined reference to
`gdImageColorAllocate'
modules/php4/libphp4.a(gd.o): In function `php_if_imagecolorat':
/home/install/php-4.0.5/ext/gd/gd.c:1099: undefined reference to
`gdImageBoundsSafe'
modules/php4/libphp4.a(gd.o): In function `php_if_imagecolorclosest':
/home/install/php-4.0.5/ext/gd/gd.c:1131: undefined reference to
`gdImageColorClosest'
modules/php4/libphp4.a(gd.o): In function `php_if_imagecolordeallocate':
/home/install/php-4.0.5/ext/gd/gd.c:1183: undefined reference to
`gdImageColorDeallocate'
modules/php4/libphp4.a(gd.o): In function `php_if_imagecolorexact':
/home/install/php-4.0.5/ext/gd/gd.c:1234: undefined reference to
`gdImageColorExact'
modules/php4/libphp4.a(gd.o): In function `php_if_imagesetpixel':
/home/install/php-4.0.5/ext/gd/gd.c:1356: undefined reference to
`gdImageSetPixel'
modules/php4/libphp4.a(gd.o): In function `php_if_imageline':
/home/install/php-4.0.5/ext/gd/gd.c:1383: undefined reference to
`gdImageLine'
modules/php4/libphp4.a(gd.o): In function `php_if_imagedashedline':
/home/install/php-4.0.5/ext/gd/gd.c:1409: undefined reference to
`gdImageDashedLine'
modules/php4/libphp4.a(gd.o): In function `php_if_imagerectangle':
/home/install/php-4.0.5/ext/gd/gd.c:1436: undefined reference to
`gdImageRectangle'
modules/php4/libphp4.a(gd.o): In function `php_if_imagefilledrectangle':
/home/install/php-4.0.5/ext/gd/gd.c:1463: undefined reference to
`gdImageFilledRectangle'
modules/php4/libphp4.a(gd.o): In function `php_if_imagearc':
/home/install/php-4.0.5/ext/gd/gd.c:1498: undefined reference to
`gdImageArc'
modules/php4/libphp4.a(gd.o): In function `php_if_imagefilltoborder':
/home/install/php-4.0.5/ext/gd/gd.c:1524: undefined reference to
`gdImageFillToBorder'
modules/php4/libphp4.a(gd.o): In function `php_if_imagefill':
/home/install/php-4.0.5/ext/gd/gd.c:1549: undefined reference to
`gdImageFill'
modules/php4/libphp4.a(gd.o): In function
`php_if_imagecolortransparent':
/home/install/php-4.0.5/ext/gd/gd.c:1601: undefined reference to
`gdImageColorTransparent'
modules/php4/libphp4.a(gd.o): In function `php_if_imageinterlace':
/home/install/php-4.0.5/ext/gd/gd.c:1636: undefined reference to
`gdImageInterlace'
modules/php4/libphp4.a(gd.o): In function `php_imagepolygon':
/home/install/php-4.0.5/ext/gd/gd.c:1699: undefined reference to
`gdImageFilledPolygon'
/home/install/php-4.0.5/ext/gd/gd.c:1701: undefined reference to
`gdImagePolygon'
modules/php4/libphp4.a(gd.o): In function `php_find_gd_font':
/home/install/php-4.0.5/ext/gd/gd.c:1737: undefined reference to
`gdFontSmall'
/home/install/php-4.0.5/ext/gd/gd.c:1740: undefined reference to
`gdFontMediumBold'
/home/install/php-4.0.5/ext/gd/gd.c:1743: undefined reference to
`gdFontLarge'
/home/install/php-4.0.5/ext/gd/gd.c:1752: undefined reference to
`gdFontTiny'
/home/install/php-4.0.5/ext/gd/gd.c:1754: undefined reference to
`gdFontGiant'
modules/php4/libphp4.a(gd.o): In function `php_gdimagecharup':
/home/install/php-4.0.5/ext/gd/gd.c:1816: undefined reference to
`gdImageSetPixel'
modules/php4/libphp4.a(gd.o): In function `php_imagechar':
/home/install/php-4.0.5/ext/gd/gd.c:1870: undefined reference to
`gdImageChar'
/home/install/php-4.0.5/ext/gd/gd.c:1877: undefined reference to
`gdImageChar'
/home/install/php-4.0.5/ext/gd/gd.c:1885: undefined reference to
`gdImageCharUp'modules/php4/libphp4.a(gd.o): In function
`php_if_imagecopy':
/home/install/php-4.0.5/ext/gd/gd.c:1961: undefined reference to
`gdImageCopy'
modules/php4/libphp4.a(gd.o): In function `php_if_imagecopyresized':
/home/install/php-4.0.5/ext/gd/gd.c:2046: undefined reference to
`gdImageCopyResized'
modules/php4/libphp4.a(dl.o): In function `php_dl':
/home/install/php-4.0.5/ext/standard/dl.c:136: undefined reference to
`dlopen'
/home/install/php-4.0.5/ext/standard/dl.c:138: undefined reference to
`dlerror'
/home/install/php-4.0.5/ext/standard/dl.c:146: undefined reference to
`dlsym'
/home/install/php-4.0.5/ext/standard/dl.c:155: undefined reference to
`dlsym'
/home/install/php-4.0.5/ext/standard/dl.c:158: undefined reference to
`dlclose'
/home/install/php-4.0.5/ext/standard/dl.c:172: undefined reference to
`dlclose'
/home/install/php-4.0.5/ext/standard/dl.c:180: undefined reference to
`dlclose'
/home/install/php-4.0.5/ext/standard/dl.c:189: undefined reference to
`dlclose'
modules/php4/libphp4.a(dns.o): In function `php_if_checkdnsrr':
/home/install/php-4.0.5/ext/standard/dns.c:212: undefined reference to
`res_search'
modules/php4/libphp4.a(dns.o): In function `php_if_getmxrr':
/home/install/php-4.0.5/ext/standard/dns.c:281: undefined reference to
`res_search'
/home/install/php-4.0.5/ext/standard/dns.c:290: undefined reference to
`__dn_skipname'
/home/install/php-4.0.5/ext/standard/dns.c:296: undefined reference to
`__dn_skipname'
/home/install/php-4.0.5/ext/standard/dns.c:308: undefined reference to
`dn_expand'
modules/php4/libphp4.a(zend_API.o): In function `module_destructor':
/home/install/php-4.0.5/Zend/zend_API.c:750: undefined reference to
`dlclose'
modules/php4/libphp4.a(zend_extensions.o): In function
`zend_load_extension':
/home/install/php-4.0.5/Zend/zend_extensions.c:33: undefined reference
to `dlopen'
/home/install/php-4.0.5/Zend/zend_extensions.c:36: undefined reference
to `dlerror'
/home/install/php-4.0.5/Zend/zend_extensions.c:43: undefined reference
to `dlsym'
/home/install/php-4.0.5/Zend/zend_extensions.c:44: undefined reference
to `dlsym'
/home/install/php-4.0.5/Zend/zend_extensions.c:86: undefined reference
to `dlclose'
modules/php4/libphp4.a(zend_extensions.o): In function
`zend_extension_dtor':
/home/install/php-4.0.5/Zend/zend_extensions.c:167: undefined reference
to `dlclose'
collect2: ld returned 1 exit status
make[2]: *** [target_static] Error 1
make[2]: Leaving directory `/home/install/apache_1.3.19/src'
make[1]: *** [build-std] Error 2
make[1]: Leaving directory `/home/install/apache_1.3.19'
make: *** [build] Error 2

what can I do???????? I don't know C language.. I'm also
tired it has been 4 DAYS LONG trying to compile, but everytime
it comes to me with a new error... 

thanks everyone
-- 
[ Paulo Vinícius Vitto Ruthes ]
[   [EMAIL PROTECTED]   ]
[        ICQ#:18058144        ]
[    "Viva la cucaracha!!"    ]




I STILL cannot get fdftk working properly.  I am VERY upset, as this is one
of the big reasons I'm using PHP.  If this won't work, I'm going to start
looking at Java and dumping PHP!

I upgraded to RH 7.1 to see if that would help - NOPE!   So I uninstalled
the PHP & Apache rpms and decided to install everything from the tar's.  I
am using Apache 1.3.19 and PHP 4.0.4pl1.  I have successfully installed
Apache and PHP.  When I try to add the --with-fdftk switch for the configure
script, everything installs correctly, but Apache won't start.  It gives NO
error messages anywhere, except that it won't start.  I'm at my wits end
with this one.  My client is getting VERY upset.  I do NOT understand why
this doesn't work.  I've tried PHP 4.0.5 also and get the same thing!

Any ideas?

Jon Peccarelli
[EMAIL PROTECTED]





Reply via email to