php-install Digest 17 Jan 2002 01:49:04 -0000 Issue 653

Topics (messages 5596 through 5605):

Problem with Win32 php4apache.dll
        5596 by: julian.stevens.onthebeach.co.uk

perl process killed when executed from php
        5597 by: judyl

Re: using PHP as ROOT
        5598 by: Robert Abbate
        5600 by: Jonathan Hilgeman

fix for problem with configure script libxml
        5599 by: Jon Wagoner

Newbie help please :) "incule_path=''.. see inside
        5601 by: Pham Duy Phuc
        5604 by: Yasuo Ohgaki

Re: problems with snmp and php
        5602 by: Giovanny Miguel Orozco Theran
        5603 by: Rasmus Lerdorf

Apache 1.3.19 + php 4.1.1 + RH 7.1 - Invalid ELF Header
        5605 by: Steve Farmer

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 ---
I have been using a binary distribution of Apache 1.3.20 with PHP 4.1.1 on Windows NT 
for a little while now, but cannot get PHP to work as a load module. If I configure 
Apache to use PHP as a CGI executable it works fine, but I would like to use some of 
the features that only come with the module.

In my http.conf I have:

LoadModule php4-module d:/php/sapi/php4apache.dll

and I have copied php4ts.dll to winnt\system32

On starting apache I get the following message:
warn: Loaded DSO php4-module d:/php/sapi/php4apache.dll uses plain Apache 1.3 API, 
this module might crash under EAPI! (please recompile it with -DEAPI)

I'm not sure how important this warning is, but as I'm using a binary distribution I 
am not able to recompile. In addition, when I try to load any PHP programs in my 
browser I get the message:

