Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8174053
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T22:21:10+00:00 2026-06-06T22:21:10+00:00

I use shared hosting so I can’t access to shell. I have CronsController and

  • 0

I use shared hosting so I can’t access to shell.

I have CronsController and i want to run index action of controller.
From cpanel I add cronjob like this:

php -q /home/mysite/public_html/app/crons  

But this doesn’t run the crons/index action.
How should I write path to my crons controller?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T22:21:11+00:00Added an answer on June 6, 2026 at 10:21 pm

    How should I write path to my crons controller?

    You should not do that at all. If not properly protected anyone could trigger your controller from the web. Also that’s not what a controller is made for.

    Use a shell (or a shell command through cpanel for crons)

    Assuming that the CakePHP core is in

    /home/mysite/public_html/lib/
    

    You should be able to run it like this:

    /home/mysite/public_html/lib/Cake/Console/cake --app /home/mysite/public_html/app shellName
    

    More details and examples are shown here.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an ASP.NET application running on shared hosting and want to use Windows
I want to allow my shared hosting sites to use MongoDB, however as they
Can I use shared memory on Windows in order to have a common memory
I have shared hosting, and within my own user space I run three different
I'm currently having some trouble with my shared hosting as I can't use sessions
I'm using a shared hosting plan on Hostgator. As such I can't run any
I have shared hosting account on some hosting service provider. So, I can upload
I use a shared hosting provider that doesn't have asp.net mvc3 installed. When deploying
My shared hosting company doesn't allow Reflection. How can I use AutoMapper? Do I
i have a wordpress blog hosted over my personal shared hosting.Now i want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.