php-install Digest 5 Sep 2001 04:56:07 -0000 Issue 444

Topics (messages 4178 through 4199):

PHP 4.0.6 on HP-UX B.11.00
        4178 by: T.J. Hoo
        4184 by: Jim Thome

Re: PHP4 and Apache 1.3.20 DSO mode not working?
        4179 by: Peter Clarke
        4180 by: i82much

Re: PHP + IMAP : instalation problems
        4181 by: David

PHP extensions ...
        4182 by: Larry Cotton
        4183 by: David Eriksson

Error 404 problems with PHP4 and Apache 1.3 on Win ME
        4185 by: Izy
        4187 by: Jonathan Hilgeman

Installation problem with NT
        4186 by: Brad Harriger
        4188 by: Phil Driscoll
        4189 by: Brad Harriger
        4190 by: Phil Driscoll
        4193 by: Brad Harriger
        4194 by: Phil Driscoll

PHP 4.0.6 not working with Apache 1.3.20 on Win Me (Error 500)
        4191 by: David Rego
        4192 by: Phil Driscoll
        4195 by: David Rego

Re: Anyone else getting SMTP import error #-5 ?
        4196 by: Phil Driscoll

Compiling PHP with Cyrus IMAP support.
        4197 by: Mike Eheler

install problems
        4198 by: Mitchell Seltzer
        4199 by: Steve Brazill

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!

I'm trying to install PHP 4.0.6 on HP-UX B.11.00, with Apache 1.3.20.

The Apache is configured and compiled without any error:
1) ./configure --prefix=/home/thoo/apache-1.3.20 --enable-module=so
2) make
3) make install

I encountered the following problem when configuring PHP:
1) ./configure --with-oci8 --with-apxs=/home/thoo/apache-1.3.20/bin/apxs
2) make
   In file included from /usr/include/sys/dirent.h:49,
                    from /usr/include/dirent.h:9,
                    from my_lib.c:13:
   /usr/include/sys/_dirent_body.h:9: parse error before `uint64_t'
   /usr/include/sys/_dirent_body.h:9: warning: no semicolon at end of struct
or union
   /usr/include/sys/_dirent_body.h:14: parse error before `}'
   make[4]: *** [my_lib.lo] Error 1
   ...

What could be the problem?




I had the same problem.  Working with HP, we found that PHP cannot be compiled as a 
DSO with Oracle connectivity.  HP is working on this problem and is planning on having 
it resolved in a future release of Apache 2.0.  In the meantime, the only way to get 
PHP-Oracle connectivity under HPUX 11.00 is to compile as a static binary.

Jim

>>> "T.J. Hoo" <[EMAIL PROTECTED]> 09/04 1:37 AM >>>
Hi!

I'm trying to install PHP 4.0.6 on HP-UX B.11.00, with Apache 1.3.20.

The Apache is configured and compiled without any error:
1) ./configure --prefix=/home/thoo/apache-1.3.20 --enable-module=so
2) make
3) make install

I encountered the following problem when configuring PHP:
1) ./configure --with-oci8 --with-apxs=/home/thoo/apache-1.3.20/bin/apxs
2) make
   In file included from /usr/include/sys/dirent.h:49,
                    from /usr/include/dirent.h:9,
                    from my_lib.c:13:
   /usr/include/sys/_dirent_body.h:9: parse error before `uint64_t'
   /usr/include/sys/_dirent_body.h:9: warning: no semicolon at end of struct
or union
   /usr/include/sys/_dirent_body.h:14: parse error before `}'
   make[4]: *** [my_lib.lo] Error 1
   ...

What could be the problem?







"Bill Carter" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]...
> Thanks for the info. Did you install Apache and PHP binaries derived from
> the rpm's on the distribution disk or did you download sources from the
> websites and configure/compile/install from sources?
>
> Peter Clarke wrote:
> > I've recently installed:
> > Red Hat Linux release 7.1 (Seawolf), PHP 4.0.6 Apache, 1.3.20 DSO from
> > scratch with no problems.
> > also:
> > Red Hat Linux release 6.1 (Cartman), PHP 4.0.6 Apache, 1.3.20 DSO from
> > scratch with no problems.
> >
> > Just so you know it can work.
> >
> > Peter


