PiaF Menu Configuration Not Working

jquintana

Member
Joined
Oct 13, 2009
Messages
66
Reaction score
0
No matter what I select in the menu configuration under the admin section, nothing changes.

I few days ago I added the SugarCRM option and I lost the Webmin option.

Now, no matter what I select nothing changes.

What did I break and how can I fix it?

Thanks!
 
To access webmin:

http://<ip address>:9001

I believe that you can access FreePBX by:

http://<ip address>/admin/config.php
 
I can access both, but they are just not in my "Admin Panel".

adminpanel.png
 
your hostname is not resolving - webmin will not showup unless your hostname resolves to a ip address
 
your hostname is not resolving - webmin will not showup unless your hostname resolves to a ip address
I have double-checked my DNS settings and everything is ok.

I am able to ping the hostname from the PiaF server as well as from other workstations.

:banghead:
 
Have you checked the menu configuration icon to see if webmin has been delected?
 
In /var/www/html/welcome/.htindex.cfg do you have this line? This is the Admin menu config file.

4,webmin,http://$host:9001/,Linux<br/>Webmin,ico_webmin.png

Have you run update-scripts, update-fixes?

What does the Linux command prompt "status" command indicate? If webmin isn't showing up then it could be a network problem after all as MyKroFt stated.
 
Lastly, have you checked Webmin's log at /var/webmin/webmin.log for clues? I wonder if running passwd-master would help?
 
In /var/www/html/welcome/.htindex.cfg do you have this line? This is the Admin menu config file.

4,webmin,http://$host:9001/,Linux<br/>Webmin,ico_webmin.png

Have you run update-scripts, update-fixes?

What does the Linux command prompt "status" command indicate? If webmin isn't showing up then it could be a network problem after all as MyKroFt stated.
This is the contents of my .htindex.cfg file:

Code:
1,recordings,./recordings,Voicemail & Recordings,ico_recordings.png
1,panel,./panel,Flash Operator Panel,ico_fop.png
1,meetme,./meetme,MeetMe Conference,ico_meetme.png
2,asteridex,./asteridex4,Nerd Vittles AsteriDex,ico_asteridex.png
2,asterimind,./reminders,Nerd Vittles Reminders,ico_asterimind.png
2,awstats,http://$host/cgi-bin/awstats.pl?config=PBXinaFlash,Web Statistics AWs$
2,crm,./crm,Sugar CRM,ico_crm.png
3,a2billing,./A2Billing_UI,A2Billing Administration,ico_a2badmin.png
3,a2customer,./A2BCustomer_UI,A2Billing Customer,ico_a2bcust.png
4,admin,./admin,FreePBX Administration,ico_freepbx.png
4,webmin,http://$host:9001/,Linux<br/>Webmin,ico_webmin.png
4,menu,./config.php,Menu Configuration,ico_ksc-menu.png

I am pretty sure I ran update-scripts and update-fixes already.

This is what "status" returns:

Code:
Status - 1.7.6 released on 071010
********************************************************************
*            PBX in a Flash SILVER Daemon Status                   *
********************************************************************
* Asterisk  * ONLINE  * Dahdi     * ONLINE  * MySQL      * ONLINE  *
* SSH       * ONLINE  * Apache    * ONLINE  * Iptables   * ONLINE  *
* Fail2ban  * ONLINE  * IP Connect* ONLINE  * Ip6tables  * OFFLINE *
* BlueTooth * ONLINE  * Hidd      * ONLINE  * NTPD       * ONLINE  *
* Sendmail  * ONLINE  * Samba     * ONLINE  * Webmin     * ONLINE  *
* Ethernet0 * ONLINE  * Ethernet1 *   N/A   * Wlan0      *   N/A   *
********************************************************************
* PBX in a Flash Version   : 1.7.5.5
* FreePBX Version          : 2.6.0.2
* Running Asterisk Version : Asterisk 1.4.33
* Asterisk Source Version  : 1.4.33
* Dahdi Source Version     : 2.3.0.1+2.3.0
* Libpri Source Version    : 1.4.11.3
* Addons Source Version    : 1.4.11
********************************************************************
linserv.five-fifteen.local on 10.0.0.13 - eth0
CentOS release 5.5 (Final) :32 Bit Kernel: 2.6.18-194.3.1.el5
 
I would run update-scripts, update-fixes and passwd-master again. It won't hurt anything, hopefully fix what's broken.
 
$host is not being populated with your machine ip.address.....

you could force $host in:

Code:
4,webmin,http://$host:9001/,Linux<br/>Webmin,ico_webmin.png


to localhost, then it should not have to resolv

also do you have the following at the top of your /etc/hosts file:

Code:
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               pbx.local pbx localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6
 
er no localhost wont work either, your machine on which your browser is running will attempt to contact itself - 127.0.0.1 etc.

Need to figure out why $host is not populated
 
here are the revelant lines in index.php that is populating $host:

Code:
     31 error_reporting(E_ALL ^ E_NOTICE);
     32 $host = $_SERVER['HTTP_HOST'];
     33 if (strpos($host,":")>0) :
     34         $host = substr($host,0,strpos($host,":")) ;
     35 endif ;

now we need to figure out what your web server is sending back for http_host......
 
it should come back with whatever address you are contacting your server as.

my box is on 192.168.0.2, and if use http://192.168.0.2, $host comes back at 192.168.0.2, i also have a alias of pbx-glacer to my hamachi ip

so again, something dns wise is not resolving and its timeing out
 
when you boot, do you get a warning when apache starts up that it cant figure out your FQDN?
 
I noticed I was using a different hostname in httpd.conf than that of my server.

Hostname is linserv.five-fifteen.local
httpd.conf was set to piaf.five-fifteen.local

After I set the httpd.conf to linserv.five-fifteen.local and restarted apache the webmin button appeared again.

Thanks to all who have helped!
 

Members online

No members online now.

Forum statistics

Threads
26,686
Messages
174,407
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top