Page 1 of 1

could not open input file: php mod_trial.php

Posted: Fri Feb 08, 2013 4:46 pm
by pumagaju
Hello,

I am trying to extend my trial period, but when I do I get the following error:
could not open input file: php mod_trial.php --key=<snip>
My nagios server is CentOS release 6.3 (Final)
Kernel 2.6.32-279.11.1.e16.x86_64

I'm green to both nagios and linux so any help would be great appreciated.

Thanks,

Re: could not open input file: php mod_trial.php

Posted: Sun Feb 10, 2013 12:43 am
by scottwilkerson
you need to be sure you are in the same directory that you uploaded the file to

for example, if you uploaded it to /tmp

Code: Select all

cd /tmp
php mod_trial.php --key=<snip>

Re: could not open input file: php mod_trial.php

Posted: Mon Feb 11, 2013 10:49 am
by pumagaju
Yes, I have confirmed I am in the proper directory. In this case it is: /usr/local/nagiosxi/tools

Thanks,

Re: could not open input file: php mod_trial.php

Posted: Mon Feb 11, 2013 12:11 pm
by abrist
What is the output of:

Code: Select all

$ ls -la /usr/local/nagiosxi/tools

Re: could not open input file: php mod_trial.php

Posted: Mon Feb 11, 2013 2:13 pm
by pumagaju
When I run that I get this:

-bash: $: command not found

Re: could not open input file: php mod_trial.php

Posted: Mon Feb 11, 2013 2:23 pm
by lmiltchev
Run the command without the "$":

Code: Select all

ls -la /usr/local/nagiosxi/tools