FreePBX | Register | Issues | Wiki | Portal | Support

13: Unable to read /etc/asterisk/asterisk.conf or it was missing a directories section


#1

Full error:

Reading /etc/asterisk/asterisk.conf…Error!
Unable to read /etc/asterisk/asterisk.conf or it was missing a directories section

This occurs after entering the ./install -n command

Using both most current versions via git and tarball.

Looking in the directory I see asterisk.conf is there and owned by Asterisk (running as root)


Manual Install FreePBX14,Unable to read /etc/asterisk/asterisk.conf
Unable to run install -n
(Andrew Nagy) #2

Solved. It was a (!) in the file


(Vijo Jose) #3

But when i am removed the (!) ,i am not able to start the asterisk.


(Itzik) #4

You are replying to a 2 year old post.
Little things have changed since…

Please post the full error you get, if you can, please open a new topic as well…


(Master M) #5

After I removed the (!) here was the result.

[root@ freepbx]# ./install -n
./install: line 2: ?php: No such file or directory
./install: line 3: namespace: command not found
./install: line 5: syntax error near unexpected token ‘0’
./install: line 5: `set_time_limit(0);’

Any thoughts? TIA


#6

you removed the ! on line 1 of the install script, that is not the one in question, it is the one in asterisk.conf (if it is still there :slight_smile: )


(Master M) #7

Got it. Thanks! it’s working now :slight_smile:


(Andrew Nagy) #8