TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 10-11-2010, 03:23 AM   #1 (permalink)
The Acquainted
 
KingOfTheSouth's Avatar
 
Join Date: Oct 2008
Location: Cincinnati
Posts: 151
Thanks: 14
KingOfTheSouth is on a distinguished road
Default Cron Jobs

I have a question I know how to set crons but I set up a new site on a new server and when they are ran and they do the error reporting to my email it says. "Permission Denied" I have never had this problem before and it has got me mad because I know it shouldn't be doing that. I know it is not my code and its connected to the database correctly. But I asked someone else about it all they said was ask the host. Anyone got an answer to the problem please?
KingOfTheSouth is offline  
Reply With Quote
Old 10-11-2010, 05:59 AM   #2 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

What is saying "access denied?" The script that is being ran or Cron?

Also, please clean up your grammar; that was a very difficult to read post.
__________________

Village Idiot is offline  
Reply With Quote
Old 10-11-2010, 06:03 AM   #3 (permalink)
The Acquainted
 
KingOfTheSouth's Avatar
 
Join Date: Oct 2008
Location: Cincinnati
Posts: 151
Thanks: 14
KingOfTheSouth is on a distinguished road
Default

When the error is reporting it says "Permission Denied" it is when the script is being ran. But I know it is not the script because when I replace the script with one that I know for a fact works I get the same error.

Sorry about grammar I am not too great with punctuation.
KingOfTheSouth is offline  
Reply With Quote
Old 10-11-2010, 06:10 AM   #4 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

If the script is throwing the error the script is clearly the issue. Can you manually run the file it is calling?
__________________

Village Idiot is offline  
Reply With Quote
Old 10-11-2010, 06:15 AM   #5 (permalink)
The Acquainted
 
KingOfTheSouth's Avatar
 
Join Date: Oct 2008
Location: Cincinnati
Posts: 151
Thanks: 14
KingOfTheSouth is on a distinguished road
Default

It is not the script though, When I replace the script with another script that I know for a fact works I get the same error. Like I stated above...

I am sure I can but I am not too sure how to do that. I am not new to crons I just do not know much about them besides just setting them for automatic update.
KingOfTheSouth is offline  
Reply With Quote
Old 10-11-2010, 06:20 AM   #6 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by KingOfTheSouth View Post
It is not the script though, When I replace the script with another script that I know for a fact works I get the same error. Like I stated above...
I read what you said, I'm just not convinced that the script works on the server you are running it on. Overconfidence that a certain area is not the problem, especially when other pointers say it is, is a bad thing.

Quote:
Originally Posted by KingOfTheSouth View Post
I am sure I can but I am not too sure how to do that. I am not new to crons I just do not know much about them besides just setting them for automatic update.
If the script you are running is above the webroot just type in the URL to the script. Otherwise move it above the webroot and test it.
__________________

Village Idiot is offline  
Reply With Quote
The Following User Says Thank You to Village Idiot For This Useful Post:
KingOfTheSouth (10-11-2010)
Old 10-11-2010, 06:28 AM   #7 (permalink)
The Acquainted
 
KingOfTheSouth's Avatar
 
Join Date: Oct 2008
Location: Cincinnati
Posts: 151
Thanks: 14
KingOfTheSouth is on a distinguished road
Default

I see what you are saying. I will let you know how it works out.
KingOfTheSouth is offline  
Reply With Quote
Old 10-12-2010, 08:41 AM   #8 (permalink)
The Prestige
Advanced Programmer Top Contributor Good Samaritan 
 
sketchMedia's Avatar
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 854
Thanks: 32
sketchMedia is on a distinguished road
Default

I could do with knowing more about the script and the environment in which it is to be executed. If its a permissions problem it shouldn't be fabulously difficult to resolve, however it may be an assortment of things.

How did you set the cron? Is the user used to set the cron in the cron group (assuming your on *nix)? What file permissions has the file got? Can it be run manually?
__________________
mysql> SELECT * FROM `users` WHERE `users`.`clue` > 0;
Empty set (0.00 sec)
sketchMedia is offline  
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
Display Modes

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Jobs requirement - www.punephpjobs.com sandykadam General 1 11-27-2008 09:32 AM
Jobs Forum obolus Feedback 4 02-27-2008 07:29 PM
Export as SQL from mySQL using cron job datahound MySQL & Databases 5 12-08-2007 12:18 AM
Cron tabs for turns danthethug General 10 04-13-2005 12:39 PM


All times are GMT. The time now is 08:37 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design