php-install Digest 11 Jul 2002 14:11:48 -0000 Issue 926
Topics (messages 7685 through 7694):
Re: configuration problem?
7685 by: Chris Hewitt
Anyone got PHP 4.2.1 and Apache 2.0.39 to work completely?
7686 by: Chris Santerre
Re: Make errors PHP4 / MySQL for Apache 2 on Redhat 7.3
7687 by: leandro asnaghi-nicastro
7688 by: Chris Hewitt
7692 by: leandro asnaghi-nicastro
Re: (YES! I DID IT!) Anyone got PHP 4.2.1 and Apache 2.0.39 to w ork completely?
7689 by: Chris Santerre
7690 by: Khristopher_Klaich.nywd.uscourts.gov
7691 by: Chris Santerre
Apache2.0 + safe_mode
7693 by: Scott Lamb
Install problem of php-4.2.1 + Solaris8 + apache-1.3.26
7694 by: Brian F. Vaughan
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 ---
Dominik,
Yes, so is the file actually called "adodb.inc.php" and is it in that
directory? This is what your code is asking for, the error message is
simply telling you that a file of that name is not in that directory.
HTH
Chris
Dominik Picek wrote:
>It is the error message where the browser shows.
>
>Dominik
>
>----- Original Message -----
>From: "Chris Hewitt" <[EMAIL PROTECTED]>
>Newsgroups: php.install
>To: "Dominik Picek" <[EMAIL PROTECTED]>
>Cc: <[EMAIL PROTECTED]>
>Sent: Tuesday, July 09, 2002 1:12 PM
>Subject: Re: [PHP-INST] configuration problem?
>
>
>>Dominik,
>>
>>It can't find the file. It sounds as though (if your document root is
>>/var/www/html) then it can't find "/var/www/html/pnadodb/adodb.inc.php".
>>Do you really mean to have that extension (.inc.php). Is this really
>>what the file is called?
>>
>>HTH
>>Chris
>>
>>Dominik Picek wrote:
>>
>>>hello
>>>
>>>when i start my web application, i get the following error message:
>>>
>>>Fatal error: Failed opening required 'pnadodb/adodb.inc.php'
>>>(include_path='.:/usr/share/pear') in /var/www/html/install.php on line
>>>
>48
>
>>>what is the problem? what i have to do?
>>>
>>>regards, dominik
>>>
>>>
>>>
>>
>
>
--- End Message ---
--- Begin Message ---
I have been trying for days. I've read just about everything. I'm going to
now try the latest stable cvs and making sure that the correct line 93 in
php_functions.c is there. I just wanted to know if anyone has had success
yet?
reading like a squirrel on crack,
Chris
--- End Message ---
--- Begin Message ---
On This Day, in the Year of Our Lord 9 Jul 02, at 10:08, thus spake Erik Bais :
> Thanks for the reply Leandro.
>
> Now my question is. . . If this doesn;t work, Which version did
> work ? Is it Redhat related or just the combo of software we
> are trying to compile..
>
> I don't really need Apache 2, nor PHP4 ( I think , I'll ask the
> web dev people..) ...
>
> How did you solve it ?
I haven't solved it. As far as I can tell, many more people are
having the exact same problem--see latest posts on this list as well--
and unfortunately, there seems to be no answer as of yet as to why.
Perhaps we need to wait for PHP 4.2.2? I don't know.
Until then, PHP works by itself, if I do not install it for Apache.
Apache works but has no PHP support. I'm a little unsure as to what
to do.
leandro
--- End Message ---
--- Begin Message ---
Leandro, Erik,
Someone on the php-general list said that they had Apache2 and php4.2.x
working (I think). It might be worth a recent search of the archive of
php-general (I think it was only a day or two ago). I don't know whether
the OS was linux or windows though.
Alternatively, I'd wait until it all gets sorted out and use Apache1.3.x
and php4.1.2 unless there is some feature that you really need.
HTH
Chris
leandro asnaghi-nicastro wrote:
>On This Day, in the Year of Our Lord 9 Jul 02, at 10:08, thus spake Erik Bais :
>
>> Thanks for the reply Leandro.
>>
>> Now my question is. . . If this doesn;t work, Which version did
>> work ? Is it Redhat related or just the combo of software we
>> are trying to compile..
>>
>> I don't really need Apache 2, nor PHP4 ( I think , I'll ask the
>> web dev people..) ...
>>
>> How did you solve it ?
>>
>
>I haven't solved it. As far as I can tell, many more people are
>having the exact same problem--see latest posts on this list as well--
>and unfortunately, there seems to be no answer as of yet as to why.
>
>Perhaps we need to wait for PHP 4.2.2? I don't know.
>
>Until then, PHP works by itself, if I do not install it for Apache.
>Apache works but has no PHP support. I'm a little unsure as to what
>to do.
>
>leandro
>
--- End Message ---
--- Begin Message ---
On Wed, 10 Jul 2002, Chris Hewitt wrote:
> Leandro, Erik,
>
> Someone on the php-general list said that they had Apache2 and php4.2.x
> working (I think). It might be worth a recent search of the archive of
> php-general (I think it was only a day or two ago). I don't know whether
> the OS was linux or windows though.
Hello Chris,
looking at the post that follow, seems like the solution has been posted
here. But thank you for that. =)
> Alternatively, I'd wait until it all gets sorted out and use Apache1.3.x
> and php4.1.2 unless there is some feature that you really need.
You are probably absolutely right. I'll try what has been posted on the
list here, and if that fails, try with 1.3.x and see how that goes.
Thank you.
leandro
___
leandro asnaghi-nicastro - editor in chief
capital of nasty - http://con.ca/
[EMAIL PROTECTED] - icq uin: 889318
--- End Message ---
--- Begin Message ---
PHP 4.2.1 and Apache 2.0.39 to work
Finally! Wow, let me see if I can get this right. Here is what I did:
1) Downloaded and installed the following:
Latest STABLE php from snaps.php.net (dated 7/10/02 9 AM)
pth-1.4.1.tar.gz from ftp.gnu.org/gnu/pth/ (this 'may' have helped!)
2) reconfigured, apache using:
./configure --prefix=/path/to/apache --with-module=so
make clean, make, make install
(NOTE: I don't think this was needed, but I wanted clean! Also
didn't start it yet.)
3) installed the new STABLE php 4.2.1 and made some changes:
In 'path to php'/ext/standard commented out in microtime.c line 31
"#ifedf HAVE_SYS_RESOURCE_H" to "/* #ifedf HAVE_SYS_RESOURCE_H */"
NO quotes!
and also line 33
"#endif" to "/* #endif */" No Quotes!
I don't know what the problem was. I knew it needed the include on
line 32.
so this just puts the darn thing in!
The previous problems in php_functions.c seemed to be fixed, so no
change there.
4) config php:
run 'make distclean'
./configure --with-mysql --with-zlib
--with-apxs2=/usr/local/apache/bin/apxs
Note: /usr/local/apache is my path! Yours could be
/I/like/grandma/bin/apxs!
make clean, make
NOTE: I get like 6 warnings about RLIM_INFINITY being redefined
during the make.
I believe it has to do with different versions of my resource.h.
I think this is due to uprading my kernel. Not to worry if you get
this.
It is just a warning. Has to do with the declaration of the size of
it I think.
make install
5) back to /usr/local/apache/conf and edit httpd.conf
make sure that 'AddType application/x-httpd-php .php' is there
IT WASN'T! Rumor says it auto places it. HEH!
Also make sure 'LoadModule php4_module modules/libphp4.so' is
there.
It was. Huh??? Oh well.
apachectl start
a edit quick helloworld.php
open fav web browser, bang!
Scream Haleluyah while dancing a jig! People in office look at you
funny.
Man I hope I save someone some time!
-----Original Message-----
From: Chris Santerre [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 12:28 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP-INST] Anyone got PHP 4.2.1 and Apache 2.0.39 to work
completely?
I have been trying for days. I've read just about everything. I'm going to
now try the latest stable cvs and making sure that the correct line 93 in
php_functions.c is there. I just wanted to know if anyone has had success
yet?
reading like a squirrel on crack,
Chris
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Riddle me this batman does the latest stable version that you just
configured allow you to set mulitple cookies?
I was able a week or two ago to get them up and running as you have done
but ran into the problem when tried to use my app's the sessions and then
mulitple cookie's would work. The session problem is that php now points
to your systems /tmp directory which by default is root:root so you need
to adjust the ownership to allow apache to talk to it but the cookie
problem is still up in the air as far as I know and I am not going to port
all of my systems over just yet it is way easier just to go back to apache
1.3.26 and php 4.0.6.
But congrad on getting it to work I know it took a lot of Dr. Peppers for
me to get then both to work.....kind of frustrating but helps out your bug
tracking skills 10 fold.
K-man
Chris Santerre <[EMAIL PROTECTED]>
07/10/2002 05:12 PM
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject: [PHP-INST] RE: (YES! I DID IT!) Anyone got PHP 4.2.1 and
Apache 2.0.39 to
w ork completely?
PHP 4.2.1 and Apache 2.0.39 to work
Finally! Wow, let me see if I can get this right. Here is what I did:
1) Downloaded and installed the following:
Latest STABLE php from snaps.php.net (dated 7/10/02 9 AM)
pth-1.4.1.tar.gz from ftp.gnu.org/gnu/pth/ (this 'may'
have helped!)
2) reconfigured, apache using:
./configure --prefix=/path/to/apache --with-module=so
make clean, make, make install
(NOTE: I don't think this was needed, but I wanted clean!
Also
didn't start it yet.)
3) installed the new STABLE php 4.2.1 and made some changes:
In 'path to php'/ext/standard commented out in
microtime.c line 31
"#ifedf HAVE_SYS_RESOURCE_H" to "/* #ifedf
HAVE_SYS_RESOURCE_H */"
NO quotes!
and also line 33
"#endif" to "/* #endif */" No Quotes!
I don't know what the problem was. I knew it needed the
include on
line 32.
so this just puts the darn thing in!
The previous problems in php_functions.c seemed to be
fixed, so no
change there.
4) config php:
run 'make distclean'
./configure --with-mysql --with-zlib
--with-apxs2=/usr/local/apache/bin/apxs
Note: /usr/local/apache is my path! Yours could be
/I/like/grandma/bin/apxs!
make clean, make
NOTE: I get like 6 warnings about RLIM_INFINITY being
redefined
during the make.
I believe it has to do with different versions of my
resource.h.
I think this is due to uprading my kernel. Not to worry
if you get
this.
It is just a warning. Has to do with the declaration of
the size of
it I think.
make install
5) back to /usr/local/apache/conf and edit httpd.conf
make sure that 'AddType application/x-httpd-php .php' is
there
IT WASN'T! Rumor says it auto places it. HEH!
Also make sure 'LoadModule php4_module
modules/libphp4.so' is
there.
It was. Huh??? Oh well.
apachectl start
a edit quick helloworld.php
open fav web browser, bang!
Scream Haleluyah while dancing a jig! People in office
look at you
funny.
Man I hope I save someone some time!
-----Original Message-----
From: Chris Santerre [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 12:28 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP-INST] Anyone got PHP 4.2.1 and Apache 2.0.39 to work
completely?
I have been trying for days. I've read just about everything. I'm going to
now try the latest stable cvs and making sure that the correct line 93 in
php_functions.c is there. I just wanted to know if anyone has had success
yet?
reading like a squirrel on crack,
Chris
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
LOL you couldn't burst my bubble right now with a shotgun! :)
I'm going to try to test the heck out of it tomorrow. I think I may have
read something in the docs on the STABLE version that mentioned something
about that. Then again, I've have read a TON in the last few days. I'll see
what I can find. I thankfully, don't need cookies. Some ice cream would be
nice.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 5:35 PM
To: Chris Santerre
Cc: '[EMAIL PROTECTED]'
Subject: Re: [PHP-INST] RE: (YES! I DID IT!) Anyone got PHP 4.2.1 and Apache
2.0.39 to w ork completely?
Riddle me this batman does the latest stable version that you just
configured allow you to set mulitple cookies?
I was able a week or two ago to get them up and running as you have done but
ran into the problem when tried to use my app's the sessions and then
mulitple cookie's would work. The session problem is that php now points to
your systems /tmp directory which by default is root:root so you need to
adjust the ownership to allow apache to talk to it but the cookie problem is
still up in the air as far as I know and I am not going to port all of my
systems over just yet it is way easier just to go back to apache 1.3.26 and
php 4.0.6.
But congrad on getting it to work I know it took a lot of Dr. Peppers for me
to get then both to work.....kind of frustrating but helps out your bug
tracking skills 10 fold.
K-man
Chris Santerre <[EMAIL PROTECTED]>
07/10/2002 05:12 PM
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject: [PHP-INST] RE: (YES! I DID IT!) Anyone got PHP
4.2.1 and Apache 2.0.39 to w ork completely?
PHP 4.2.1 and Apache 2.0.39 to work
Finally! Wow, let me see if I can get this right. Here is what I did:
1) Downloaded and installed the following:
Latest STABLE php from snaps.php.net (dated 7/10/02 9 AM)
pth-1.4.1.tar.gz from ftp.gnu.org/gnu/pth/ (this 'may' have
helped!)
2) reconfigured, apache using:
./configure --prefix=/path/to/apache --with-module=so
make clean, make, make install
(NOTE: I don't think this was needed, but I wanted clean!
Also
didn't start it yet.)
3) installed the new STABLE php 4.2.1 and made some changes:
In 'path to php'/ext/standard commented out in microtime.c
line 31
"#ifedf HAVE_SYS_RESOURCE_H" to "/* #ifedf
HAVE_SYS_RESOURCE_H */"
NO quotes!
and also line 33
"#endif" to "/* #endif */" No Quotes!
I don't know what the problem was. I knew it needed the
include on
line 32.
so this just puts the darn thing in!
The previous problems in php_functions.c seemed to be fixed,
so no
change there.
4) config php:
run 'make distclean'
./configure --with-mysql --with-zlib
--with-apxs2=/usr/local/apache/bin/apxs
Note: /usr/local/apache is my path! Yours could be
/I/like/grandma/bin/apxs!
make clean, make
NOTE: I get like 6 warnings about RLIM_INFINITY being
redefined
during the make.
I believe it has to do with different versions of my
resource.h.
I think this is due to uprading my kernel. Not to worry if
you get
this.
It is just a warning. Has to do with the declaration of the
size of
it I think.
make install
5) back to /usr/local/apache/conf and edit httpd.conf
make sure that 'AddType application/x-httpd-php .php' is
there
IT WASN'T! Rumor says it auto places it. HEH!
Also make sure 'LoadModule php4_module
modules/libphp4.so' is
there.
It was. Huh??? Oh well.
apachectl start
a edit quick helloworld.php
open fav web browser, bang!
Scream Haleluyah while dancing a jig! People in office look
at you
funny.
Man I hope I save someone some time!
-----Original Message-----
From: Chris Santerre [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 10, 2002 12:28 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP-INST] Anyone got PHP 4.2.1 and Apache 2.0.39 to work
completely?
I have been trying for days. I've read just about everything. I'm going to
now try the latest stable cvs and making sure that the correct line 93 in
php_functions.c is there. I just wanted to know if anyone has had success
yet?
reading like a squirrel on crack,
Chris
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I'm unable to get safe_mode to work. I get errors like this in my
error_log (linebreaks edited for readability):
PHP Warning: SAFE MODE Restriction in effect. The script whose uid
is -1 is not allowed to access /var/www/www2.slamb.org/root/test.php
owned by uid 500 in Unknown on line 0
PHP Warning: (null)("/var/www/www2.slamb.org/root/test.php") -
Resource temporarily unavailable in Unknown on line 0
PHP Warning: Failed opening '/var/www/www2.slamb.org/root/test.php'
for inclusion (include_path='.:/usr/local/lib/php') in Unknown on
line 0
I suspect the problem is that it is unable to determine the name (and
thus UID) of the script because it's being called as an Apache 2.0
filter. I've tried both these configurations with the same result:
SetOutputFilter PHP
SetInputFilter PHP
and
AddType application/x-httpd-php .php
Is there some other way I can configure it? Or am I way off?
Thanks,
Scott Lamb
--- End Message ---
--- Begin Message ---
Hello all,
When running the following configure command I get an error telling me to
check the debug.log file. I have pasted my debug.log file below, has anyone seen this
error before and know how to fix it?
====Start of log====
CONFIGURE: './configure' '--with-oci8' '--with-apache=../apache_1.3.26'
'--enable-track-vars' '--without-mysql'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS: -D_POSIX_PTHREAD_SEMANTICS
CXX:
CXXFLAGS:
INCLUDES: -I/export/home/install/apache_1.3.26/src/include
-I/export/home/install/apache_1.3.26/src/os/unix -I$(top_builddir)/Zend
-I/u01/app/oracle/product/9.0.1/rdbms/public
-I/u01/app/oracle/product/9.0.1/rdbms/demo -I/u01/app/oracle/product/9.0.1/plsql/public
LDFLAGS: -R/usr/ucblib -L/usr/ucblib -R/u01/app/oracle/product/9.0.1/lib
-L/u01/app/oracle/product/9.0.1/lib
LIBS: -ldl -lgen -lsocket -lnsl -lcrypt -lresolv -lresolv -lresolv -lm -ldl
-lnsl -lsocket -lsocket -lcrypt -lclntsh
DLIBS:
SAPI: apache
PHP_RPATHS: /usr/ucblib /u01/app/oracle/product/9.0.1/lib
uname -a: SunOS chirp 5.8 Generic_108528-09 sun4u sparc SUNW,Sun-Blade-100
gcc -o conftest -g -O2 -D_POSIX_PTHREAD_SEMANTICS -R/usr/ucblib -L/usr/ucblib
-R/u01/app/oracle/product/9.0.1/lib -L/u01/app/oracle/product/9.0.1/lib conftest.c
-ldl -lgen -lsocket -lnsl -lcrypt -lresolv -lresolv -lresolv -lm -ldl -lnsl -lsocket
-lsocket -lcrypt -lclntsh 1>&5
ld: fatal: file /u01/app/oracle/product/9.0.1/lib/libclntsh.so: wrong ELF class:
ELFCLASS64
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
====End of Log====
Sincerely,
Brian Vaughan
IT Administrator
--- End Message ---