Cron job on windows server
« on: September 05, 2013, 12:02:07 PM »
How to setup cron job on windows server with Plesk CP and PHP installed here: C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\ ?
Is the command line below right?
C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\ C:\Inetpub\vhosts\domain\httpdocs\generator/runcrawl.php
Re: Cron job on windows server
« Reply #1 on: September 08, 2013, 08:20:04 AM »
Hello,

you would need to contact your hosting support to find our exact command line, but perhaps it would look like:

Code: [Select]
C:\Program Files (x86)\Parallels\Plesk\Additional\PleskPHP5\php.exe C:\Inetpub\vhosts\domain\httpdocs\generator/runcrawl.php
Re: Cron job on windows server
« Reply #2 on: September 13, 2013, 10:12:21 AM »
Thank you for your help. But it doesn't work.
Here is the solution for windows server 2008 R2 standard with Plesk as CP:
Plesk -> Server-> Scheduled Tasks -> Plesk Administrator -> Add New Task ->
Path to executable file *: C:\Program Files (x86)\Parallels\Plesk\admin\bin\php.exe
Arguments: -q -dauto_prepend_file="" -c php.ini "C:\Inetpub\vhosts\DOMAIN\httpdocs\generator\runcrawl.php"
Re: Cron job on windows server
« Reply #3 on: September 13, 2013, 08:09:16 PM »
Hello,

have you configured notification email for the cron task? What is the output you get when scheduled task is running?
Re: Cron job on windows server
« Reply #4 on: September 13, 2013, 09:33:03 PM »
I have disabled email notification in cron job settings but I get it when scheduled sitemap is created:

"Hello,
you have configured your sitemap generator to receive these automated notifications every time sitemap is created.
Standalone Sitemap Generator Report - 13 September 2013, 20:00
https://www.xml-sitemaps.com
-------------------------
Sitemap details
-------------------------
Request date: 13 September 2013, 20:00
Processing time: 0:00:39s
Pages indexed: 53
Sitemap files: 1
Pages size: 1.35Mb
-------------------------
View Sitemaps
-------------------------
XML Sitemap
[ External links are visible to forum administrators only ]
Text Sitemap
[ External links are visible to forum administrators only ]/generator/data/urllist.txt
ROR Sitemap
[ External links are visible to forum administrators only ]
HTML Sitemap
.C:/Inetpub/vhosts/datingscammers.com/httpdocs/generator/data/sitemap.html
-------------------------
Broken Links
-------------------------
0 broken links found!
View the list: [ External links are visible to forum administrators only ]/generator/index.php?op=l404"

URL's for Text Sitemap, HTML Sitemap and View broken links are wrong. BUT I think it's just a bug in email notification because when I go to interface of sitemap generator  - all links are correct:

"Sitemap details
Request date: 13 September 2013, 20:00
Processing time: 0:00:39s
Pages indexed: 53
Sitemap files: 1
Pages size: 1.35Mb
Download:
XML sitemap
In text format
In ROR format
HTML sitemap "

By the way, you write:
"Create sitemap in ROR format
It will be stored in the same folder as XML sitemap, but with different filename: ror.xml"

Why ror.xml sitemap is stored in /generator folder and not in root folder?

Best regards,
Igor
Re: Cron job on windows server
« Reply #5 on: September 15, 2013, 04:35:00 PM »
Hello,

please let me know your generator URL/login in private message to check this.