itanzopen.com

Clear sky
24.3 °C
Frankfurt am Main

Tag: install

  • Change PHP version on Apache

    You can install multiple PHP versions on your system and switch PHP version between them.

    Example:

    The PHP 5.6 is set as default version in your system, and you need to switch to PHP 7.2. Run the following commands to switch for Apache and command line.

    sudo a2dismod php5.6
    sudo a2enmod php7.2
    sudo service apache2 restart

    sudo update-alternatives --set php /usr/bin/php7.2
    sudo update-alternatives --set phar /usr/bin/phar7.2
    sudo update-alternatives --set phar.phar /usr/bin/phar.phar7.2
    sudo update-alternatives --set phpize /usr/bin/phpize7.2
    sudo update-alternatives --set php-config /usr/bin/php-config7.2

  • PHP 7 on Ubuntu 14

    sudo apt-get install software-properties-common
    
    
    sudo apt-get -y update
    sudo add-apt-repository ppa:ondrej/php
    sudo apt-get -y update
    sudo apt-get install -y php7.0 libapache2-mod-php7.0 php7.0 php7.0-common php7.0-gd php7.0-mysql php7.0-mcrypt php7.0-curl php7.0-intl php7.0-xsl php7.0-mbstring php7.0-zip php7.0-bcmath php7.0-iconv
    
    sudo a2enmod php7.0 (sudo a2dismod php5 if needed)
    sudo service apache2 restart
  • Install Kannel – for dummies :)

    Install Kannel – for dummies 🙂

    install kannel

    Kannel is a compact and very powerful open source WAP and SMS gateway, used widely across the globe both for serving trillions of short messages (SMS), WAP Push service indications and mobile internet connectivity.

    There are many tutorials “How to install kannel” but there is no “for dummies” one so I decided to make one 🙂

    This procedure to install kannel is tested and adjusted on Ubuntu Server with LAMP installed on.

    Install kannel procedure:

      • move to home folder
         cd /home
      • execute all these commands
        1. sudo apt-get update
        2. sudo apt-get install build-essential
        3. sudo apt-get install bison
        4. sudo apt-get install libmysqld-dev
        5. sudo apt-get install libxml2-dev
        6. sudo apt-get install subversion
        7. svn co https://svn.kannel.org/gateway/trunk
      • change name of downloaded folder
        mv trunk kannel
      • enter new directory
        cd kannel
      • execute all these commands
          1. sudo ./configure --with-mysql
          2. sudo make
          3. sudo make bindir=/home/kannel/bin install
          4. enter directory
            cd /home/kannel/addons/sqlbox
          5. execute all these commands
            1. sudo ./configure --with-kannel-dir=/home/kannel
            2. sudo make
            3. sudo make install
          6. enter new directory
            cd /home/kannel/addons/opensmppbox
          7. execute all these commands
            1. sudo ./configure --with-kannel-dir=/home/kannel
            2. sudo make
            3. sudo make install

    And Kannel is installed successfully.