Sign inSign up

sciencesoft/phpdaemon

By sciencesoft

•Updated almost 11 years ago

PHP Daemon Installed pre configured image based on Debian:jessie - More details http://daemon.io/

Image
1

284

sciencesoft/phpdaemon repository overview

⁠PHP Daemon

This repository is pre configured image based on Debian:jessie for PHPDaemon project.

http://daemon.io/⁠

Inside you can find installed PHPDaemon.


#First of all you should install related utilities.
sudo -i  
apt-get install gcc make libcurl4-openssl-dev libevent-dev git libevent

#Installing PHP 5.5.  
apt-get install php5-cli php5-dev php-pear

#Then install PHP modules.
pecl install event eio  
echo "extension=event.so" > /etc/php5/mods-available/event.ini  
echo "extension=eio.so" > /etc/php5/mods-available/eio.ini

#Creating links
ln -s /etc/php5/mods-available/event.ini /etc/php5/cli/conf.d/event.ini 
ln -s /etc/php5/mods-available/eio.ini /etc/php5/cli/conf.d/eio.ini

#Prepare a folder for PHPDaemon.  
mkdir /opt/phpdaemon
chown [your user]:[your group] /opt/phpdaemon
exit #exiting root user

#Installing PHPDaemon.  
cd /opt/phpdaemon
git clone https://github.com/kakserpom/phpdaemon.git ./

#Creating configuration file from sample.
cp /opt/phpdaemon/conf/phpd.conf.example /opt/phpdaemon/conf/phpd.conf

#Let's create an alias of `phpd` for convenience.  
alias phpd='/opt/phpdaemon/bin/phpd'

#Local alias of sudo:  
alias sudo='sudo '

*** You can link you with your apps with Docker Compose

=== Docker Compose ===

phpdaemon:
    build: phpdaemon
    hostname: phpdaemon
    volumes:
        - ./phpdaemon/app:/opt/phpdaemon/App

Tag summary

Content type

Image

Digest

Size

188.6 MB

Last updated

almost 11 years ago

docker pull sciencesoft/phpdaemon