php-install Digest 18 Jun 2003 15:56:53 -0000 Issue 1427

Topics (messages 11102 through 11110):

4.2.3 session login problem...
        11102 by: NIPP, SCOTT V (SBCSI)
        11103 by: Stephen
        11104 by: NIPP, SCOTT V (SBCSI)

apache permissions with php 4.3.2
        11105 by: Jacob Marble
        11106 by: Adam Voigt
        11107 by: Jacob Marble

Re: [PHP-DB] 4.2.3 session login problem...
        11108 by: CPT John W. Holmes

Re: apxs:Error: Unknown option: S
        11109 by: Michael Mauch

apache 2.0.46 + PHP 4.3.2 install problem
        11110 by: Renaud Paquay

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 an application that is currently working fine under 4.1.2,
and I am in the process of upgrading to 4.2.3.  The problem is that after
upgrading PHP the application login no longer works.  Additionally, this
same application works fine on another machine running 4.2.3.  The only
difference in the machines is that the working one uses PHP as a static
module and the broken one uses PHP as a loadable module.  Anyone run into
this problem before?  Thanks in advance.

Scott Nipp
Phone:  (214) 858-1289
E-mail:  [EMAIL PROTECTED]
Web:  http:\\ldsa.sbcld.sbc.com



--- End Message ---
--- Begin Message ---
Chances are your problem lies with Register Globals. In php 4.1.x this
defaulted to on, which meant that all session variables were access as
$mysessionthingy
However, in php 4.2.x and higher, the way sessions work has changed
dramatically. However, the old methods (using session_start and so on) are
still supported IF you set register_globals to ON in your php.ini file. For
more infomation, please go to the php site and look up sessions. I
personally believe the new method is a lot better than the older methods,
and suggest you consider updating!

Hope this helps,

Stephen

----- Original Message ----- 
From: "NIPP, SCOTT V (SBCSI)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, June 17, 2003 4:13 PM
Subject: [PHP-INST] 4.2.3 session login problem...


> I have an application that is currently working fine under 4.1.2,
> and I am in the process of upgrading to 4.2.3.  The problem is that after
> upgrading PHP the application login no longer works.  Additionally, this
> same application works fine on another machine running 4.2.3.  The only
> difference in the machines is that the working one uses PHP as a static
> module and the broken one uses PHP as a loadable module.  Anyone run into
> this problem before?  Thanks in advance.
>
> Scott Nipp
> Phone:  (214) 858-1289
> E-mail:  [EMAIL PROTECTED]
> Web:  http:\\ldsa.sbcld.sbc.com
>
>
>
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



--- End Message ---
--- Begin Message ---
        Thanks.  This did indeed turn out to be the problem.  I have it
working now, although someday I will need to correct everything such that I
can keep Register Globals off.

-----Original Message-----
From: Stephen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 17, 2003 10:20 AM
To: NIPP, SCOTT V (SBCSI)
Cc: Installation Helplist (PHP)
Subject: Re: [PHP-INST] 4.2.3 session login problem...


Chances are your problem lies with Register Globals. In php 4.1.x this
defaulted to on, which meant that all session variables were access as
$mysessionthingy
However, in php 4.2.x and higher, the way sessions work has changed
dramatically. However, the old methods (using session_start and so on) are
still supported IF you set register_globals to ON in your php.ini file. For
more infomation, please go to the php site and look up sessions. I
personally believe the new method is a lot better than the older methods,
and suggest you consider updating!

Hope this helps,

Stephen

----- Original Message ----- 
From: "NIPP, SCOTT V (SBCSI)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, June 17, 2003 4:13 PM
Subject: [PHP-INST] 4.2.3 session login problem...


> I have an application that is currently working fine under 4.1.2,
> and I am in the process of upgrading to 4.2.3.  The problem is that after
> upgrading PHP the application login no longer works.  Additionally, this
> same application works fine on another machine running 4.2.3.  The only
> difference in the machines is that the working one uses PHP as a static
> module and the broken one uses PHP as a loadable module.  Anyone run into
> this problem before?  Thanks in advance.
>
> Scott Nipp
> Phone:  (214) 858-1289
> E-mail:  [EMAIL PROTECTED]
> Web:  http:\\ldsa.sbcld.sbc.com
>
>
>
> -- 
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--- End Message ---
--- Begin Message ---
Hey all-
    I'm writing some PHP scripts that have the ability to delete, rename,
