correction: #!/usr/bin/php
-- Nicole URLTrak.com ElixirSafelist.com aeontrek.com "Nicole" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Thank you. Yes, I did chmod my scripts. chmod 754 and tried 755 too. Don't > see why it should be x on the world, though. I would think if the script is > being called by its owner, then x on the owner and group should be enough, > no? > > I'm even using !#/usr/bin/php ... but then it doesn't even seem to be using > it. > > I'll go through the man pages again, too. > > The "find" and "locate" commands will be useful. I will try those. Thanks! > Although since you mentioned the local configuration via apache's .htaccess, > maybe that is what I need. I still can't figure out how to turn safe mode > off for the local column. > > Thanks, > > Nicole > > -- > > "Michael Mauch" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Nicole <[EMAIL PROTECTED]> wrote: > > > I am having trouble doing things with PHP such as use the exec, system, > > > etc. functions. I can't seem to find the correct php.ini to turn > safe_mode > > > off. The one file I did find has safe_mode turned off. When I view > phpinfo() > > > it shows the global column with safe_mode off, but for the local column, > it > > > is on. Is there a local php.ini file for each site? > > > > No. But the values found in the global php.ini can be changed in > > Apache's httpd.conf and in .htaccess files. See > > <http://www.php.net/manual/en/configuration.changes.php>. > > > > You can have a .htaccess file in every directory to pass additional > > options to Apache (and mod_php). A .htaccess is used for the directory > > where it resides and for all subdirectories. > > > > Try "locate .htaccess" or "find / -name .htaccess". > > > > > I need to call a script to run in the background and I want to be able > to > > > use exec() to call it. Is there an alternative way to do this without > > > bothering with the safe_mode value? i'd prefer to leave safe_mode on; > but at > > > the same rate, I am the only one with access to the server as it is my > > > dedicated server. > > > > If you're the only person on that machine, there's no point in using > > safe mode. > > > > > I am not familiar enough with Linux just yet to know how to give > permissions > > > to my sites to use things such as cron which I desperately need to > figure > > > out. I know how to add a crontab for a user, etc. But when the cron > file > > > runs, I just get a permission denied. I have tried it for both root and > the > > > site user. The only thing that does work is me getting an email stating > > > permission denied. So I know my crontab file is correct. As far as > > > permissions, I'm in a cloud. I have no idea what to do to make it work > and > > > maintain a secure system. > > > > Perhaps you just forgot to make your program/script executable ("chmod > > +x your_script"). > > > > > Anyone know where some great (free) docs that will show me how to fish > > > around in Linux? I don't need to be hand fed. Just some direction. > Thanks! > > > > Almost all programs have man pages, so you can use "man chmod" to find > > out about "chmod". And then there's the Linux Documentation Project > > <http://www.tldp.org/>, which has lots of howtos. > > > > Regards... > > Michael > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php