You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A PHP dependency manager called Composer (https://getcomposer.org/) is used to
install PHP packages needed for A2Billing.
You can follow those steps to install PHP composer::
cd /usr/local/a2billing
curl -sS https://getcomposer.org/installer | php
php composer.phar update
php composer.phar install
This is not only incorrect, but in the wrong section.
There is no folder /usr/local/a2billing unless you create one. If you do create it then follow the rest of ,you will get the following error:
Composer could not find a composer.json file in /usr/local/a2billing
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
This has to be done after the package has been unpacked, and you cd into that directory. which is in section 2.1
Another problem:
2.5. Step 6: Install The AGI components
Copy or create a symbolic link of the entire content of the AGI directory into asterisk agi-bin directory::
mkdir /usr/share/asterisk/agi-bin
The mkdir /usr/share/asterisk/ folder does not exist, thus is going to generate an error when trying to execute the command mkdir /usr/share/asterisk/agi-bin
So after doing the rest of the install, then go to the /admin portal, we now get the following error:
PHP Fatal error: require_once(): Failed opening required '/var/www/html/billing/common/lib/../../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/billing/common/lib/admin.defines.php on line 33
I have not been able to figure out what the problem is on this error. I figure something else in the documentation is incorrect.
Update: Found the issue.
The documentation does not even mention the "vendor" folder.
It need to be added: cp -rf /usr/src/a2billing/vendor /var/www/html/a2billing
The text was updated successfully, but these errors were encountered:
This deals with Composer
This is not only incorrect, but in the wrong section.
There is no folder /usr/local/a2billing unless you create one. If you do create it then follow the rest of ,you will get the following error:
This has to be done after the package has been unpacked, and you cd into that directory. which is in section 2.1
Another problem:
The mkdir /usr/share/asterisk/ folder does not exist, thus is going to generate an error when trying to execute the command mkdir /usr/share/asterisk/agi-bin
So after doing the rest of the install, then go to the /admin portal, we now get the following error:
PHP Fatal error: require_once(): Failed opening required '/var/www/html/billing/common/lib/../../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/billing/common/lib/admin.defines.php on line 33
I have not been able to figure out what the problem is on this error. I figure something else in the documentation is incorrect.
Update: Found the issue.
The documentation does not even mention the "vendor" folder.
It need to be added:
cp -rf /usr/src/a2billing/vendor /var/www/html/a2billing
The text was updated successfully, but these errors were encountered: