How to install gearman extension on MAMP - mamp

Has anyone ever tried and succeeded to install gearman extension on MAMP?
I am trying to do it on MAMP 2.x on a MAC OS X 10.6.8

You can install the server with homebrew
brew install gearman
Then download the PECL package here http://pecl.php.net/package/gearman and compile it
tar xzf gearman-X.Y.tgz
cd gearman-X.Y
phpize
./configure
make
sudo make install
Then copy/paste the gearman.so from your default extensions folder (for me /usr/lib/php/extensions/) to your MAMP extensions folder (eg. /Applications/MAMP/bin/php/php5.3.6/lib/php/extensions/no-debug-non-zts-xxxxx/)
Finally add
extension="gearman.so"
to your MAMP php.ini (/Applications/MAMP/bin/php/php5.3.6/conf/php.ini)
Restart apache and you're done

I finally made it!
Here is how:
I had to install "libevent" first,
then to install "libgearman",
and finally the extension
I I moved the gearman.so to the extensions directory of MAMP and then I added the extension in the php.ini

Related

How to install "stunnel" on CloudLinux RHEL Feddora CentOS yum install not working

!!JUST WRITING THIS POST SO THAT SOMEONE CAN SAVE HOURS IN THIS!!
I tried a hell lot to install this "stunnel" but was unable to do so
I was in my cpanel's terminal
What I tried all with 'sudo'
yum install stunnel
yum -y install stunnel
yum install stunnel5u
yum install stunnel4
etc BUT NONE OF THEM WORKED it just said No package stunnel found
I thought of manually install but still failed
I followed
https://developers.exlibrisgroup.com/blog/newcastle-stunnel-manual-installing-stunnel-on-centos-6/
I tried with the latest version though 5.57
But I stuck on makefile as for this entire stunnel tar package I don't know how to create a makefile
Please Help!!
I searched everywhere but I didn't find it so I tried it myself and it worked
Hope this may help others who are stuck with this in their cpanel RHEL FEDDORA CENTOS
What I did is this:
Open Terminal from Cpanel and run this
wget https://dl.iuscommunity.org/pub/ius/stable/CentOS/7/x86_64/stunnel5u-5.44-1.ius.centos7.x86_64.rpm
rpm -Uvh stunnel5u-5.44-1.ius.centos7.x86_64*rpm
This gave me sign of relief

CakePHP3 - Apache/Server Error 500 - MAMP [duplicate]