upload, etc. files to the webserver.  It's a simple on-line file manager for
some family members.
    The question: I don't want to allow apache to delete certain files,
specifically files that are owned by root.  But it can.  I made a simple
phpinfo.php file and I can delete it with this file manager.  I don't think
it ought to, since it's run as user nobody (httpd.conf setting).  I've tried
changing the setting in httpd.conf to a new user called apache, still no
good.
    Doing a "ps aux" from the bash prompt says that apache has about 6 or 8
processes, the first of which is being run as root; the rest are apache (or
nobody, depending on the httpd.conf setting).  To remedy this, I stopped
apache and then restarted it with:
    su -c "/usr/local/apache2/bin/apachectl start" apache
    It wouldn't start, complaining that it couldn't access the log file.
I've tried chown'ing the inaccessable files, I've tried doing my make
install as user apache, all did no good.
    Does anyone know a good solution to this problem?  How to get apache to
run completely as a user other than root?

Thanks in advance,

Jake

LandEZ



--- End Message ---
--- Begin Message ---
You can start apache with "apachectl start" as root just fine,
you don't need to su to the apache user. And you must be
mis-understanding the permissions or something cause if you
do infact have apache running as a seperate user, there's no
way it can delete a file owned by root unless maybe the user
it's running as is in the root group.



On Tue, 2003-06-17 at 11:47, Jacob Marble wrote:
> Hey all-
>     I'm writing some PHP scripts that have the ability to delete, rename,
> upload, etc. files to the webserver.  It's a simple on-line file manager for
> some family members.
>     The question: I don't want to allow apache to delete certain files,
> specifically files that are owned by root.  But it can.  I made a simple
> phpinfo.php file and I can delete it with this file manager.  I don't think
> it ought to, since it's run as user nobody (httpd.conf setting).  I've tried
> changing the setting in httpd.conf to a new user called apache, still no
> good.
>     Doing a "ps aux" from the bash prompt says that apache has about 6 or 8
> processes, the first of which is being run as root; the rest are apache (or
> nobody, depending on the httpd.conf setting).  To remedy this, I stopped
> apache and then restarted it with:
>     su -c "/usr/local/apache2/bin/apachectl start" apache
>     It wouldn't start, complaining that it couldn't access the log file.
> I've tried chown'ing the inaccessable files, I've tried doing my make
> install as user apache, all did no good.
>     Does anyone know a good solution to this problem?  How to get apache to
> run completely as a user other than root?
> 
> Thanks in advance,
> 
> Jake
> 
> LandEZ
-- 
Adam Voigt ([EMAIL PROTECTED])
Linux/Unix Network Administrator
The Cryptocomm Group


--- End Message ---
--- Begin Message ---
I understand that, the thing is that it _is_ deleting files owned
exclusively by root.
The only thing I can figure is that I happen to be a www client on the first
apache process.  "ps aux":
<snip>
root       204  0.0  0.1  2240 1288 ttyp0    S    Jun16   0:00 -bash
root     15892  0.0  0.5  6920 4320 ?        S    Jun16   0:00
/usr/local/apache2/bin/httpd -k start  <--that right there
apache   15905  0.0  0.6  7104 4800 ?        S    Jun16   0:00
/usr/local/apache2/bin/httpd -k start
apache   15906  0.0  0.6  7152 4808 ?        S    Jun16   0:00
/usr/local/apache2/bin/httpd -k start
apache   15907  0.0  0.6  7028 4700 ?        S    Jun16   0:00
/usr/local/apache2/bin/httpd -k start
apache   15908  0.0  0.6  7088 4784 ?        S    Jun16   0:00
/usr/local/apache2/bin/httpd -k start
apache   15909  0.0  0.6  7012 4652 ?        S    Jun16   0:00
/usr/local/apache2/bin/httpd -k start
apache   15911  0.0  0.6  7164 4944 ?        S    Jun16   0:00
/usr/local/apache2/bin/httpd -k start
apache   15912  0.0  0.6  7104 4768 ?        S    Jun16   0:00
/usr/local/apache2/bin/httpd -k start
apache   15913  0.0  0.6  7152 4800 ?        S    Jun16   0:00
/usr/local/apache2/bin/httpd -k start
root     16499  0.0  0.1  2588  792 ttyp0    R    09:59   0:00 ps aux
</snip>
    Can you see what I'm thinking?  I don't know if my hypothesis is sound,