I installed from sources:

Apache (modSSL source directory)
./configure --with-apache=/home/peter/apache_1.3.20 --with-ssl=/usr/local/ss
l --prefix=/usr/local/apache --enable-module=so

PHP:
./configure --with-apxs=/usr/local/apache/bin/apxs --with-db --with-pgsql=/u
sr/local/pgsql --with-imap=/usr/local/imap-2000c --with-gettext --with-opens
sl=/usr/local/ssl --with-curl=/usr/local/curl --enable-dbase --with-sablot=/
usr/local/sablot --with-expat-dir=/usr/local/expat --with-xslt-sablot






"I82much" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> "Bill Carter" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]...
> > Thanks for the info. Did you install Apache and PHP binaries derived
from
> > the rpm's on the distribution disk or did you download sources from the
> > websites and configure/compile/install from sources?
> >
> > Peter Clarke wrote:
> > > I've recently installed:
> > > Red Hat Linux release 7.1 (Seawolf), PHP 4.0.6 Apache, 1.3.20 DSO from
> > > scratch with no problems.
> > > also:
> > > Red Hat Linux release 6.1 (Cartman), PHP 4.0.6 Apache, 1.3.20 DSO from
> > > scratch with no problems.
> > >
> > > Just so you know it can work.
> > >
> > > Peter
>
> I'm running rh7 2.2.19 and installed 4.0.6 dso /1.3.19 from source - from
> web not srpms - successfully with no probs.  I've rebuilt php several
times
> since to change extensions and every time it works fine.  Here is my
> configure command:
>
>
./configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/
> apxs \
> --enable-bcmath --enable-calendar --with-gd --with-xml --with-oci8 \
> --enable-dbg=shared --with--dbg-profiler
>
> I'll upgrade my apache to 1.3.20 to see what happens and keep you posted.
>
> Dan

Okay, it worked fine on 1.3.20 as well.  This is what I did to run the new
server next to the old one:

download 1.3.20 from apache.org
tar -xvzf apache_1.3.20.tar.gz
mv apache_1.3.20 /usr/local/src
cd /usr/local/src/apache_1.3.20
./configure --prefix=/usr/local/apache1.3.20 --enable-module=so
make; make install
cp /usr/local/src/php-4.0.6/libs/libphp4.so /usr/local/apache1.3.20/libexec/
vi /usr/local/apache1.3.20/conf/httpd.conf    # edit file for following:

    LoadModule php4_module        libexec/libphp4.so
    Port 81
    AddType application/x-httpd-php .php

cp /usr/local/apache/htdocs/info.php /usr/local/apache1.3.20/htdocs/
/usr/local/apache1.3.20/bin/apachectl start

Dan






I have found the source of my problem :
My imap library was bad (rpm from Mandrake 8.0)
My configuration :
    - Mandrake V8.0
    - PHP 4.0.6

This is the issue :
1 > Download the last one IMAP version on ftp://ftp.cac.washington.edu/imap/
2 > Copy the tar.Z file in /usr/local (or somewhere else if you want)
3 > UnZip/Tar the file and rename the directory created on imap-2001 (or
imap-toto if you want ;-) )
4 > cd imap-2001 && make slx
5 > Restart the php configure script with option
: --with-imap=/usr/local/imap-2001
5 > make && make install (build PHP)

And all is fun ! (after 12 hours reading mailing lists....)

David



"David" <#[EMAIL PROTECTED]> a écrit dans le message news:
[EMAIL PROTECTED]
> I'm using PHP 4.0.6 on Mandrake 8.0 with IMAP 2000c-4.4
> All the compilation is ok but when I try to start Apache I have the
> following message :
>
> Cannot load /usr/local/apache/libexec/libphp4.so into server:
> /usr/local/apache/libexec/libphp4.so: undefined symbol: mxdriver
> /usr/local/apache/bin/apachectl start: httpd could not be started
>
> I have tried the installation process described on php.net but it don't
> work.
>
> Can't you help me ?
>
> Thanks
>
> David
>
>
>
>
>






