Changes between Version 75 and Version 76 of DetailedInstall


Ignore:
Timestamp:
Aug 25, 2010, 7:06:46 AM (14 years ago)
Author:
Andrew Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DetailedInstall

    v75 v76  
    359359[[BR]] 
    360360 
    361    * [wiki:Crons61x for Dolphin 6.1.x] 
    362  
    363    * [wiki:Crons7x for Dolphin 7.x] 
     361'''DOLPHIN 7.x on LINUX''' 
     362 
     363    1. Using CPanel: 
     364        1. Click the Cron Jobs link under your CPanel account and choose Advanced (Linux Style) 
     365        2. Indicate the email address for collecting information about cron execution 
     366        3. Return to the Dolphin installation page and copy the command to be run as cron (omitting the zeros and asterisks), for example: 
     367        {{{ 
     368/usr/local/bin/php -q m:/home/localhost/www/d70/periodic/cron.php 
     369        }}} 
     370        and insert it into the first field of your CPanel cron jobs management page 
     371        schedule the time for this job, which also can be fetched from the Dolphin installation page, such as: 
     372        {{{ 
     373* * * * *  
     374        }}} 
     375        (which means: run the script every minute) 
     376        4. Apply the changes and click Back to return to the Cron Management page 
     377 
     378    2. Using shell (for experienced users): 
     379        run the following command 
     380        {{{ 
     381crontab -e 
     382        }}} 
     383        This will open your default text editor, where you will have to insert the following lines of code to be executed: 
     384        {{{ 
     385MAILTO=myemail@mysite.com 
     386* * * * * /usr/local/bin/php -q m:/home/localhost/www/d70/periodic/cron.php 
     387        }}} 
     388        Save the file and exit the editor. 
     389 
     390        '''Hint: The above lines serve as an example. The actual Cron Job commands are generated by the script at 6th step of the installation process. And you can easily copy&paste them into the "crontab" file.'''           
     391 
     392'''DOLPHIN 7.x on WINDOWS''' 
     393         
     394    1. create batch files for the cron. For example:[[BR]] 
     395    ''c:\wamp\www\periodic\cron.bat''[[BR]] 
     396         
     397    This are sample contents of the above mentioned file: 
     398 
     399    '''''c:\wamp\www\periodic\cron.bat''''': 
     400    {{{ 
     401c:\wamp\bin\php\php5.2.6\php.exe -f c:\wamp\www\periodic\cron.php 
     402    }}} 
     403         
     404    2) then assign cron for this file this way: 
     405    {{{ 
     406schtasks /Create /tn dolphin_cron /sc MINUTE /mo 1 /tr c:\wamp\www\periodic\cron.bat (to run every minute) 
     407 
     408    }}} 
     409 
     410 
     411'''DOLPHIN 6.1.x on WINDOWS''' 
     412         
     413    * Using CPanel: 
     414         
     415        1. Click the Cron Jobs link under your CPanel account and choose Advanced (Linux Style) 
     416                 
     417        2. Indicate the email address for collecting information about cron execution 
     418                 
     419        3. Return to the Dolphin installation page and copy the first command to be run as cron (omitting the zeros and asterisks), for example: 
     420    {{{ 
     421/usr/local/bin/php -q /home/localhost/www/d611/periodic/cmd.php 
     422    }}} 
     423    and insert it into the first field of your CPanel cron jobs management page schedule the time for this job, which also can be fetched from the Dolphin installation page, such as: 
     424    {{{ 
     4250 0 * * * (which means: run the script every midnight) 
     426    }}} 
     427         
     428        4. Apply the changes and click Back to return to the Cron Management page 
     429                 
     430        5. Do the same for the second cron script: 
     431        {{{ 
     432/usr/local/bin/php -q /home/localhost/www/d611/periodic/notifies.php 
     433 
     434        }}} 
     435    and schedule the time for it: 
     436    {{{ 
     437*/10 * * * * (which means: run the script every 10 minutes) 
     438    }}} 
     439         
     440        6. Do the same for the third cron script: 
     441        {{{ 
     442/usr/local/bin/php -q /home/localhost/www/d611/periodic/cupid.php 
     443 
     444        }}} 
     445        and schedule the time for it: 
     446        {{{ 
     447* */1 * * * (which means: run the script every 1 hour) 
     448        }}} 
     449 
     450 
     451    * Using shell (for experienced users): 
     452    run the following command 
     453    {{{ 
     454crontab -e 
     455    }}} 
     456 
     457    This will open your default text editor, where you will have to insert the three lines of code to be executed: 
     458    {{{ 
     459MAILTO=myemail@mysite.com 
     4600 0 * * * /usr/local/bin/php -q /home/localhost/www/d611/periodic/cmd.php 
     461*/10 * * * * /usr/local/bin/php -q /home/localhost/www/d611/periodic/notifies.php 
     462* */1 * * * /usr/local/bin/php -q /home/localhost/www/d611/periodic/cupid.php 
     463 
     464    }}} 
     465 
     466Save the file and exit the editor. 
     467 
     468    '''Hint: The above lines serve as an example. The actual Cron Job commands are generated by the script at the 6th step of the installation process. And you can easily copy&paste them into the "crontab" file.'''           
     469 
     470 
     471'''DOLPHIN 6.1.x on WINDOWS''' 
     472         
     473    1) create batch files for every cron you wish to create. For example:[[BR]] 
     474    ''c:\wamp\www\periodic\cmd.bat''[[BR]] 
     475    ''c:\wamp\www\periodic\notifies.bat''[[BR]] 
     476    ''c:\wamp\www\periodic\cupid.bat'' 
     477         
     478    This are sample contents of the above mentioned files: 
     479 
     480    '''''c:\wamp\www\periodic\cmd.bat''''': 
     481    {{{ 
     482c:\wamp\bin\php\php5.2.6\php.exe -f c:\wamp\www\periodic\cmd.php 
     483    }}} 
     484 
     485    '''''c:\wamp\www\periodic\notifies.bat''''': 
     486    {{{ 
     487c:\wamp\bin\php\php5.2.6\php.exe -f c:\wamp\www\periodic\notifies.php 
     488    }}} 
     489 
     490    '''''c:\wamp\www\periodic\cupid.bat''''': 
     491    {{{ 
     492c:\wamp\bin\php\php5.2.6\php.exe -f c:\wamp\www\periodic\cupid.php 
     493    }}} 
     494         
     495    2) then assign crons for these files this way: 
     496    {{{ 
     497schtasks /Create /tn cmd_cron /sc DAILY /st 00:00:00 /tr c:\wamp\www\periodic\cmd.bat (to run every day at midnight) 
     498schtasks /Create /tn notifies_cron /sc MINUTE /mo 10 /tr c:\wamp\www\periodic\notifies.bat (to run every 10 minutes) 
     499schtasks /Create /tn cupid_cron /sc HOURLY /mo 1 /tr c:\wamp\www\periodic\cupid.bat (to run every 1 hour) 
     500 
     501    }}} 
     502 
    364503 
    365504[[BR]] 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.
Fork me on GitHub