Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > osTicket 1.6.x > Installation and Setup Help

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-22-2011, 07:33 AM
UncleDan UncleDan is offline
Junior Member
 
Join Date: Apr 2011
Location: Bologna
Posts: 2
Default Fetching mail on Windows

Hi there, I am very new to osTicket.
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.
Attached Images
File Type: jpg osTicket_config.jpg (88.9 KB, 5 views)
File Type: jpg osTicket_error.jpg (76.0 KB, 2 views)

Last edited by UncleDan; 04-22-2011 at 07:37 AM. Reason: Adding images links
Reply With Quote
  #2  
Old 04-22-2011, 09:21 AM
ntozier's Avatar
ntozier ntozier is offline
Moderator
 
Join Date: Jan 2010
Location: NH USA
Posts: 1,784
Default

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 cannot run http://server.ext/api/cron.php
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
Reply With Quote
  #3  
Old 04-26-2011, 09:34 AM
UncleDan UncleDan is offline
Junior Member
 
Join Date: Apr 2011
Location: Bologna
Posts: 2
Default XAMPP aurocron

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
Another little tip for Windows user: to hide the DOS window while fetching mail, you can create a link with "minimize to tray" option and schedule the .lnk instead of the .bat.

Thanks!

Last edited by UncleDan; 04-26-2011 at 09:35 AM. Reason: path & typo
Reply With Quote


Reply

Bookmarks

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:11 PM.