@tonyquach said:
hi,
i was setup crontab in web admin and crontab run command PHP in cli but error,
-bash: php: command not found
can you help me ?
Sorry my english not good
Did you setup PHP binary to be accessible globally?
@tonyquach said:
hi,
i was setup crontab in web admin and crontab run command PHP in cli but error,
-bash: php: command not found
can you help me ?
Sorry my english not good
Did you setup PHP binary to be accessible globally?
@tonyquach said:
hi,
i was setup crontab in web admin and crontab run command PHP in cli but error,
-bash: php: command not found
can you help me ?
Sorry my english not good
Did you setup PHP binary to be accessible globally?
Hello, I have a list with 15 commands to add to the cron job, would it be easy for me to import these commands without having to add one by one on the panel?
Because every installation of a website that I make in the panel I have to manually add row by row by panel.
Hello, I have a list with 15 commands to add to the cron job, would it be easy for me to import these commands without having to add one by one on the panel?
Because every installation of a website that I make in the panel I have to manually add row by row by panel.
From the interface, it is only possible to add them one-by-one for now.
@rafaelmarrichi said:
Hello, I have a list with 15 commands to add to the cron job, would it be easy for me to import these commands without having to add one by one on the panel?
Because every installation of a website that I make in the panel I have to manually add row by row by panel.
Cron UI doesn’t has custom cron index or database but it fetches directly from crontab. So, you can add it via ‘crontab -u user -e’. Let me know if you are looking for a bash script for adding commands.
I managed to fix. There was no problem with the server or CyberPanel. It was just the address of the cron configuration file (crons/config.php) that still had the old server address.
I solved the problem as follows,
mysqldump -u root -pPASSWORD dbname | gzip -9> /home/sitename.com/public_html/storage/dbackup_$(date +% d-% m-% Y) .sql.gz
I use the ‘cyberpanel admin > website > cron jobs’ to add a list of cron jobs for a specific website and they do not run. If I add them using crontab -e and they work fine. It appears the admin panel is not running the cron jobs.
I’m running version 1.8.1 on Ubuntu via DigitalOcean.
Cron jobs added from CyberPanel runs as a website user, so may be due to permissions it is not running.
Make sure the command runs as the website user. You can find website user using ls -la /home and then do su user and try to run your cron command and see if there are any permission issues.