bucasia wrote:
I just got caught out on a system because of the new(ish) requirements for the "vendor" folder.
If this isn't found A2Billing doesn't generate anything in the log file, you just see the "return 0". You can check this by doing something like -
su - asterisk
php /var/lib/asterisk/agi-bin/a2billing.php
Your path/user may vary. You should not see a warning about the vendor folder (you shouldn't see anything - the command should just sit there)
If you do see a warning about the vendor folder you should be able to figure out where it needs to go from the error.
Edit - Obviously this is a very specific case, Joe's general troubleshooting tips above are more likely
dear i try to php /var/lib/asterisk/agi-bin/a2billing.php
so system is show this error please tell me how to solve its
[root@server ~]# php /var/lib/asterisk/agi-bin/a2billing.php
PHP Fatal error: require_once(): Failed opening required '/var/lib/asterisk/agi-bin/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/lib/asterisk/agi-bin/a2billing.php on line 42
You have new mail in /var/spool/mail/root
[root@server ~]#