/etc/init.d/asterisk: No such file or directory

Where can I find the contents of this file so I can create it and copy it to where the module expects to find it?

The system OS is CentOS 7
Asterisk is version 13.21.0

systemctl status dahdi.service
● dahdi.service - LSB: DAHDI kernel modules
Loaded: loaded (/etc/rc.d/init.d/dahdi; bad; vendor preset: disabled)
Active: active (exited) since Fri 2018-06-01 15:58:59 UTC; 1h 49min ago
Docs: man:systemd-sysv-generator(8)
Process: 8838 ExecStart=/etc/rc.d/init.d/dahdi start (code=exited, status=0/SUCCESS)

Jun 01 15:58:59 ip-192-168-100-8.us-east-2.compute.internal dahdi[8838]: wctdm24xxp: [ OK ]
Jun 01 15:58:59 ip-192-168-100-8.us-east-2.compute.internal dahdi[8838]: wcaxx: [ OK ]
Jun 01 15:58:59 ip-192-168-100-8.us-east-2.compute.internal dahdi[8838]: wcfxo: [ OK ]
Jun 01 15:58:59 ip-192-168-100-8.us-east-2.compute.internal dahdi[8838]: wctdm: [ OK ]
Jun 01 15:58:59 ip-192-168-100-8.us-east-2.compute.internal dahdi[8838]: wcb4xxp: [ OK ]
Jun 01 15:58:59 ip-192-168-100-8.us-east-2.compute.internal dahdi[8838]: wctc4xxp: [ OK ]
Jun 01 15:58:59 ip-192-168-100-8.us-east-2.compute.internal dahdi[8838]: xpp_usb: [ OK ]
Jun 01 15:58:59 ip-192-168-100-8.us-east-2.compute.internal dahdi[8838]: /usr/share/dahdi/waitfor_xpds: line 106: astribank_is_starting: command not found
Jun 01 15:58:59 ip-192-168-100-8.us-east-2.compute.internal dahdi[8838]: Running dahdi_cfg: [ OK ]
Jun 01 15:58:59 ip-192-168-100-8.us-east-2.compute.internal systemd[1]: Started LSB: DAHDI kernel modules.

Thanks in advance!

It is installed by doing “make config” during the build process.

It is constructed on the fly, so there is no single file to copy.

Thanks, david551.

That solved the problem. I have no idea why the make config didn’t do its job the first time I ran it, tho.

I’ve copied the files from /var/lib/asterisk/static-http/… to /var/www/html/asterisk/…

Now, when I visit http://157.250.44.242/asterisk/config/ I get the
“Welcome to the Asterisk™ Configuration Panel” login screen.

I type in the username (mark) and the “secret” from the manager.conf file but nothing happens when I click the Login button. Literally nothing at all. What am I doing wrong?

Thanks in advance!

You must be using some sort of third party tool, Asterisk does not have a web interface outside of ARI.

Nope. Just Asterisk. [asterisk-15.4.0] The files for a web-based configuration UI are found in /var/lib/asterisk/static-http after Asterisk is installed.

Copying those files to the root of your web directory (in my case, copying everything in the above directory to /var/www/html/asterisk) makes this tool available - if you’ve set the correct options in /etc/asterisk/http.conf - or at least it should. Login info for the users is set in /etc/asterisk/manager.conf

There’s an index.html file in the /asterisk folder that redirects to /asterisk/config/index.html It shows nothing but a login form.

When I put in the username and password, then click Login…nothing happens at all.

Here’s the contents of the static-http directory from the source itself.

Nothing in there references a ‘Configuration Panel’