Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Arrrg! Permissions driving me nuts in PHP [UN-SOLVED]



Sach, Steve, Darren, Stephen,

Thanks for following up with more advice.

Seems Sach was basically right about the state of affairs. I tried this
code:

  $old=umask(0);
  mkdir($dirPath,0777);
  umask($old);

... and it didn't work. Then I put things back, but it's still not
working. Now I don't know if experimenting with the code broke
something, or if the time when it worked was an anomaly.

So... first, the script is being run from a web browser. Not CLI.
However, the ultimate intention is to run it via cron job. I don't know
if cron is run under the authority of the apache user or what.

# ps aux | grep apache
nobody    7513  0.3  0.0 24296 12396 ?       S    05:12   0:14
/usr/local/apache/bin/httpd -k start -DSSL
root     15994  0.0  0.0 23632 12788 ?       Ss   Nov23   0:18
/usr/local/apache/bin/httpd -k start -DSSL
nobody   25784  0.4  0.0 24044 12132 ?       S    05:10   0:17
/usr/local/apache/bin/httpd -k start -DSSL
root     28489  0.0  0.0  1648  472 pts/0    S+   06:14   0:00 grep apache

# ps aux | grep httpd
nobody    7513  0.3  0.0 24296 12400 ?       S    05:12   0:14
/usr/local/apache/bin/httpd -k start -DSSL
root      7550  0.0  0.0  1648  472 pts/0    S+   06:15   0:00 grep httpd
root     15994  0.0  0.0 23632 12788 ?       Ss   Nov23   0:18
/usr/local/apache/bin/httpd -k start -DSSL

Any ideas about what I can do to further analyze and diagnose this
situation.

-- 
Dave M G


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links