Warning: Failed opening '/apache/htdocs/myprog.php' for inclusion (include_path = 
'.;d:\php\includes) in Unknown on line 0.

Nothing else appears in the browser!

Please can anyone suggest how I can get the PHP module to work.


----------
Get a free, personalised email address at http://another.com
TXT ALRT! Stop wasting money now. Send FREE, personalised txt
msgs to UK mobile phones from http://another.com
--- End Message ---
--- Begin Message ---
problem:  long running perl processes appear to be killed when initiated
from php with exec command, even if perl process immediately forks to create
(hopefully) a disconnected daemon.
question:  is there any install parameter for PHP or Apache or other work
around that would still kill off completed php script, but allow perl
process to live?


--- End Message ---
--- Begin Message ---
Hi. Many things. I am trying to create a web hosting control panel, so I'll
need to be able to update Zone files, add email accounts, etc. All of which
require the user to be "root" How can php do this? How do I get the scripts
to be able to have root permissions?

Robert

<[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Robert Abbate wrote:
> >
> > Hi. I am trying to have PHP do things as a ROOT user. Like: make files,
> > change permissions of files etc...
> >
> > however, I cannot do it! Even if I give the php scripts root ownership,
it
> > still says that apache is the owner of the files, and hence, I can't do
> > anything with them.
> >
> > Does anyone have any insight?
> >
> > Thanks,
> > Robert A
>
> Hello,
>
> What thing do you want to do ?
>
> Edward.

<[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Robert Abbate wrote:
> >
> > Hi. I am trying to have PHP do things as a ROOT user. Like: make files,
> > change permissions of files etc...
> >
> > however, I cannot do it! Even if I give the php scripts root ownership,
it
> > still says that apache is the owner of the files, and hence, I can't do
> > anything with them.
> >
> > Does anyone have any insight?
> >
> > Thanks,
> > Robert A
>
> Hello,
>
> What thing do you want to do ?
>
> Edward.


--- End Message ---
--- Begin Message ---
Hi Robert,
First, giving ownership to files is not the same as making them run as that
user. Ownership of a file is directly related to what permissions are needed
to do things with the file, like reading from, writing to, and executing it.

If you need to run PHP as root, you can use a utility called Sudo. However,
since this is technically allowing anyone using the web server to do things
as root, you MUST be unbelievable cautious with security. If you are not,
then eventually you will get someone who will try to wreck or get into your
system. 

Sudo is not JUST for root, however. It allows you to specify what user you
want to be, and you can limit functionality to certain files or programs. I
highly recommend you take at least a few days to thoroughly read Sudo's
manual first, then search around the Net for Sudo-related material and ask
for tips from people that are using it.

Another trick is to set up a separate instance/installation of Apache
running on a different port. Since you can specify what user Apache will run
as, you can make that 2nd Apache be root or some other privileged user. But
again, you MUST be cautious not to let anyone input any custom scripting
that could get executed, otherwise you're letting a stranger send commands
as root to the server. I recommend this second method if you're sure you can
be secure with your programming.

- Jonathan, SiteCreative.com

-----Original Message-----
From: Robert Abbate [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 16, 2002 10:44 AM
To: [EMAIL PROTECTED]
Subject: [PHP-INST] Re: using PHP as ROOT


Hi. Many things. I am trying to create a web hosting control panel, so I'll
need to be able to update Zone files, add email accounts, etc. All of which
require the user to be "root" How can php do this? How do I get the scripts
to be able to have root permissions?

Robert

<[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> Robert Abbate wrote:
> >
> > Hi. I am trying to have PHP do things as a ROOT user. Like: make files,
> > change permissions of files etc...
> >
> > however, I cannot do it! Even if I give the php scripts root ownership,
it
> > still says that apache is the owner of the files, and hence, I can't do
> > anything with them.
> >
> > Does anyone have any insight?
> >
> > Thanks,
> > Robert A
>
> Hello,
>
> What thing do you want to do ?
>
> Edward.

<[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Robert Abbate wrote:
> >
> > Hi. I am trying to have PHP do things as a ROOT user. Like: make files,
> > change permissions of files etc...
> >
> > however, I cannot do it! Even if I give the php scripts root ownership,
it
> > still says that apache is the owner of the files, and hence, I can't do
> > anything with them.
> >
> > Does anyone have any insight?
> >
> > Thanks,
> > Robert A
>
> Hello,
>
> What thing do you want to do ?
>
> Edward.



-- 
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]
--- End Message ---
--- Begin Message ---
A machine I was installing on had both libxml and libxml2.  In the configure script 
test, it has:
 
  if test -r $PHP_DOM/include/libxml/tree.h; then
    DOMXML_DIR=$PHP_DOM
  elif test -r $PHP_DOM/include/libxml2/libxml/tree.h; then
    DOMXML_DIR=$PHP_DOM
    DOMXML_DIR_ADD="/libxml2"

Since it found libxml first, it said I needed a later version.  I changed it to look 
for libxml2 first, since that should be newer, and it works fine:
 
  if test -r $PHP_DOM/include/libxml2/libxml/tree.h; then
    DOMXML_DIR=$PHP_DOM
    DOMXML_DIR_ADD="/libxml2"
  elif test -r $PHP_DOM/include/libxml/tree.h; then
    DOMXML_DIR=$PHP_DOM
 
Jon
--- End Message ---
--- Begin Message ---
I'am a newbie to PHP, just installed in my W2k no server edition, thing
shows up like below  when i run the **.php sript from my
http://home/helloworld.php , have you got any ideal about the .ini file ,
would you guys be so kind such as tell me how to fix this problem.
Thanx in advance
a PHP newbie from vietnam.
--- here is the text which show up when i run the script from  my IIS.

Warning: Failed opening 'c:\inetpub\wwwroot\hellowolrd.php' for inclusion
(include_path='.;c:\php\includes') in Unknown on line 0



--- End Message ---
--- Begin Message ---
Pham Duy Phuc wrote:
> I'am a newbie to PHP, just installed in my W2k no server edition, thing
> shows up like below  when i run the **.php sript from my
> http://home/helloworld.php , have you got any ideal about the .ini file ,
> would you guys be so kind such as tell me how to fix this problem.
> Thanx in advance
> a PHP newbie from vietnam.
> --- here is the text which show up when i run the script from  my IIS.
> 
> Warning: Failed opening 'c:\inetpub\wwwroot\hellowolrd.php' for inclusion
> (include_path='.;c:\php\includes') in Unknown on line 0
> 

There is a known issue for include path. (GCI version)

You may need to specify

include_path="c:\php/includes" or
include_path="c:/php\indluees"

I forgot which is working.

BTW, searching bug db would help for these kind of problems ;)

-- 
Yasuo Ohgaki

--- End Message ---
--- Begin Message ---
Mr. -Rasmus
we try adding --with-kerberos to us configure line, and we build ucd-snmp
without kerberos support
but not run, follow the same error

# ./apachectl start
  Syntax error on line 205 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/lib/libsnmp-0.4.2.1 .so: symbol kstat_open: referenced symbol not
found
./apachectl start: httpd could not be started

do you have other idea?


--- End Message ---
--- Begin Message ---
Try adding -lkstat to the LIBS line in your Apache src/Configure file.
Find the right platform in that file and add it there.

On Wed, 16 Jan 2002, Giovanny Miguel Orozco Theran wrote:

> Mr. -Rasmus
> we try adding --with-kerberos to us configure line, and we build ucd-snmp
> without kerberos support
> but not run, follow the same error
>
> # ./apachectl start
>   Syntax error on line 205 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/lib/libsnmp-0.4.2.1 .so: symbol kstat_open: referenced symbol not
> found
> ./apachectl start: httpd could not be started
>
> do you have other idea?
>
>

--- End Message ---
--- Begin Message ---
Hi all,

I am trying to compile php 4.1.1 and apache 1.3.19 under Redhat 7.1 
and i am getting the follwing error...

error while loading shared libraries /usr/local/ssl/lib/libssl.so.1 : 
invalid ELF header.

I have downloaded openssl 0.9.6c so all that is up to date.

Any ideas what the problem is?

TIA
Steve Farmers
-- 
-------------------------------------------------
"Minds are like parachutes, they work best when open"
Support free speech; visit http://www.efa.org.au/

Heads Together Systems Pty Ltd http://www.hts.com.au
Email: [EMAIL PROTECTED]     Tel: 612 9982 6767     Fax: 612 9981 3081 
--- End Message ---

Reply via email to