Installing Gearman on Ubuntu 14.04 / ~#root -i Installing Gearman on Ubuntu 14.04 / ~#root -i Installing Gearman on Ubuntu 14.04 / ~#root -i Installing Gearman on Ubuntu 14.04 / ~#root -i Installing Gearman on Ubuntu 14.04 / ~#root -i Installing Gearman on Ubuntu 14.04 / ~#root -i Installing Gearman on Ubuntu 14.04 / ~#root -i Installing Gearman on Ubuntu 14.04 / ~#root -i
  • RU
  • UA
  • EN
  • Create an online store
  • Documentation
  • Blog
    • Unix ОS
    • Php
    • MySQL
    • JavaScript
    • Package Managers
    • Docker
    • Seo
  • Short Links
  • Sign in
  • Create Account
  • Home
  • Unix OS
  • Installing Gearman on Ubuntu 14.04

Installing Gearman on Ubuntu 14.04

We will be tweaking the Gearman system to work with PHP. Therefore, packages will be installed to work with it and sharpen apache to work with it.

1.  We install the necessary packages:

sudo apt-get install gearman-job-server php-gearman

At this stage, there may be problems with php-gearman due to the lack of the libgearman8 package. To do this, add a PPA repository:

sudo add-apt-repository ppa:ondrej/pkg-gearman
sudo apt-get update

And repeat:

sudo apt-get install gearman-job-server php-gearman

2. PHP and Apache binding:

We need to work with phpize. To do this, install the php-dev package. In my case, I will consider php5.6.

sudo apt-get install php5.6-dev

You will also need the libgearman-dev package to use the ./configure command later.

sudo apt-get install libgearman-dev

For apache, download the latest package http://pecl.php.net/package/gearman. In my case it is gearman-1.1.2.tgz. The file ends up in the download directory /home/user/download.

cd /home/user/download
tar xzf gearman-1.1.2.tgz
cd /home/user/download/gearman-1.1.2
phpize
./configure
make
sudo make install

If everything is normal and without errors, it will display a message

Installing shared extensions:     /usr/lib/php/20131226/

This is the path to the lib, each one has its own, you need to register it in php.ini of your php version.

In my case it is:

/etc/php/5.6/apache2/php.ini

Insert at the end of the file:

; gearman
extension = /usr/lib/php/20131226/gearman.so

3. Check:

Reboot Apache:

sudo service apache2 restart

Starting the gearman service:

/etc/init.d/gearman-job-server start

In your project's php file, paste:

print gearman_version() . "\n";

If you see the gearman version and not Fatal Error, then you've done a good job.

17 May 18
823
0

Comments

Name
E-mail
Rating
Review

Other articles from the category

26 May 2022

Ubuntu black screen after driver installation on Nvidia 630M

Let's try to cure the black screen when booting Ubuntu after installing proprietary nvidia-340 driver on Nvidia 630M laptop.

06 January 2022

USB not working after Ubuntu 18.04 update on laptop

When USB 2.0-3.0 stopped working after updating Ubuntu on a laptop.

18 December 2021

Running Skype (skypeforlinux) in multiple Ubuntu windows

Ability to run Skype in multiple windows. Installed on Ubuntu skypeforlinux run in 2 windows.

23 March 2020

Disabling bluetooth speakers, dos attack on bluetooth in Linux

Let's consider one of the ways to dos-attack on bluetooth through the basic l2ping tools in linux. Let's analyze a simple python script.

30 December 2019

Store e-mail locally, Ubuntu sendmail stub for Php

Consider a script that saves e-mail to a file. Sendmail stub, setup in Ubuntu.

26 June 2019

Ubuntu 18.04 initramfs error

Let's analyze one of the reasons for the initramfs error when starting Linux Ubuntu 18.04. Let's try a system restore. fsck exited with status code 4.

31 March 2019

Npm : Depends node-gyp but won`t install Ubuntu 18.04

Unsatisfied links when installing npm, after installing node.js. Consider an alternative installation option.

30 March 2019

Does not detect monitor, no required resolution, unknown VGA display in Ubuntu

Let's consider one of the possibilities to set the monitor resolution via xrandr. Analysis of a connected second monitor via VGA. Unknown display in Ubuntu 18.04.

Categories

  • Unix OS
  • Php
  • MySQL
  • JavaScript
  • Package Managers
  • Docker
  • Seo

Latest comments

alex, я вижу 2 причины почему так может быть. Не в...
root-i
04.07.22
Сделал все так как написано в статье, не работает.
alex
04.07.22
Как вариант это может происходить из-за неизвестно...
root-i
21.01.22
Чтобы убрать ошибку Uncaught TypeError: $ is not a...
wlad2.ru
11.01.22

I share information in which I needed help and spent a lot of time figuring it out. If the information helped at least one person, then this site was not created in vain.

Thank you for the continuation of the site:
Contacts

Telegram Viber Mail

Search for articles

  • Sign in
  • Create Account

Powered by chmod -R