icon Learn how to get the most out of Surmunity - read our forum tips here! | Welcome! Please register to access all of our features.

» Surpass Web Hosting Forums » Discussions » PHP, MySQL » PHPsuexec » CRON Blues.

PHPsuexec Information and tips

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread
Old October 12th, 2006, 2:00 AM   #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.
Dygear is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 12th, 2006, 8:05 AM   #2 (permalink)
Surpass Fan
Super #1
 
markscns's Avatar
 
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
markscns is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 12th, 2006, 6:43 PM   #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.
Dygear is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 12th, 2006, 6:45 PM   #4 (permalink)
バタフライ
 
Kayla's Avatar
 
Joined in May 2003
Lives in Orlando
23,560 posts
Gave thanks: 885
Thanked 706 times
Blog Entries: 28
So it's 644 and it works now, or it still does not work?
Kayla is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 12th, 2006, 7:02 PM   #5 (permalink)
Surpass Fan
Excelling Contributor
 
cowboy's Avatar
 
Joined in Nov 2005
Lives in Colorado
Hosted on DEDI
921 posts
Gave thanks: 2
Thanked 91 times
Quote:
Originally Posted by Dygear View Post
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.
If root is running the cron, you might have to have that file 777 or at least 755 if it is a file type that is not included in the ExecCGI directive (makes a file executable, ie. 644 = 755).

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)?
cowboy is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 13th, 2006, 2:08 AM   #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.
Dygear is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 13th, 2006, 9:31 AM   #7 (permalink)
Surpass Fan
Super #1
 
markscns's Avatar
 
Joined in Jan 2006
Lives in West Michigan
Hosted on SH92
1,522 posts
Gave thanks: 42
Thanked 112 times
Have you tried setting it to 755 as cowboy suggested? Glad it's working now though.
__________________
twinlakeweather.us SH92
markscns is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old October 14th, 2006, 10:10 PM   #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.
Dygear is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old March 17th, 2007, 8:02 AM   #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.
Nameeater is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On