How to configure web administration module in ejabberd (2.1.x)? - ejabberd

Hii All Thanks for viewing this issue please help me i am trying to configure ejabberd from last 3 days but still not having any solution i added
these code in ejabberd.cfg
{hosts, ["localhost","server.mobulous.in"]}.
{acl, admin, {user, "admin", "server.mobulous.in"}}.
is this a issue of server port because i install zpanel on my vps server and its running on this ip http://119.18.63.178/
So do i need to change server.mobulous.in to this IP?
and also i am not able to access this and this
http://119.18.63.178:5280/admin
http://server.mobulous.in:5280/admin
Help me please i am new to vps and dont know to much
Thanks in advance
[root#server ~]# tail /var/log/ejabberd/ejabberd.log
I(<0.465.0>:ejabberd_listener:166) : Reusing listening port for 5222
=INFO REPORT==== 2014-03-21 13:27:39 ===
I(<0.466.0>:ejabberd_listener:166) : Reusing listening port for 5269
=INFO REPORT==== 2014-03-21 13:27:39 ===
I(<0.467.0>:ejabberd_listener:166) : Reusing listening port for 5280
=INFO REPORT==== 2014-03-21 13:27:39 ===
I(<0.36.0>:ejabberd_app:72) : ejabberd 2.1.13 is started in the node ejabberd#server

"Hosts" in ejabberd
The hosts configuration clause in ejabberd has unfortunate name as it really denotes XMPP domains your server hosts, not the name (or IP address) of the machine it's running on. So if your users will have JIDs of the form sismaster#server.mobulous.in, then you only need to have server.mobulous.in in the hosts clause.
Note that if your XMPP domain is mobulous.in you'll have to properly setup DNS SRV records for your server so that records for mobulous.in point to server.mobulous.in.
Web administration interface in ejabberd
In order for web administration interface to work on a certain port, the web_admin module has to be enabled in the configuration of that port's listener.
For instance, in order to have web admin interface served on 5280 you need to have something like this in your configuration file:
{5280, ejabberd_http, [web_admin]},
I've recently helped someone on the ejabberd mailing list with the similar problem; you can read my rather extensive message here.

Related

Google Compute Engine and Glassfish can't access from outside

I created an instance (CentOS7) in GCE. I then installed Glassfish 4. However, I can't seem to access it via http/https.
[ank#instance-1 bin]$ sudo ./asadmin start-domain
Waiting for domain1 to start .........
Successfully started the domain : domain1
domain Location: /opt/glassfish4/glassfish/domains/domain1
Log File: /opt/glassfish4/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.
When trying to access http://ip_address or even http://ip_address:4848 I get "refused to connect" error.
Appreciate any help.
you'd need to open port tcp:80, tcp:443 (and tcp:4848) on the firewall; assuming you have already assigned an external IP (or are accessing it from another internal IP on the same network, which I'd suggest for tcp:4848). see the documentation, concerning: Using Firewall Rules.

MySQL:Error 2003 lost connection from a virtual machine on the same localnetwork

Apologies for the bad english, i'm french. :D
I've been looking for an answer since approximatively 4 days, and I don't know how to fix my issue.
So:
I want to virtualize two servers using virtualBox on Windows7 and i want them all on the same local network.
My VMs are running on Ubuntu 16.04
On the first VM I installed a lamp web server with MySQL 5.7 and i add phpmyadmin.
On the second VM I installed Jira standalone
--> I need to connect to my Database from my Jira server
So I used the Bridge adapter on each machine:
network configuration
network configuration
Ip adresses are attributed with the DHCP protocol.
The SQL machine ip is 192.168.6.80
The Jira machine ip is 192.168.6.101
The Host machine ip is 192.168.6.87
I'm able to ping each machine so there is no problem.
SQL server
When I start the machine everything seems to work, i can access from my SQL server:
localhost : home page of apache 2 saying "It Works"
localhost:5671 :
[���
5.7.18-0ubuntu0.16.04.1� ���UKBeM�ÿ÷�ÿ����������T(DGKg1hwd=�mysql_native_password���ÿ„Got
packets out of order
localhost/phpmyadmin : the index page where I can connect perfectly with root.
Host Machine (Windows)
192.168.6.80 : home page of apache 2 saying "It Works"
192.168.6.80:5671 :
[���
5.7.18-0ubuntu0.16.04.1� ���UKBeM�ÿ÷�ÿ����������T(DGKg1hwd=�mysql_native_password���ÿ„Got
packets out of order
192.168.6.80/phpmyadmin : the index page where I can connect perfectly with root.
Jira server
Here when i start the machine it works during approximatively 2-3 minutes,
I'am able to connect via:
mysql -u root -p -h 192.168.6.80 -P 5671
I am perfectly connected and i can also access to all the other adresses.
And then it stop working on this machine only.
Unable to connect
Firefox can’t establish a connection to the server at 192.168.6.80.
The site could be temporarily unavailable or too busy. Try again in a few moments.
If you are unable to load any pages, check your computer’s network connection.
If your computer or network is protected by a firewall or proxy, make sure that Firefox is permitted to access the Web.
And when i re-try to connect via mysql on terminal I get the Error 2003 (HYOOO)
This happen only when i use the connection of my work, at home it works perfectly without stopping!!
I have few leads:
problems of proxy authentication
problems of firewall configuration
i am in a private network with a domain name called something.eu
And when i launch firefox the proxy shows up automatically:
and-etc-ha.something.eu:9090
So i'm invited to enter my id and password.
My id is : luc.myName#something.eu
After that i'm connected to internet with firefox but not in terminal when i want to use apt.
I search on the web and i found this:
export http_proxy="http://Username:password#proxyip:port/"
and
export http_proxy="http://Domain\user:pasword#proxyip:port/"
So I tried different ways and i was able to download with apt. But the internet connexion with firefox was unstable. But if I use firefox on my host machine the connexion is perfect.
I also tried with settings -> network -> network proxy -> method manual
http: and-etc-ha.something.eu port: 9090
I don't know if I was understandable, tell me!^^
If you have any ideas to help me to solve this problem let me know.
Bye!
I found the cause: In fact there was a ip conflict inside the LAN because the DHCP was giving in-use ip address.
I decide to use the NAT connection with Port Forwarding on VirtualBox.
With that configuration I'm able to access my VMs on my LAN using the host ip address followed by the port of my choice.

Amazon ec2 hosting server ip address

I am a beginner in linux and I need to upload my JavaEE project on Amazon Ec2 hosting. I am using putty to connect to the server and successfully installed mysql and tomcat. What I need now is to access the tomcat server i.e., http://ipaddress:8080. Can Anybody tell me how to know the ipaddress of the server to access the tomcat server installed. I have used grep --color nameserver /etc/resolv.conf to get the ipaddress but If I type http://ipaddress (from the command):8080 it says the site cannot be reached. Can anybody help me with that.
Regards,
The IP Address is similar to the below, found under Instances / Instances:
The Security Groups you have set up are Located under Network & Security / Security Groups:
Note that in the above, port 3306 can only be reached by one hard-coded IP Address, whereas port 110 is reachable from anywhere. Please also see CIDR.
To hook a certain Security Group into a running instance, perform that off the first screen shot, lower right.

Openshift port issues while installing ldap Opendj

hi i have unzipped opendj in data directory , now i am trying to install opendj but none of the ports are allowing me to bind even in the range above 15000 i am using the OPENSHIFT_JBOSSEWS_IP=127.3.231.1 insternal ip still facing issue
example
What would you like to use as the initial root user DN for the Directory
Server? [cn=Directory Manager]:
Please provide the password to use for the initial root user:
Please re-enter the password for confirmation:
Provide the fully-qualified directory server host name that will be used when
generating self-signed certificates for LDAP SSL/StartTLS, the administration
connector, and replication
[ex-std-node351.prod.rhcloud.com]: openam-avsrecon.rh
cloud.com
i used the internal ip also here
On which port would you like the Directory Server to accept connections from
LDAP clients? [389]: 15389
ERROR: Unable to bind to port 15389. This port may already be in use,
or you may not have permission to bind to it
On which port would you like the Directory Server to accept connections from
LDAP clients? [389]: 0000
Invalid port number "0000". Please enter a valid port number between 1
and 65535
On which port would you like the Directory Server to accept connections from
LDAP clients? [389]:
I don't see where you are actually binding to the correct ip address, if you are referring to this line
Provide the fully-qualified directory server host name that will be used when generating self-signed certificates for LDAP SSL/StartTLS, the administration connector, and replication
This is only for the self signed ssl certificate generation. It looks like you are not binding to the correct ip address, and most likely your application is binding to 127.0.0.1 or 0.0.0.0 (all interfaces). You may need to further consult the documentation about where to specify the ip to bind to.

Plesk11 Centos6 enabling SMTP port 587

I am using Plesk11 and would like to run my won SMTP service.
My server is configured to work with port 25, yet my ISP doesnt support this, only 587. Could anyone tell me how to configure my host so that SMTP runs on port 587?
Thank you in advance!
Plesk has port 25 open by default , in order to change it without plesk over-writing it again later, and since plesk is running the service using inetd.d structures, you should change the service name.
Add a new service called smtp_plesk under /etc/services with port 587
and after that alter the /etc/xinetd.d/smpt_psa file.
See the following link with a well elaborated guide: http://www.supportfacility.com/blog/plesk/plesk-configure-qmail-to-use-alternate-port-26/