watzursn Posted July 10, 2008 Share Posted July 10, 2008 Hello, I'm trying to run a cron job on WHMCS and when i enter in the PHP command line i get an e-mail saying that "No such file or directory found" when it clearly points to that file. What do you think might cause this? Thank you in advance for any help you may be able to give. -Mike 0 Quote Link to comment Share on other sites More sharing options...
DataHosts Posted July 10, 2008 Share Posted July 10, 2008 Just for kicks.....does the directory exist? Make sure your path is correct? cPanel: php -q /home/<cpanel username>/public_html/<dir>/admin/cron.php 0 Quote Link to comment Share on other sites More sharing options...
watzursn Posted July 11, 2008 Author Share Posted July 11, 2008 Just for kicks.....does the directory exist? Make sure your path is correct? cPanel: php -q /home/<cpanel username>/public_html/<dir>/admin/cron.php yes the directory exists........ why would it say fiel or dir not found? 0 Quote Link to comment Share on other sites More sharing options...
DataHosts Posted July 11, 2008 Share Posted July 11, 2008 start at simple things and knock them out.. have you opened a support ticket? 0 Quote Link to comment Share on other sites More sharing options...
Austdata Posted July 12, 2008 Share Posted July 12, 2008 yes the directory exists........ why would it say fiel or dir not found? Permissions perhaps? Cheers, Mike 0 Quote Link to comment Share on other sites More sharing options...
BCMunlimited Posted July 14, 2008 Share Posted July 14, 2008 Just be sure you check your path: <cpanel username> = what you log in as <dir> = where the admin resides php -q /home/<cpanel username>/public_html/<dir>/billing/admin/cron.php Try try try again, such as is the life of a programming:lol: 0 Quote Link to comment Share on other sites More sharing options...
othellotech Posted July 14, 2008 Share Posted July 14, 2008 yes the directory exists........ why would it say fiel or dir not found? generally because you made a typo on the path try (instead of php -q /home/<cpanel username>/public_html/<dir>/billing/admin/cron.php ) ls -l -a /home/<cpanel username>/public_html/<dir>/billing/admin/cron.php and see if it correctly lists the file 0 Quote Link to comment Share on other sites More sharing options...
brianoz Posted July 23, 2008 Share Posted July 23, 2008 You can also leave out the /home/user/ part as cron jobs always run in user's home directories. Make sure you have the cron job running under the right user though! 0 Quote Link to comment Share on other sites More sharing options...
DataHosts Posted July 23, 2008 Share Posted July 23, 2008 I would venture to say that this thread is done since the user is 'banned' 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.