If you’re trying to run red5 on a 1&1 managed server, you have to turn epoll support off because their linux distribution chokes on it. To do that, add this command paramater:
-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider
The error looks something like this:
Exception in thread “main” java.lang.InternalError: unable to get address of epoll functions, pre-2.6 kernel?
at sun.nio.ch.EPollArrayWrapper
at sun.nio.ch.EPollArrayWrapper.
at sun.nio.ch.EPollSelectorImpl.
at sun.nio.ch.EPollSelectorProvide
at java.nio.channels.Selector.open(Selector.java:209)
at org.apache.mina.transport
at org.apache.mina.transport
at org.apache.mina.common.support
at org.red5.server.net.rtmp
at sun.reflect.NativeMethodAccesso
at sun.reflect.NativeMethodAccesso
at sun.reflect.DelegatingMethodAcc
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.beans

Hello where you add this comman parameter?
-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.PollSelectorProvider
did you have any problems running amfphp on 1and1? … I just tried putting it on my server space, and tried to access the gateway, and I’m getting 500 internal server errors… any ideas?
Anonymous #1:
The parameter gets added to the startup script.
Anonymous #2:
I think the only problem I had with AMFPHP was 1&1 was using php4 instead of php5. Just rename the main php file you call from whatever.php to whatever.php5 and it’ll run under the correct runtime. I forget the actual filename.
hi marc,
thanks for your quick reply. I actually did try changing my extensions from php to php5… still seem to be getting the 500 errors.
i’m on the linux shared-hosting plan… is that what you had been using?
very frustrating…. so any other tips you can offer would be greatly appreciated!
thanks,
-john.
I was on the shared linux plan too. Sorry, but that’s the only thing I can remember being weird. I’m not with 1&1 anymore so I can’t check how it’s set up.
no problem, thanks for the effort!
How did you install Red5 on the server. Because on my 1&1 Managed Server I got no root access.
I did have root access. No idea why you would be different.