top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Ubuntu/CentOS difference in PHP usage

+4 votes
409 views

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.

posted Oct 27, 2013 by Dewang Chaudhary

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

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

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

answer Oct 27, 2013 by Majula Joshi
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!

Thanks for showing interest in my problem.
Similar Questions
0 votes

i want to know what is the best way to install a specific version of php and have a full LAMP setup.

Ubuntu intallation of LAMP is very esay but by default I get php 5.4, and I need 5.3. If I can choose a specific version like 5.3.17 that would be even better.

+3 votes

I have php 5.6.5 on centos 4.5 64bit. I am unable to install curl. And generate so file, I have tried all the possibilities.

./configure --with-curl=/root/php-5.6.5/ext/curl/libs --with-mysql --with-mysqli --with-apxs2=/usr/local/apache2/bin/apxs
+2 votes

I am using mongodb 3.2 (On ubuntu 14.04) and trying to query a large dataset (about 388 millions of little documents). During my aggregation tests I found that mongo sometimes uses 100% in one core and sometimes not and as a consequence, the time of response varies a lot.This CPU usage can also vary from an aggregation query to another (for example : if a want to aggregate more documents).

Please help me to understand better the functioning of this framework.

+4 votes

On CentOS, top shows per process memory using in kb or mb. On Fedora 19, top shows per process memory usage by the byte. Is there an option or setting to make Fedora's top (from procps-ng) work like CentOS' (from procps).

...