Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation for 2.1.X and up is incorrect (Composer) #172

Open
tcreek opened this issue Jun 26, 2020 · 0 comments
Open

Documentation for 2.1.X and up is incorrect (Composer) #172

tcreek opened this issue Jun 26, 2020 · 0 comments

Comments

@tcreek
Copy link

tcreek commented Jun 26, 2020

This deals with Composer

1.3 PHP Composer


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant