php-install Digest 25 Jul 2002 09:54:04 -0000 Issue 947
Topics (messages 7891 through 7895):
OpenBSD 3.1 + Apache 2.0.39 + PHP 4.2.2 -> configure problem
7891 by: Michele Albrigo
win 2k server+apache2.0 php HELP!!!
7892 by: Stig
Session Crash
7893 by: Jim Thome
Re: Problems installing PHP
7894 by: crimix
problems with xml rcp switch & apache
7895 by: Tibor Thurnay
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]
----------------------------------------------------------------------
--- Begin Message ---
Hi all,
I've switched to PHP 4.2.2, but all my problems remained the same.
[Note: since I'm building for apache 2.0.39, I've patched
sapi/apache2filter with php_functions.c from current]
Case 1: c-client as a package from OpenBSD 3.1
I need kerberos support for php (which I don't want, I could allow it just
to have php working) because my c-client is compiled with kerberos
support. If I add --with-kerberos=/usr/lib, I'm stopped with lmysqlclient
which doesn't support mysql_error. If I look to config.log (as I'm told to
do) I discover that ./configure can't find gssapi_krb5 (which I haven't
got, and which I can't install from any OpenBSD package). If I tweak
./configure to skip that test, I'm stopped at the same point because I
haven't got k5crypto. Kerberos is just as OpenBSD default installation
put it, so it *should* be ok.
Case 2: c-client from source (imap-2002rc1.tar.Z or imap-2001a.tar.Z,
which I used on Slackware up to last week)
I can't build a dynamic library, so php asks me for libc-client.so.*
I've looked into imap build directory (since docs say that you just copy
files from there), and there's no libc-client.so, I've only found
c-client.a (which isn't the same thing, so php doesn't work).
As I finish compiling, I'm warned about some library my system hasn't got
(and that I should provide)
So...
Case 3: php configured with --enable-static=most
Same as Case 1...
Has anybody got an idea?
I probably need one of the following things:
* an OpenBSD c-client package without kerberos
* a way to recompile c-client library from ports without kerberos support
* a way to compile a shared c-client library from source distribution (it
also should support SSL, but I found this isn't a problem)
Again, thank you in advance
Michele
--- End Message ---
--- Begin Message ---
i have tried to get php to work under apache2.0 installation ..
when i try to access the page i just get a plain text file .
if u are able to help or have any suggestion pleas mail me at
[EMAIL PROTECTED]
Stig
min-ilder.com
--- End Message ---
--- Begin Message ---
Hi all,
I currently have PHP 4.0.6 running on our HPUX server as a DSO with Oracle 8.1.6.
Although I have been able to compile later versions of PHP, I always run into the same
problem. When I have a page that starts a PHP session, the page/script fails and I
get a line similar to below in the Apache error logs:
[notice] child pid 10913 exit signal Bad system call (12)
Has anyone else experienced this problem? My PHP configuration has not changed. Why
can I only get PHP 4.0.6 to work?
My PHP config line is (but everything builds ok):
./configure \
--with-apxs=/path/to/apache/bin/apxs \
--with-mysql=no \
--with-oci8 \
--with-zlib=/opt/zlib \
--with-zlib-dir=/opt/zlib \
--
Jim
>>> "Santosh Narayanan" <[EMAIL PROTECTED]> 07/18/02 03:28AM >>>
Hi all,
Thanks for the replies to my message regarding gd errors while compiling
PHP.
I finally managed to solve it using this method. Note that I am using a
Redhat Linux system to do the compile.
1) Compiled and installed libpng 1.2.4
wget www.libpng.org/pub/png/src/libpng-1.2.4.tar.gz
tar zxvf libpng-1.2.4.tar.gz
cd libpng-1.2.4
mv scripts/makefile.linux Makefile
make
make install
2) Compiled and installed libjpeg 6b
wget ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz
tar zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --enable-shared
make
make install
3) Compiled and installed GD 1.8.4
wget www.boutell.com/gd/http/gd-1.8.4.tar.gz
tar zxvf gd-1.8.4.tar.gz
cd gd-1.8.4
pico Makefile
-------
NOTE: On some systems gd refuses to compile unless you reverse the LIBS line
in the Makefile as follows,
LIBS=-lm -lz -lpng -lgd
(save the file using CTRL-X and Y)
-------
make
make install
4) Now configure, compile and install PHP 4.1.2 as follows,
./configure --prefix=/usr --with-config-file-path=/etc/httpd
--with-exec-dir=/usr/bin --with-libdir=/usr/lib --enable-bcmath
--enable-magic-quotes --enable-safe-mode --enable-mbstring
--enable-mbstr-enc-trans --enable-track-vars --enable-wddx=shared
--enable-mm=shared --enable-xml --enable-ftp --disable-debug
--with-apxs=/usr/sbin/apxs --with-zlib --with-ttf
--with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib
--with-gd=/usr/local --with-gettext=/usr --with-regex=system --with-db
--with-gdbm --with-interbase=shared --with-pgsql=shared --with-ldap
--with-imap --with-pdflib=/usr --with-mysql
-------
NOTE: The configure line will change depending on what you support you need
with PHP, but generally the above configure has support for many common
stuff used in PHP.
-------
make > /dev/null
make install
5) Now restart apache (the command to restart apache depends on your system)
/etc/rc.d/init.d/httpd restart
Thats about it. Now check using phpinfo if the newly compiled php works.
regards,
-- Santosh
_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Hi Chris,
when I started to use PHP I discovered the same problem because you
have to add these lines of code into http.conf file
# And for PHP 4.x, use:
#
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php-source .phps
</IfModule>
, add these lines into the file mod_php4 under ../http/modules
Variable:HTTPD_SEC_MOD_PHP
LoadModule:LoadModule php4_module /usr/lib/apache/libphp4.so
AddModule:AddModule mod_php4.c
Text:PHP4
and place the module file "libphp4.so" under the exact path.
The last problem is to recompile apache specifing to implement PHP4
functionality.
I suggest you to read how to recompile your Apache with this option into
the Apache's man page.
If you want I can send you a copy of apache compiled to support it directly.
Good luck and have a nice day
Tiziano Crimella
Chris Guest wrote:
> I confess I am a newbie to PHP...
>
> I have a development server that I am using to test with. The server is
> running RH 7.3 Linux, Apache 1.3.19 and FrontPage 2002 extensions.
>
> I have read the README and docs on installing PHP...I can't get PHP to work.
> I don't see any errors while installing or unloading and reloading httpd.
>
> I created a test page with <? phpinfo(); ?> in it. When I try to go to that
> page I get a prompt that I am about to download a page. If I download the
> page and open it...all I see is <? phpinfo(); ?> .
>
> I just need PHP for a few script if it makes any difference.
> Any guidance would be greatly appreciated.
>
> --
> Thanks,
> Chris Guest, WAN Administrator
> Grady County Schools
> Ph: (229)377-8258 Fax: (229)378-1199
> Email: [EMAIL PROTECTED]
>
--- End Message ---
--- Begin Message ---
Hi,
i am trying to install php with the following config.:
./configure --with-apache=/INSTALLS/apache_1.3.26 --enable-ftp
--with-xmlrpc --with-xml-dom --with-oci8=/wwwhome/oracle/OraHome1/
--with-mysql --enable-trans-sid --enable-track_vars --with-zlib
if i leave the --with-xmlrpc out i can also compile apache...
./configure --prefix=/usr/local/apache_static
--activate-module=src/modules/php4/libphp4.a --enable-module=ssl
with it, compiling apache gives the following error messages:
modules/php4/libphp4.a(iconv.o): In function `php_iconv_string':
/INSTALLS/php-4.2.2/ext/iconv/iconv.c:168: undefined reference to
`libiconv_open'
/INSTALLS/php-4.2.2/ext/iconv/iconv.c:178: undefined reference to `libiconv'
/INSTALLS/php-4.2.2/ext/iconv/iconv.c:189: undefined reference to
`libiconv_close'
modules/php4/libphp4.a(encodings.o): In function `convert':
/INSTALLS/php-4.2.2/ext/xmlrpc/libxmlrpc/encodings.c:53: undefined
reference to `libiconv_open'
/INSTALLS/php-4.2.2/ext/xmlrpc/libxmlrpc/encodings.c:64: undefined
reference to `libiconv'
/INSTALLS/php-4.2.2/ext/xmlrpc/libxmlrpc/encodings.c:84: undefined
reference to `libiconv_close
i installed a new version of libiconv but that did not help.
any ideas what i am doing wrong?
thank you very much in advance.
Tibor
--- End Message ---