The very first time you run ./install_amp
it will prompt for values for your webroot.
If you try to run ./install_amp again to over-ride the value you set the first time, you’re out of luck. You need login to mysql with your username / password, drop the asterisk database, and run ./install_amp again.
was having the same problem. the install scripts REQUIRE the webroot be /var/www/html even though their appear to be options to change it, they are ignored.
tried dropping the db a few times, but it kept resetting webroot to /var/www/html. so this finally worked for me:
run ./install_amp which puts a record in ‘freepbx_settings’ table with keywork ‘AMPWEBROOT’.
change the value of the row with the keyword AMPWEBROOT to ‘/new/html/directory’.
run ./install_amp again…
only then did everything start working for me in another directory than the one that was hardcoded in the install.