Discussion:
Ubuntu/CentOS difference in PHP usage
Leandro Dardini
2013-10-27 17:05:18 UTC
Permalink
Hello,
I am trying to use an amazing library for websocket over SSL:
https://github.com/Devristo/phpws
Unfortunately it doesn't work on CentOS, but it works great on Ubuntu. It
is not the version of PHP. I tried the same version on both OS and on
Ubuntu works while on CentOS doesn't.

Have you ever found a similar problem?

Leandro
Aziz Saleh
2013-10-27 17:10:22 UTC
Permalink
Post by Leandro Dardini
Hello,
https://github.com/Devristo/phpws
Unfortunately it doesn't work on CentOS, but it works great on Ubuntu. It
is not the version of PHP. I tried the same version on both OS and on
Ubuntu works while on CentOS doesn't.
Have you ever found a similar problem?
Leandro
Leandro,

What exactly does it mean that it does not work? Are you getting errors,
what happens when you run it?

The only requirements I see on Github are:

*Server*

- PHP 5.3
- Open port for the server
- PHP OpenSSL module to run a server over a encrypted connection

*Client*

- PHP 5.3
- Server that implements the HyBi (#8-#12) draft version
- PHP OpenSSL module to connect using SSL (wss:// uris)


If CentOs PHP version meets the requirements, I don't see a reason why it
won't work.

Aziz
Leandro Dardini
2013-10-27 17:27:12 UTC
Permalink
I was in strict contact with the developer and the requirements listed are
all fully meet. Unfortunately there is a requirements we are not aware
of...

About the "not work", I mean the client is not receiving the correct
"sec-Websocket-Accept"

I am suspecting the problem is in the OpenSSL library and I just discovered
the one used in CentOS is not supporting TLSv1.2 while even the old Ubuntu
is supporting!
From the RFC6455 regarding Websocket, it seems TLS is required for wss://
Leandro
Post by Leandro Dardini
Hello,
https://github.com/Devristo/phpws
Unfortunately it doesn't work on CentOS, but it works great on Ubuntu. It
is not the version of PHP. I tried the same version on both OS and on
Ubuntu works while on CentOS doesn't.
Have you ever found a similar problem?
Leandro
Leandro,
What exactly does it mean that it does not work? Are you getting errors,
what happens when you run it?
*Server*
- PHP 5.3
- Open port for the server
- PHP OpenSSL module to run a server over a encrypted connection
*Client*
- PHP 5.3
- Server that implements the HyBi (#8-#12) draft version
- PHP OpenSSL module to connect using SSL (wss:// uris)
If CentOs PHP version meets the requirements, I don't see a reason why it
won't work.
Aziz
Continue reading on narkive:
Search results for 'Ubuntu/CentOS difference in PHP usage' (Questions and Answers)
8
replies
.........linux to windows?
started 2010-08-01 09:19:33 UTC
software
Loading...