Using the CakePHP docs, I am trying to install 3.0-beta2 using composer but I got this error:
cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system
However, I know for sure that intl is installed (it shows on phpinfo). I'm using PHP 5.4.33/Apache 2.4.10.1
I faced the same problem today. You need to enable the intl PHP extension in your PHP configuration (.ini).
Solution Xampp (Windows)
Open /xampp/php/php.ini
Change ;extension=php_intl.dll to extension=php_intl.dll (remove the semicolon)
Copy all the /xampp/php/ic*.dll files to /xampp/apache/bin
Restart apache in the Xampp control panel
Solution Linux (thanks to Annamalai Somasundaram)
Install the php5-intl extension sudo apt-get install php5-intl
1.1. Alternatively use sudo yum install php5-intl if you are on CentOS or Fedora.
Restart apache sudo service apache2 restart
Solution Mac/OSX (homebrew) (thanks to deizel)
Install the php5-intl extension brew install php56-intl
If you get No available formula for php56-intl follow these instructions.
Restart apache sudo apachectl restart
Eventually you can run composer install to check if it's working. It will give an error if it's not.
I faced the same issue in ubuntu 12.04
Installed: sudo apt-get install php5-intl
Restarted the Apache: sudo service apache2 restart
OS X Homebrew (May 2015):
The intl extension has been removed from the main php5x formulas, so you no longer compile with the --enable-intl flag.
If you can't find the new package:
$ brew install php56-intl
Error: No available formula for php56-intl
Follow these instructions: https://github.com/Homebrew/homebrew-php/issues/1701
$ brew install php56-intl
==> Installing php56-intl from homebrew/homebrew-php
When using MAMP
1 Go to terminal
vim ~/.bash_profile
i
export PATH=/Applications/MAMP/bin/php/php5.6.2/bin:$PATH
Change php5.6.2 to the php version you use with MAMP
Hit ESC,
Type :wq,
hit Enter
source ~/.bash_profile
which php
2 Install Mac Ports
https://www.macports.org/install.php
sudo port install php5-intl OR sudo port install php53-intl
cp /opt/local/lib/php/extensions/no-debug-non-zts-20090626/intl.so /Applications/MAMP/bin/php5.3/lib/php/extensions/no-debug-non-zts-20090626/
{take a good look at the folder names that u use the right ones}
3 Add extension
Now, add the extension to your php.ini file:
extension=intl.so
Usefull Link:
https://gist.github.com/irazasyed/5987693
The error message clearly states what the problem is. You need the intl extension installed.
Step 1: install PHP intl you comfortable version
$sudo apt-get install php-intl
step 2:
For XAMPP Server intl extension is already installed, you need to enable this extension to uncomment below the line in your php.ini file. Php.ini file is located at c:\xampp\php\php.ini or where you have installed XAMPP.
Before uncomment:
;extension=php_intl.dll ;extension=php_mbstring.dll
After uncommenting:
extension=php_intl.dll extension=php_mbstring.dll
Short answer: activate intl extension in php_cli.ini. Thanks to #ndm for his input.
If you are using latest version Ubuntu 16.04 or later just do
sudo apt-get install php-intl
Then restart your apache
sudo service apache2 restart
In my case I was not actually trying to run cakephp locally, I was just trying to get it to auto update locally using composer (because I am playing with writing plugins that you install with composer). Since I don't actually even run it locally I could simply ignore requirements by adding the --ignore-platform-reqs flag.
php composer.phar update --ignore-platform-reqs
In my case, my running php version is 7.1.x on mac OSX .
I installed intl command using brew install php71-intl.
Placing extension=intl.so inside php.ini was no effect at all. Finally i looked for extension installed directory and there i saw intl.so and placed that path (extension=/usr/local/Cellar/php71-intl/7.1.11_20/intl.so) to my php.ini file and it solved my problem.
In my case (xampp PHP 8.0)
Find ;extension=intl in /xampp/php/php.ini
Remove ; and Restart Apache
MAKE this
In XAMPP, intl extension is included but you have to uncomment extension=php_intl.dll in php.ini and restart the server through the XAMPP Control Panel.
In WAMP, the intl extension is “activated” by default but not working. To make it work you have to go to php folder (by default) C:\wamp\bin\php\php{version}, copy all the files that looks like icu*.dll and paste them into the apache bin directory C:\wamp\bin\apache\apache{version}\bin. Then restart all services and it should be OK.
if you use XAMPP do this
1. turn off XAMPP
2. Modifed the php.ini is located in c/:xampp/php/php.ini
3. intl extension is included but you have to uncomment extension=php_intl.dll in php.ini and restart the server through the XAMPP Control Panel.
For Ubuntu terminal:
Please follow the steps:
Step-1:
cd ~
Step -2: Run the following commands
sudo apt-get install php5-intl
Step -3: You then need to restart Apache
sudo service apache2 restart
For Windows(XAMPP) :
Find the Php.ini file:
/xampp/php/php.ini
Update the php.ini file with remove (;) semi colon like mentioned below:
;extension=php_intl.dll to extension=php_intl.dll
and save the php.ini file.
After that you need to
Restart the xampp using xampp control.
Intl Means :Internationalization extension which enables programmers to perform UCA-conformant collation and number,currency,date,time formatting in PHP scripts.
To enable PHP Intl with PECL can be used.
pecl install intl
On a plain RHEL/CentOS/Fedora, PHP Intl can be install using yum
yum install php-intl
On Ubuntu, PHP Intl can be install using apt-get
apt-get install php5-intl
Restart Apache service for the changes to take effect.
That's it
For those who get Package not found error try sudo apt-get install php7-intl then run composer install in your project directory.
I had the same problem in windows
The error was that I had installed several versions of PHP and the Environment Variables were routing to wrong Path of php see image example
I'm using Mac OS High Sierra and none of these worked for me. But after searching a lot I found one that worked!
This may seem trivial, but in fact about 2 months ago some clever guys made changes in brew repository, so doing just: brew install php71-intl will show you error with message that such recipe doesn’t exists.
Fortunately, there is. There is temporary fix in another brew repo, so all you have to do is:
brew tap kyslik/homebrew-php
brew install kyslik/php/php71-intl
SOURCE: http://blastar.biz/2018/04/14/how-to-enable-php-intl-extension-for-php-7-1-using-xampp-on-macos-high-sierra/
I use Linux Ubuntu 20, you can try this:
Check php installed modules:
php -m | grep intl
If there are no result(s) from this command, you should just go ahead and install the module:
sudo apt-get install php7.4-intl
you will need to change *php7.4 to your desired php version.
you should restart apache when you're done:
sudo service apache2 restart

Unable to run robomongo.sh using sh robomongo.sh in Ubuntu 14.04

