|
|
#1 (permalink) |
|
Registered User
Seasoned Poster
Joined in Jul 2004
Lives in NY, NY
Hosted on I dont know!
47 posts
Gave thanks: 0
Thanked 0 times
|
CRON Blues.
I'm trying to use cron to run a php script. But, I'm getting a Permission denied error. Anyone know how to fix this?
__________________
Hosted By Surpasshosting on sh99 : SimFIA, TheNZ. Hosted By KingPinServers : Eagle Race Team.
|
|
|
|
|
|
#2 (permalink) |
|
Surpass Fan
Super #1
Joined in Jan 2006
Lives in West Michigan
Hosted on SH92
1,522 posts
Gave thanks: 42
Thanked 112 times
|
List the code you are trying to use to open the php page. There are some things disabled on Shared servers, so it might help to know the method you are using to see if that is the reason why.
__________________
twinlakeweather.us SH92 |
|
|
|
|
|
#3 (permalink) |
|
Registered User
Seasoned Poster
Joined in Jul 2004
Lives in NY, NY
Hosted on I dont know!
47 posts
Gave thanks: 0
Thanked 0 times
|
Can't the code is proprietary. Also, I fixed it, and now have a new issue on my hands ...
Seems you need to make the file 777 to cron that file. Odd consdering PHPsuexec's wanting of 644.
__________________
Hosted By Surpasshosting on sh99 : SimFIA, TheNZ. Hosted By KingPinServers : Eagle Race Team.
|
|
|
|
|
|
#5 (permalink) | |
|
Surpass Fan
Excelling Contributor
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
921 posts
Gave thanks: 2
Thanked 91 times
|
Quote:
If it is in a directory that needs other files to run by user, you also might have to move it to a directory of it's own, so user can run it's own files.
__________________
Where would you be if you were at the highest court in the land (US)? |
|
|
|
|
|
|
#6 (permalink) |
|
Registered User
Seasoned Poster
Joined in Jul 2004
Lives in NY, NY
Hosted on I dont know!
47 posts
Gave thanks: 0
Thanked 0 times
|
Yea, this file is never ment to be run by a client. Just from cron.
Also, yes I have it set to 777 now, and that's how it started working. It would not work with 644, and that needs to be fixed.
__________________
Hosted By Surpasshosting on sh99 : SimFIA, TheNZ. Hosted By KingPinServers : Eagle Race Team.
|
|
|
|
|
|
#8 (permalink) |
|
Registered User
Seasoned Poster
Joined in Jul 2004
Lives in NY, NY
Hosted on I dont know!
47 posts
Gave thanks: 0
Thanked 0 times
|
Ya know it started working, as in giving me output. But that output is an error. It would seem that it's attempting to run it as a shell script. Is there a way that I can tell it to run as a php script?
__________________
Hosted By Surpasshosting on sh99 : SimFIA, TheNZ. Hosted By KingPinServers : Eagle Race Team.
|
|
|
|
|
|
#9 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Jul 2005
5 posts
Gave thanks: 0
Thanked 0 times
|
Ello Ello, quick google and I found this page:
http://www.htmlcenter.com/tutorials/...s.cfm/155/PHP/ I checked my shared server phpinfo and it said CGI, so do a quick test on your account and if your lucky, then the CGI suggestion will do what your after. If it says "apache" your probably going to be stuck. |
|
|
|