DirectAdmin in Amazon EC2 - Ethernet interface problem

scalopus+

Verified User
Joined
Mar 16, 2008
Messages
10
I have installed DirectAdmin in Amazon EC2 and it is working.
However, I have a problem about to way to retrieve license file in DA control panel.

it will retrieve via eth0:0 which is DirectAdmin IP Address license in directadmin.conf. However, it cannot be download via that interface.


when I going to install, I following this blog. it remove '--bind-address=IPADDRESS' parameter from `wget` command. that mean it go though eth0 interface (not eth0:0)

Now, I can manual update via directadmin script. (by remove --bind-address parameter) but cannot retrieve a license from DA control panel.

Anyone have any suggestion to make it work?

Below is message received when trying to update license via control panel.
====
This is an automated message notifying you that an error has occurred while trying to update the license file.
The generated message is as follows:

Unable to connect to 66.51.122.131<br>
Unable to connect to secure socket<br>
Unable to connect to any site for a license update<br>


Please contact JBMC-Software, including the error message. Failure to do so could result in an inactive control panel.
===

Please note that I have already configure Security Group to allow connection from that ip address in any ports.
 
Last edited:
You set the interface in /usr/local/directadmin/conf/directadmin.conf
 
Search these forums. If that fails, try Googling. I remember it being discussed somewhere previously.

Jeff
 
Search these forums. If that fails, try Googling. I remember it being discussed somewhere previously.

Jeff

Dear Jeff,

I have searched this forum and also googling. The information in that blog has a final step when successful installation. (Yes, I have done it too).

But in my question, is about step after complete an installation such as monthly license activation, directadmin update.

It cannot be done it by control panel.

For me, I can activate by secure shell and run script manually. however, I am not sure that you have any ideas to run it via DA control panel or not.
 
Hello,

From my recollection it's because DA EC2 setups are on LANs and don't actually have a valid external IP on them. When DA tries to bind to it, the connection fails since an external IP isn't valid on a LAN.

If you don't use the bind option, it would probably go out through the LAN ip, then to the external IP, thus would work.

So with this setup, using anything that binds to the licensed IP will fail and must be done manually, since the setup doesn't meet the ip requirements.

Check your output of:
Code:
/sbin/ifconfig
to see what you've got.

John
 
As far i remember this is already discussed in the AWS forums and i think you can add IPs to buckets.
 
You should create a custom folder in your templates directory and move custom templates there instead of creating backups and restore them on any upgrade. Far easier. Besides that, thanks for sharing, I can see this being helpful for some people.
 
Back
Top