I have Just downloaded the robomongo 64 bit for ubuntu from the Official site.
Then I opened my terminal and went through the folder structure and executed the command from bin folder.
sh robomongo.sh
I'm getting an error like this
robomongo.sh: 5: robomongo.sh: Bad substitution
Help me.
Thanks in Advance
To install MongoDB Administration: RoboMongo version (0.8.*) on Ubuntu
Download 64 bit .deb package for Debian/Ubuntu
Open .deb package with Ubuntu Software Center
MongoDB Administration: RoboMongo has been installed on your linux machine
To install MongoDB Administration: RoboMongo version (0.9.*) on Ubuntu
Download .tar.gz file for ubuntu [ Source: RoboMongo Website, for example 0.9.0 RC8 1.e robomongo-0.9.0-rc8-linux-x86_64-c113244.tar.gz ]
tar -xvzf robomongo-0.9.0-rc8-linux-x86_64-c113244.tar.gz [ Assuming you have robomongo-0.9.0-rc8-linux-x86_64-c113244.tar.gz file into your Download directory ]
sudo mv PATH_TO_RoboMongo_Tar_File /usr/local/lib/robomongo/
Example: sudo mv ~/Downloads/robomongo-0.9.0-rc8-linux-x86_64-c113244/
/usr/local/lib/robomongo/
cd /usr/local/lib/robomongo/bin
Right click on robomongo file i.e executable (application/x-executable)
5.1. Now click on "Make Link" option
You may put this shortcut icon to desktop to launch RoboMongo GUI
in Terminal you can use just this command robomongo and you can install stable version robomongo with using sudo apt-get install robomongo
Solution : when i downloaded the tar file from official site, I just opened it using ubuntu software center. It got Installed and working fine now.
answer of #mistertandon is nice But I will be more clear
There Two ways to install robomongo program into ubuntu using command line:
First way
1.1 download tar.gz file from Official robomongo website(choose version you need to install and get it's tar.gz download file url)
wget https://download.robomongo.org/0.9.0/linux/robomongo-0.9.0-linux-x86_64-0786489.tar.gz
1.2 extract tar.gz file
tar -xvzf robomongo-0.9.0-linux-x86_64-0786489.tar.gz
1.3 mv files and folders into the result folder from extraction operation
into folder robomongo under /usr/local/bin
sudo mkdir /usr/local/bin/robomongo
sudo mv robomongo-0.9.0-linux-x86_64-0786489/* /usr/local/bin/robomongo
1.4 make sure excute file for robomongo program which exists under
/usr/local/bin/robomongo/bin folder is excutable file
cd /usr/local/bin/robomongo/bin
sudo chmod +x robomongo ## run command only if robomongo isn't excutable file
./robomongo
Second way
2.1 download deb file from Official robomongo website(choose version you need to install and get it's deb download file url)
wget https://download.robomongo.org/0.8.5/linux/robomongo-0.8.5-x86_64.deb
2.2 install deb file using dpkg command line
sudo dpkg -i robomongo-0.8.5-x86_64.deb
2.3 open robomongo program using command line by run
robomongo
Very Important Notice:
all version less than robomongo program 0.9.* version has both deb file and tar.gz file download urls(I didn't know what is the reason for this) So If you need download version less than 0.9.* version you can use one of two ways But If you need download version 0.9.0 there only one way is the first ones
more links about install robomongo program: link 1, link 2
If you are unable to run robo3T go to lib folder and delete libstdc++. There you will find two file with similiar name delete both and it will work.

how to install filezilla on CentOS?

I downloaded FILEZILLA from https://filezilla-project.org/download.php.Now how to install this on CentOs,please suggest me.
For Cent OS 7
sudo yum -y install epel-release
sudo yum -y install filezilla
Go to Application > Internet > Filezilla
You need to first download and install epel-release package from here..
http://fedora.mirrors.pair.com/epel/6/i386/repoview/epel-release.html
then you can install by typing yum install filezilla
Thanks..
100% working solution is here:
the question is very old.. but i m posting answer so that anyone else struggling to install fileZilla on centOS 6 or 5 may get help.
this works for me on centOS6.5 goto below link and follow the instruction:
note before following the instruction run this command on terminal:
su
sudo -i
cd /tmp
now follow the instruction from below link.
http://www.servermom.org/2-cents-tip-how-to-enable-epel-repo-on-centos-6-and-5/894/
then install filezilla like this:
yum install filezilla
and you done.
to start fileZilla goto Applications->Internet->FileZilla

Uninstall memcached and/or (force) install with Homebrew - Mac OS X

I need a memcached on my Mac (os X 10.8), and I began by installing memcached and libevent 'manually' (1).
Well, maybe I did this a bit too quickly, and now I'm figuring out that it would be better to install it 'cleanly' with Homebrew.
I think I should first uninstall 'cleanly' libevent and memcached. Should I ?
Or should I simply run brew install memcached , and use the function to delete the files Homebrew thinks are to be deleted ? (I mean brew link -f memcached after brew install memcached ; I'm wondering how 'clean' it will be , and if I won't encounter problems hard to solve later on ...)
Thanks for your help !
(1) how I installed libevent:
cd /tmp
wget http://www.monkey.org/~provos/libevent-1.4.13-stable.tar.gz
tar zxvf libevent-1.4.13-stable.tar.gz
./configure
make
sudo make install
and memcached :
wget http://memcached.googlecode.com/files/memcached-1.4.1.tar.gz
tar xzvf memcached-1.4.1.tar.gz
cd memcached-1.4.1
./configure
make
make test
sudo make install
memcached -d -P pidfile -l 127.0.0.1
Both Memcached & libevent ship with a Makefile uninstall target-command. Assuming you still have your previously configured source files; else, you need to run ./configure before running any make commands.
cd memcached-1.4.1
sudo make uninstall
cd ../libevent-1.4.1-stable
sudo make uninstall
Afterward, you should be able to install everything cleanly with Homebrew.