Freepbx install error

/usr/src/freepbx# ./install -n
Assuming you are Database Root
Checking if SELinux is enabled…Its not (good)!
Reading /etc/asterisk/asterisk.conf…Done
Checking if Asterisk is running and we can talk to it as the ‘asterisk’ user…Done!
Preliminary checks done. Starting FreePBX Installation
Checking if this is a new install…Yes (No /etc/amportal.conf file detected)
Database Root installation checking credentials and permissions…Error!
Invalid Database Permissions. The error was: SQLSTATE[28000] [1045] Access denied for user ‘root’@‘localhost’ (using password: NO)

I removed my database and previous v12 install and now I am stuck

is there a way to enter the root mysql password ? does this install the database? how does it get my mysql root password.

I am debian 8 with asterisk 13 freepbx-13

It’s all done for you (thanks Rob :slight_smile: )

http://wiki.freepbx.org/display/HTGS/Installing+FreePBX+13+on+Debian+8.1

pay PARTIULAR attention to the bit that says

. . . .
As part of this install, you will be asked several times for a mysql password. You can leave this blank (just push enter) as the instructions further down will generate a secure password. If you set a password now, you will cause problems further down. Please do not set a mysql password unless you are confident in your abilities to secure a SQL server.
. . .

Are you so confident? If you are, please read

./install --help

before you do the

./install -n

bit.

1 Like

That did the trick .

./install with out the " -n " Do not ask any interactive question
asked me the database user and password and everything loaded properly.

I already had mysql loaded and the root password was entered so paying as much attention as I could to “you will be asked several times for a mysql password.” was not going to work for me.

so for anyone who is reloading
I was running a older version of asterisks so i had to kill that off

ps -A |grep asterisk

1113 ? 00:00:00 safe_asterisk
1118 ? 00:00:00 asterisk

kill -9 1113 1118

./start_asterisk start

since the older version of asterisks has its own modules I had to kill thous also.

cd /usr/lib/asterisk/modules
rm -f *

I added a make clean to my commands since I had the dahdi already downloaded
cd /usr/src/dahdi-linux-complete-2.10.2+2.10.2
make clean all && make all && make install all && make config all

you may need to do simular for jansson pjproject libpri

i had already attempted a install with v12 that failed with a error so i had to delete some files
rm -rf /etc/amportal.conf
rm -rf /etc/freepbx.conf

since I was attempting to get v12 to work i made databases and at points even made tables so i needed to rid f them also

mysql -uroot -p

DROP DATABASE asterisk;
DROP DATABASE asteriskcdr;
exit;

then finnaly i ran
/usr/src/freepbx#./start_asterisk start
/usr/src/freepbx# ./install

resulting in…
You have successfully installed FreePBX

I hope this helps someone