Implementation of the SOAP server - server.php:
<?php
// turn off WSDL caching
ini_set("soap.wsdl_cache_enabled","0");
// model, which uses in web service functions as parameter| (function() { | |
| // Your JavaScript content | |
| console.log('Test script for Zid'); | |
| })(); |
| ########## Install NGINX ############## | |
| # Install software-properties-common package to give us add-apt-repository package | |
| sudo apt-get install -y software-properties-common | |
| # Install latest nginx version from community maintained ppa | |
| sudo add-apt-repository ppa:nginx/stable | |
| # Update packages after adding ppa |
| <?php | |
| /** | |
| * Class Container | |
| */ | |
| class Container | |
| { | |
| /** | |
| * @var array | |
| */ |
| # @see http://sphinxsearch.com/downloads/release/ | |
| # redhats: yum remove sphinx | |
| # debians: apt-get remove sphinxsearch | |
| cd /usr/local/src | |
| wget -c http://sphinxsearch.com/files/sphinx-2.2.10-release.tar.gz | |
| tar xzvf sphinx-2.2.10-release.tar.gz | |
| cd sphinx-2.2.10-release | |
| ./configure | |
| make install |
| #!/bin/sh | |
| # Variables | |
| USER="admin" | |
| PASS="password" | |
| # Assert Root User | |
| SCRIPTUSER=`whoami` | |
| if [ "$SCRIPTUSER" != "root" ] | |
| then |
| #!/bin/bash | |
| # from here: http://www.codingsteps.com/install-redis-2-6-on-amazon-ec2-linux-ami-or-centos/ | |
| # and here: https://raw.github.com/gist/257849/9f1e627e0b7dbe68882fa2b7bdb1b2b263522004/redis-server | |
| ############################################### | |
| # To use: | |
| # <<!!!!!!!!!!!!!!!!!!! FIX ME !!!!!!!!!!!!!!!!!!!!!!!!> wget https://raw.github.com/gist/2776679/04ca3bbb9f085b192f6aca945120fe12d59f15f9/install-redis.sh | |
| # chmod 777 install-redis.sh | |
| # ./install-redis.sh | |
| ############################################### | |
| echo "*****************************************" |
| #!/usr/bin/php | |
| <?php | |
| /** | |
| * .git/hooks/pre-commit | |
| * | |
| * This pre-commit hooks will check for PHP error (lint), and make sure the code | |
| * is PSR compliant. | |
| * | |
| * Dependecy: PHP-CS-Fixer (https://github.com/fabpot/PHP-CS-Fixer) | |
| * |