Never mind, I found it. :-) I just assumed that /proc was readable by
everyone, but found it was set to 750. I hadn't noticed it because my
regular (non-root) user ID belongs to the adm group, which still has read
there. Changed it to 755, and now the web application is working fine.
--Dave
David Guntner grabbed a keyboard and wrote:
>
> I've got a php script running a web page, which needs to be able to do
> things like "ps" to determine if other processes that it will start and
> stop are running. I've discovered that (apparently) by default, the /proc
> filesystem isn't available to the apache user. When I do a "su - apache"
> to be the apache user and try to do a "ps," I get this:
>
> $ ps -ef
> Error: /proc must be mounted
> To mount /proc at boot you need an /etc/fstab line like:
> /proc /proc procdefaults
> In the meantime, mount /proc /proc -t proc
> $
>
> I *only* get that when su'd to apache, if I'm a regular user, a "ps" works
> just fine.
>
> So the question is: How do I enable /proc for apache?
>
> --Dave
> --
> David Guntner GEnie: Just say NO!
> http://www.akaMail.com/pgpkey/davidg or key server
> for PGP Public key
>
>
>
--
David Guntner GEnie: Just say NO!
http://www.akaMail.com/pgpkey/davidg or key server
for PGP Public key
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com