Have been trying to install mosquitto with websockets enabled on FreeBSD.
Following are the steps.FreeBSD 10.2-BETA1-p1 , amd64.
Installed the available mosquitto port on freebsd.
Made changes to the config.mk in File mosquitto-1.4.4.tar.gz located at /usr/ports/distfiles
Changed the SHA 256 and the file size in distinfo at /usr/ports/net/mosquitto . This is to make sure the file is not downloaded again from net.
pkg remove mosquitto
make clean
make install
Made changes to /usr/local/etc/mosquitto/mosquitto.conf . [port 1883 listener 9001 protocol websockets]
mosquitto -d -c /usr/local/etc/mosquitto/mosquitto.conf
Error: Websockets support not available.
Error found at /usr/local/etc/mosquitto/mosquitto.conf:152.
Unable to figure out what the issue maybe. I checked the work folder in the mosquitto port to see if websockets was set to yes. Everything seems to be correct.
Appreciate your help ,Thanking you all in advance .
GS
You need to change the conf file before you make it. And run make after make clean.
Related
When doing ember s on any ember app, I get:
Serving on http://localhost:4200/
Livereload failed on http://localhost:49152. It is either in use or you do not have permission.
Checking the failing port with lsof -iTCP:49152 shows nothing. So I guess this must be a permission issue. I installed this on a new Mac using the setup suggested at https://stackoverflow.com/a/28025834/704499: brew install nvm, then nvm install 6.9.2, then npm install -g npm#latest.
I can start the server by using sudo ember s. But I can also start the server by explicitly assigning a different port for livereload – which doesn't make any sense given that nothing is blocking port 49152…
nodejs 6.9.2
nvm 0.32.1
npm 3.10.9
ember-cli 2.10.0
I'm confused as to what the exact cause of this problem is and how I can solve it. Any hints appreciated.
It's related to the Touchbar on the new MacBook Pros. See details here: https://github.com/ember-cli/ember-cli/issues/6513
If you change the port that live reload is launching on (on mobile at the moment, so don't have an easy way to look that command up), you should be set.
To address this issue temporarily, start the server on a different port:
ember serve --live-reload-port 0
Per ember help: "Pass 0 to automatically pick an available port", which generally works both for --live-reload-port as well as for webserver port. Occasionally I get the same error, and specifying a port like 35729 does the trick.
A fix is also in the ember-cli pipeline; you can update to the beta branch to test:
npm install -g ember-cli#beta
Note: #acorncom pointed out that beta has a fix (github issue) and the original poster of the question, #morgler, shared specific instructions for the live reload port number change in a comment on this thread. My answer merely consolidates the info in one place, so credit where credit is due.
I've installed rabbitmq on Mac OS X via homebrew, just a simple command:
$ brew install rabbitmq
but, when I start the server via rabbitmq-server, it occurs:
ERROR: distribution port 25672 in use on localhost (by non-Erlang process?)
I want to find some process that uses port 25672, but I can't find that really strange
anyone knows the reason, thx a lot :)
Use sudo lsof -i :25672 to find the process. sudo may or may not be needed depending on user permissions.
I have installed mongodb for mac os through 10gen and I have gone through the documentation to do so. Everything seems fine apart from the configuration file. I can not see it in /etc/mongod.config. Do I have to manually create this config file? And if so how can I go about it?
cheers
The default path for brew installed mongodb on Mac OS X is /usr/local/etc/mongod.conf
Unless you have installed a packaged version of MongoDB (for example, using Homebrew or Mac Ports) you will have to create a config file manually, or just pass the appropriate command line parameters when starting up MongoDB.
If you want a commented example of a config file to start with, the mongodb.conf in the Debian/Ubuntu package should be a good starting point. Important options to check are the dbpath and logpath which will likely be different for you.
It would also be worth looking at the Homebrew mongodb formula which includes setting up a LaunchAgent script to manage the mongod service.
Yes, unless you install via a package manager (like apt or yum on Linux) you have to create this manually. Then, When you start mongod you simply need to specify where the config file is, for example:
./mongod -f /path/to/mongod.conf
For how that file should look, just take a look here:
http://docs.mongodb.org/manual/reference/configuration-options/
You can also see the aforementioned Linux config files from the packages on github:
https://github.com/mongodb/mongo/blob/master/rpm/mongod.conf
https://github.com/mongodb/mongo/blob/master/debian/mongodb.conf
In the case you installed MongoDB without Homebrew, i.e. downloaded the TGZ package directly from MongoDB Download Center, you will can add the configuration file:
sudo nano /etc/mongod.conf
Please use only spaces (no tabs) in the file and leave a space after the key. For example:
security:
authorization: enabled
net:
port: 27017
bindIp: 0.0.0.0
And then run the instance with the configuration flag:
mongod -f /etc/mongod.conf
I wrote a post about installing MongoDB Community Edition directly from the TGZ archive.
I am using Mac OSX Lion. I am running php ver 5.3.6 through MAMP and when trying the create a AMQPConnection I get this error
Class 'AMQPConnection' not found
I installed rabbitmq through macports using this command
$ sudo port install rabbitmq-server
I run the server using this command
$ sudo rabbitmq-server -detached
It all works fine
I added "extension=amqp.so" to my php.ini file. More specifically my /Applications/MAMP/bin/php/php5.3.6/conf/php.ini file.
I have rabbitmq-c
I ran autoreconf -i && ./Configure && make && sudo make install with no errors
I configured rabbit with this command phpize && ./configure && make && make install
All that seemed to go perfectly.
I even created my user with permissions and verified those permissions with the web plugins that can be accessed through localhost:55672
I even tried copying amqp.so into my /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-20090626/ file in a futile attempt to get it working.
Everything that I have done has seemed to work flawlessly. I get no error/warning messages. The Rabbit server is running. I ran it without the -detached option to see if I was getting any errors there. Nothing.
Any Suggestions??????
Best way to test your RabbitMQ Server installation is by testing with simple python code.
Installing PIKA library on Mac OSX is very easy. Follow the steps given here.
http://www.rabbitmq.com/tutorials/tutorial-one-python.html
copy paste and create two python files receive.py and send.py. Execute these from two terminal windows. In about 10 minutes you'll know that RabbitMQ is able to receive the message and queue.
Create the info.php on server with
Check the results from browser if it shows AMQP library is active.
I feel your RabbitMQ server is installed, but PHP library is not getting loaded correctly.
Check your error.log. There must be some details why it is failing to load 'amqp.so' file.
Can You please Add:
use PhpAmqpLib\Message\AMQPMessage;
under your:
use PhpAmqpLib\Connection\AMQPStreamConnection;
line and it will work.
im having this problem. everytime i try to install something using channels i get this error:
Discovering channel pear.phing.info over http:// failed with message: channel-add: adding Channel "pear.phing.info" to registry failed
Trying to discover channel pear.phing.info over https:// instead
Discovery of channel "pear.phing.info" failed (channel-add: Cannot open "https://pear.phing.info/channel.xml" (Connection to `pear.phing.info:443' failed: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?))
im not beyind any proxy, openssl is on
using windows and wamp server
any ideas???
thanks
It seems like its using PHP to make the connection. You need to make sure that openssl is enabled in your php.ini file.
Uncomment the line: extension=php_openssl.dll in php.ini
OR
For mac users you will need to use macports:
sudo port install php5-openssl
I had the same problem. No Proxy, OpenSSL enabled. I ended up with installing it "the new way": Just download the PHAR package, which also contains all dependencies. Run it via php phpunit.phar.
I've got the same error when trying to install phpunit
In my php.ini file
i've uncommented the line bellow by removing ";"
;extension=php_openssl.dll
Saved changes. And then i've run in cmd :
pear channel-discover pear.phpunit.de
pear upgrade-all
pear update-channels
Same problem.
So i've downloaded the phpunit.phar from this link and then i've run in cmd
php phpunit.phar
Now it's working :)
Set the proxy and everything should work:
pear config-set http_proxy http://login:pwd#server:port