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 8367263
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:06:51+00:00 2026-06-09T13:06:51+00:00

I am running Ubunutu Linux server, PHP5, Apache2 and am having trouble getting any

  • 0

I am running Ubunutu Linux server, PHP5, Apache2 and am having trouble getting any sort of cronjob to run through the crontab.

I edit the crontab using

crontab -e

I save the file I want to run:

*/5 * * * * php /home/user/public_html/crx/cronx.php

it saves fine. I can run the file from the console and goes through fine. I can’t even find any existing logs for the file. I checked cron was running, stopped and started… no change.

The current php file is just a simple test script that inserts a single line into a database.

I checked the permissions for the file and has read and write. Am absolutely stumped. I can’t seem to get ANYTHING to run through cron. Is there something I can run to test permissions?

EDIT
I have also tried the following command

          • /usr/bin/php /home/user/public_html/crx/cronx.php

I used whereis php and which php to locate and confirm it is all running in the right area

  • 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-09T13:06:53+00:00Added an answer on June 9, 2026 at 1:06 pm

    You have too many * values for your times.

    Also, cron may not have a PATH set up correctly to use PHP.

    Instead try:

    */5 * * * * /usr/bin/php /home/user/public_html/crx/cronx.php
    

    Where /usr/bin/php is the actual path to PHP. From the console you can run which php to see the path to the PHP binary you should use.

    EDIT: Here are a couple of more things to try in order to troubleshoot:

    # see if cron is running just by having it create a file
    */5 * * * * touch /tmp/crontab-$(date +%s)
    

    Another option:

    Set the permissions of your PHP script to 755, and change the beginning to:

    #!/usr/bin/php -q
    <?php
    // rest of script
    

    Then change your cron tab to:

    */5 * * * * /home/user/public_html/crx/cronx.php
    

    I’m still not sure if cron is the issue or the running of the PHP script.

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

Sidebar

Related Questions

I have a server that is running Ubuntu Linux Server Edition. I once had
I am using Eclipse GALILEO running on Linux Ubuntu with EPIC plugin to Run/Debug
I have a linux server running ubuntu 10.10 maverick with apache and php installed,
I'm running a database server in a Linux VM (Ubuntu 9.10) under VMware Fusion,
We have a MySQL database running on a Linux (Ubuntu) server. We are thinking
Hey all, I'm having some trouble setting up my grails application. Running the app
I have a running (in production) mysql instance on my linux server (ubuntu-10.10) however
I'm running a command in my linux server (Ubuntu). For example: screen -A -h
i have a problem with my server which is running ubuntu (debian) linux and
I have a shell account on a Linux server (running Ubuntu 8.04) with user

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.