composer install is not working in cronjob environment

DDSameera

Member
Jan 3, 2012
17
4
51
cPanel Access Level
Website Owner
Code:
current_domain_path="/home/acc40/public_html"
cpanel_user="acc40"
echo $current_domain_path
echo $cpanel_user
cd $current_domain_path
cd $current_domain_path;
/opt/cpanel/composer/bin/composer install


Code:
*/2 * * * * bash /customscript/installation_v2/run.sh
Test - Passed
Go to terminal and execute SH file . its success

Test -failed
I setup every 15 min cronjob , and run this sh file . it doesn't work.

Please helpe me to resolve this problem
 
Last edited:

cPJustinD

Administrator
Staff member
Jan 12, 2021
286
52
103
Houston
cPanel Access Level
Root Administrator
Hello DDSameera! Could you provide us with the output of the following command? Please be sure to replace $USER with the username of the affected cPanel account:
Code:
crontab -u $USER -l

This should allow us to verify the shell that is used for the cron so that we can test on our end to replicate the issue and provide us with a better understanding of what is occurring.

We look forward to hearing back from you!