I don't know that much about how apache actually "thinks".

Thanks,

Jake

"Adam Voigt" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> You can start apache with "apachectl start" as root just fine,
> you don't need to su to the apache user. And you must be
> mis-understanding the permissions or something cause if you
> do infact have apache running as a seperate user, there's no
> way it can delete a file owned by root unless maybe the user
> it's running as is in the root group.
>
>
>
> On Tue, 2003-06-17 at 11:47, Jacob Marble wrote:
> > Hey all-
> >     I'm writing some PHP scripts that have the ability to delete,
rename,
> > upload, etc. files to the webserver.  It's a simple on-line file manager
for
> > some family members.
> >     The question: I don't want to allow apache to delete certain files,
> > specifically files that are owned by root.  But it can.  I made a simple
> > phpinfo.php file and I can delete it with this file manager.  I don't
think
> > it ought to, since it's run as user nobody (httpd.conf setting).  I've
tried
> > changing the setting in httpd.conf to a new user called apache, still no
> > good.
> >     Doing a "ps aux" from the bash prompt says that apache has about 6
or 8
> > processes, the first of which is being run as root; the rest are apache
(or
> > nobody, depending on the httpd.conf setting).  To remedy this, I stopped
> > apache and then restarted it with:
> >     su -c "/usr/local/apache2/bin/apachectl start" apache
> >     It wouldn't start, complaining that it couldn't access the log file.
> > I've tried chown'ing the inaccessable files, I've tried doing my make
> > install as user apache, all did no good.
> >     Does anyone know a good solution to this problem?  How to get apache
to
> > run completely as a user other than root?
> >
> > Thanks in advance,
> >
> > Jake
> >
> > LandEZ
> -- 
> Adam Voigt ([EMAIL PROTECTED])
> Linux/Unix Network Administrator
> The Cryptocomm Group
>



--- End Message ---
--- Begin Message ---
> I have an application that is currently working fine under 4.1.2,
> and I am in the process of upgrading to 4.2.3.  The problem is that after
> upgrading PHP the application login no longer works.  Additionally, this
> same application works fine on another machine running 4.2.3.  The only
> difference in the machines is that the working one uses PHP as a static
> module and the broken one uses PHP as a loadable module.  Anyone run into
> this problem before? 

Yes, I have. Your problem is on line 325.

---John Holmes...

--- End Message ---
--- Begin Message ---
Gaetano Paolo Viola wrote:

> I've a problem during installation of php 4.0.6 whit apache 1.3.6 on a
> Sun Blade 100 whit SunOs 5.8,

> apxs:Error: Unknown option: S

Your ancient PHP is still too new for your pre-historical Apache. Grab
the latest 1.3.x Apache (1.3.27) and the latest PHP (4.3.2).

Regards...
                Michael

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

I'm trying installing an apache 2.0.46 with PHP 4.3.2

I compiled and installed the modules following the installation instructions found on php.net
Unfortunately, when I attempt to view a simple testpage.html the only result I find is a blank page. When I take a look to the source, I see my PHP code....So the page wasn't processed by php...


apache:
./configure --enable-so
make
make install

PHP
./configure --with-apxs2=/usr/local/apache2/bin/apxs
make
make install
I copied the php.ini-dist in /usr/local/lib/php.ini

but no success... :-(

Anyone could help me with this fu#!@& install ?

Thanks

Renaud

_________________________________________________________________
Hotmail: votre e-mail gratuit ! http://www.fr.msn.be/hotmail


--- End Message ---

Reply via email to