Meta 13 Project Blog
  • Home
  • Links
  • CMS
  • CSS
  • Ecom
  • Email
  • Flash
  • Google
  • HTML
  • Javascript
  • OS
  • PHP
  • SEO
  • SQL
Browse: Home / Cron

Cron

Allow Cron Jobs to access PHP/WGet/FTP in Plesk 10.1+

By Jason on May 8, 2012

As of Plesk 10.1 cron jobs have been restricted to a chroot jail that prevents it from using many linux commands.  Run the following as root and it will function like the old Plesk used to.

/usr/local/psa/bin/server_pref -u -crontab-secure-shell "/bin/sh"

Posted in Linux | Tagged Cron, Plesk, wget | Leave a response

Concrete5 “Scheduled Jobs” Cron

By Nathan on October 27, 2010

Cpanel

wget http://www.domain.com/index.php/tools/required/jobs?auth=dc56540cbda34e02ce9ab06e30d5353a

Plesk

wget http://www.duetip.com/index.php/tools/required/jobs?auth=1db374a912d951a526d70fcfa38fdb17 -O /dev/null

Posted in CMS | Tagged Concrete5, Cron | Leave a response

PHP To Call Page

By Nathan on December 18, 2009

http://somethingsomething.com/store/cron/create_orders_cron.php


<?php
 $host = "www.somethingsomething.com";
 $user = "";
 $password = "";

 $socket = @fsockopen($host, 80, $errno, $errstr, 30);
 if (!$socket) {
 echo "Failed to open socket<br>{$errno}<br>{$errstr}";
 exit;
 }
// Encode authentication string
 $authstr = $user.":".$password;
 $pass = base64_encode($authstr);

// Make GET to sphider
 fputs($socket,"GET /store/cron/create_orders.php HTTP/1.0\r\n");
 fputs($socket,"Host: {$host}\r\n");
 //fputs($socket,"Authorization: Basic $pass\r\n");
 fputs($socket,"Connection: Close\r\n");
 fputs($socket,"\r\n");

// Grab response after the headers
 $past_headers = 0;
 while (!feof($socket)) {
 $response = fgets($socket,4096);
 //echo $response;
 if($past_headers)
 $html .= $response;
 if($response == "\r\n")
 $past_headers = 1;
 }

 fclose($socket);
 if(strlen($html) < 2000) {
 //echo $html;
 }
?>

Posted in PHP | Tagged Cron | 2 Responses

Tags

.htaccess Advanced Custom Fields Bower c5 cms Composer Concrete 5 Concrete5 Cron CSS3 Cycle Cycle2 fancybox FancyBox2 Foundation Genesis Google Fonts Google Maps Google Webfonts Google Web Fonts Gravity Forms Grunt html5 HTML5 Boilerplate IE7 iPad iPhone jQuery lightbox Lists Magento Media Queries mobile pdf Plesk PrettyPhoto Responsive SASS SCSS static block Twitter typekit Video WordPress YouTube

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Recent Comments

  • Bryce on Responsive Email Templates
  • Justin on Mail Server Settings (Microsoft365)
  • Justin on Mail Server Settings (Microsoft365)
  • Bryce on Mail Server Settings (Microsoft365)
  • Justin on Mail Server Settings (Microsoft365)

Authors

  • Aaron Huisinga
  • Bryce
  • Darin
  • Jason
  • Josh
  • Justin
  • master
  • Nathan
  • nick
  • Paul

Archives

  • March 2016
  • July 2015
  • March 2015
  • February 2015
  • January 2015
  • December 2014
  • September 2014
  • July 2014
  • June 2014
  • May 2014
  • December 2013
  • November 2013

Copyright © 2023 Meta 13 Project Blog. Powered by WordPress and Hybrid.