Hi

I've written some functions which I want to use as php extensions on linux.

I've downloaded php-4.0.6 and built it successfully.

I auto-generated the files using the instuctions in the Zend documenteation
at http://www.zend.com/apidoc/c269.php

They tell you to do something like this :
cd /usr/local/src/php4/ext
./ext_skel my_module --extname=module_name

The I edited the generated files to include some of the zend functions I've
already written and get rid of the page request init functions and added
another source file to Makefile.in. i also uncommented the line :
[  --with-phpwebinterface             Include phpwebinterface support])
in the config.m4 file

It then says to run the following commands :
./buildconf
./configure
vi ext/my_module/my_module.c
make

Apparently ./configure should now auto generate a Makefile for my_module,
but it doesn't seem to be doing this for me.

Anyone know what's going on here ?

Cheers
Larry


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
Imerge Limited                          Tel :- +44 (0)1954 783600 
Unit 6 Bar Hill Business Park           Fax :- +44 (0)1954 783601 
Saxon Way                               Web :- http://www.imerge.co.uk 
Bar Hill 
Cambridge 
CB3 8SL 
United Kingdom 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 






On Tue, 4 Sep 2001, Larry Cotton wrote:

> Hi
>
> I've written some functions which I want to use as php extensions on linux.
>
> I've downloaded php-4.0.6 and built it successfully.
>
> I auto-generated the files using the instuctions in the Zend documenteation
> at http://www.zend.com/apidoc/c269.php
>
> They tell you to do something like this :
> cd /usr/local/src/php4/ext
> ./ext_skel my_module --extname=module_name
>
> The I edited the generated files to include some of the zend functions I've
> already written and get rid of the page request init functions and added
> another source file to Makefile.in. i also uncommented the line :
> [  --with-phpwebinterface             Include phpwebinterface support])
> in the config.m4 file
>
> It then says to run the following commands :
> ./buildconf
> ./configure
> vi ext/my_module/my_module.c
> make
>
> Apparently ./configure should now auto generate a Makefile for my_module,
> but it doesn't seem to be doing this for me.
>
> Anyone know what's going on here ?

Did you run configure like this?

  ./configure --with-phpwebinterface

Otherwise your extension will not be included in the build.

\David






I recently installed Apache 1.3 (Win32) and PHP 4 on a Win ME system.  I
followed the installation instructions included in the readme file that was
included in the PHP installation. Running php.exe -i returned the html codes
properly.

The apache server is displaying .html and .htm files properly while my
test.php file, which resides in the same directory, is coming up as "HTTP
Error 404". I triple checked my installation of PHP and everything seemed to
be in order.

I'd appreciate any help and suggestions to fix this problem.






Try using FoxServ for a simplified setup process.
http://prdownloads.sourceforge.net/foxserv/foxserv-v1.0.exe
- Jonathan

"Izy" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I recently installed Apache 1.3 (Win32) and PHP 4 on a Win ME system.  I
> followed the installation instructions included in the readme file that
was
> included in the PHP installation. Running php.exe -i returned the html
codes
> properly.
>
> The apache server is displaying .html and .htm files properly while my
> test.php file, which resides in the same directory, is coming up as "HTTP
> Error 404". I triple checked my installation of PHP and everything seemed
to
> be in order.
>
> I'd appreciate any help and suggestions to fix this problem.
>
>






I have installed php4 on an NT workstation running apache that
previously ran pws and php4.  Everything worked fine under pws.  Now,
the php executes from the command line, but not from the browser. I've
followed all the installation instructions.  Any suggestions?

Thanks,

Brad





On Tuesday 04 September 2001 3:48 pm, Brad Harriger wrote:
> I have installed php4 on an NT workstation running apache that
> previously ran pws and php4.  Everything worked fine under pws.  Now,
> the php executes from the command line, but not from the browser. I've
> followed all the installation instructions.  Any suggestions?
Show us the relevant bits of your httpd.conf and tell us what actually 
happens when you access a php page (e.g. do you get the php source code sent 
to the browser - use view source to find out).

