|
#1
|
|||
|
|||
|
I have just installed it con a Windows XP Professional with XAMPP. It is not the best server in the world, but we already have some scripts running there and being a very little company, it does his job. The system itself works like a charm: I can manually add tickets and use any single function. Now I have created a POP3 account called tickets@xxxxxx.xxx And the account works regularly. So I tried to manually run cron.php before deciding if I will use autocron or a scheduled task. But every time I hit the cron.php page I get an error: "Unknown remote host [127.0.0.1] or invalid API key [Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Iron/10.0.650.0 Chrome/10.0.650.0 Safari/534.16]" config error I have attached the config and the error. If anyone can point me in the right direction, I would greatly appreciate it. Thanks in advance. Last edited by UncleDan; 04-22-2011 at 07:37 AM. Reason: Adding images links |
|
#2
|
||||
|
||||
|
I've had never tried to run cron.php manually, I run it from task scheduler. (I am running Server 2008, and was running it under Server 2003). I created a .bat file and use Task Scheduler to call it. Make sure that you set the optional Start In path. Here is the contents of my .bat
Code:
C:\Progra~1\PHP\php.exe -f c:\Inetpub\wwwroot\OSTICKET\api\cron.php > osticket.log I get a "The page cannot be displayed because an internal server error has occurred." when I try. Try running autocron.php and see what happens. I can run http://server.ext/scp/autocron.php |
|
#3
|
|||
|
|||
|
I could not find any aurocron.php, but your batch works like a charm!
If this can help someone, here is "my" version with path modified for XAMPPinstallation. Code:
C:\xampp\php\php.exe -f C:\xampp\htdocs\OSTICKETFOLDER\api\cron.php >> C:\xampp\htdocs\OSTICKETFOLDER\mailfetch\mailfetch.log exit Thanks! Last edited by UncleDan; 04-26-2011 at 09:35 AM. Reason: path & typo |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|