Cheers
-- 
Phil Driscoll




httpd.conf  contains

ScriptAlias /php/ "c:/php/"
AddType application/x-httpd-php .php
Action application/x-httpd-php "/php/php.exe"

When I try to access a page, I'm asked if I want to open the file using php.exe
or save it to a disk.

Brad

Phil Driscoll wrote:

> On Tuesday 04 September 2001 3:48 pm, Brad Harriger wrote:
> > I have installed php4 on an NT workstation running apache that
> > previously ran pws and php4.  Everything worked fine under pws.  Now,
> > the php executes from the command line, but not from the browser. I've
> > followed all the installation instructions.  Any suggestions?
> Show us the relevant bits of your httpd.conf and tell us what actually
> happens when you access a php page (e.g. do you get the php source code sent
> to the browser - use view source to find out).
>
> Cheers
> --
> Phil Driscoll





On Tuesday 04 September 2001 4:21 pm, Brad Harriger wrote:
> httpd.conf  contains
>
> ScriptAlias /php/ "c:/php/"
> AddType application/x-httpd-php .php
> Action application/x-httpd-php "/php/php.exe"
>
> When I try to access a page, I'm asked if I want to open the file using
> php.exe or save it to a disk.
>
The httpd.conf stuff looks fine. Are you sure you are requesting the page via 
the webserver (http://localhost/mypage.php or whatever) rather than accessing 
the file directly? Do plain html pages work ok?

Cheers
-- 
Phil Driscoll




I was accessing the file directly.  When I try requesting it via the webserver, I
get a 500 error with the following line in the error log:

[Tue Sep 04 11:46:30 2001] [error] [client 127.0.0.1] Premature end of script
headers: c:/php/php.exe

Brad

Phil Driscoll wrote:

> On Tuesday 04 September 2001 4:21 pm, Brad Harriger wrote:
> > httpd.conf  contains
> >
> > ScriptAlias /php/ "c:/php/"
> > AddType application/x-httpd-php .php
> > Action application/x-httpd-php "/php/php.exe"
> >
> > When I try to access a page, I'm asked if I want to open the file using
> > php.exe or save it to a disk.
> >
> The httpd.conf stuff looks fine. Are you sure you are requesting the page via
> the webserver (http://localhost/mypage.php or whatever) rather than accessing
> the file directly? Do plain html pages work ok?
>
> Cheers
> --
> Phil Driscoll





On Tuesday 04 September 2001 4:49 pm, Brad Harriger wrote:
> I was accessing the file directly.
Well that won't ever work - you have to access the file via a web server.

> When I try requesting it via the
> webserver, I get a 500 error with the following line in the error log:
>
> [Tue Sep 04 11:46:30 2001] [error] [client 127.0.0.1] Premature end of
> script headers: c:/php/php.exe

I'm not an Apache expert so hopefully someone else might chip in here with 
what might be the cause of this. I'd double check the configuration, and also 
check that if you put a plain .htm file in the same folder as your php file 
you can access that ok via the web server.

Cheers
-- 
Phil Driscoll




Hi,

I have just joined this list. So pls pardon me if this has been asked 
before. Pls point me to an archive if so.

I downloaded the executable of Apache from their web site and it works 
along with my CGI (Perl) scripts. I then downloaded from php.net a zip of 
4.0.6. I followed the instructions of install.txt and from the site for 
both types of installation except that I put PHP on D: (D:\PHP). My Apache 
installation is on D:\ApacheGroup\Apache. My web site is on D:\Data\Web Site\.
For CGI type I put the following lines in httpd.conf:

     ScriptAlias /PHP/ "D:/Data/Web Site/PHP/"

     <Directory "D:/Data/Web Site/PHP/">
         AllowOverride None
         Options None
         Order deny,allow
         Allow from 127.0.0.1
     </Directory>

in the <IfModule mod_alias.c> section

and in the <IfModule mod_mime.c> section I put the lines:

     AddType application/x-httpd-php .php .phtml
     Action application/x-httpd-php "D:/PHP/php.exe"

But it didn't work (I believe the apache log didn't have a message even 
though  put the loglevel the lowest)

Then I tried the module method (removing the lines from the mod_mime section:
I copied php4ts.dll to c:\windows\system and added the line:

LoadModule php4_module D:/php/sapi/php4apache.dll

But it still doesn't work. I believe Apache said something like: Premature 
end of script headers

I tried a combination of both and similar results.

But from the command line (keeping the file where it is for the web site) 
the output works!

Any suggestions?

Tks in advance

Dr






On Tuesday 04 September 2001 4:52 pm, David Rego wrote:
> I put PHP on D: (D:\PHP). 
>   ScriptAlias /PHP/ "D:/Data/Web Site/PHP/"
should therefore be
   ScriptAlias /PHP/ "D:/PHP/"

And
>      Action application/x-httpd-php "D:/PHP/php.exe"
should be
      Action application/x-httpd-php "/PHP/php.exe"

Though lower case pgp throughout would seem to be the convention.

Cheers
-- 
Phil Driscoll




Tks for the response. (I posted this twice as each time I got a SMTP error 
#5 message and was not sure whether my message made it to the list.)

At 09:53 AM 9/4/2001, Phil Driscoll wrote:
>On Tuesday 04 September 2001 4:52 pm, David Rego wrote:
> > I put PHP on D: (D:\PHP).
> >   ScriptAlias /PHP/ "D:/Data/Web Site/PHP/"
>should therefore be
>    ScriptAlias /PHP/ "D:/PHP/"
>
>And
> >      Action application/x-httpd-php "D:/PHP/php.exe"
>should be
>       Action application/x-httpd-php "/PHP/php.exe"
>
>Though lower case pgp throughout would seem to be the convention.

I did the above and got a 404. So I moved the test file from "D:/Data/Web 
Site/PHP/" to "D:/PHP/" and got the original 500 error.


>Cheers
>--
>Phil Driscoll
>
>--
>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]





On Friday 31 August 2001 9:22 pm, Steve Cayford wrote:
> I keep  getting this error when I post to this list.
>
>  From: [EMAIL PROTECTED]
> Date: Sun Aug 31, 300  10:36:38  AM US/Central
> Subject: SMTP import error #-5
> Return-Path: <[EMAIL PROTECTED]>
>
> Note the year.
>
> -Steve

I get one error for every post I make, although the dates are ok.
-- 
Phil Driscoll




Has anyone done this? I've tried several times. If I install all the 
imap & imap-devel packages from my mandrake cds, then install Cyrus 
IMAPD, PHP will compile, but will fail with "Unresolved symbol: 
mxdriver" error when I try to load it.

If I remove imap & imap-devel and just install Cyrus IMAPD (compiled 
from source w/ default options), I get an error during ./configure:

configure: error: Cannot find rfc822.h. Please check your IMAP 
installation.

Any help is greatly appreciated.

Mike





I am trying to configure these together
OS redhat 7.1
apache_1.3.20
php-4.0.6
mysql
openssl-0.9.6
mod_ssl-2.8.4-1.3.20
libmcrypt-2.4.15
versign -- pfpro

Has anyone got all of these to work together?
I can get ssl php mysql apache but not mcrypt and pfpro.

A step by step would be great along with the associated conf file
changes.


Thanks
Mitch











You might need the 'beta' version of PayFlowPro,  which is listed on their
site (if you have a valid login and password).

I had a problem with "libmcrypt" and "pfpro" until I used that version....

----- Original Message -----
From: "Mitchell Seltzer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, September 04, 2001 1:47 PM
Subject: [PHP-INST] install problems


> I am trying to configure these together
> OS redhat 7.1
> apache_1.3.20
> php-4.0.6
> mysql
> openssl-0.9.6
> mod_ssl-2.8.4-1.3.20
> libmcrypt-2.4.15
> versign -- pfpro
>
> Has anyone got all of these to work together?
> I can get ssl php mysql apache but not mcrypt and pfpro.
>
> A step by step would be great along with the associated conf file
> changes.
>
>
> Thanks
> Mitch
>
>
>
>
>
>
>
>
> --
> 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]
>



Reply via email to