Resolution

There are two ways to configure endpoint for development of external application

  1. Automatic

    We have created a script to perform all actions automatically:

    • Download and extract the attached endpoint.tar.
    • Run the script:

      ./endpoint.sh <endpoint url path> <application archive path>
      

      For example:

      ./endpoint.sh application /root/application-1.0-1.app.zip
      

      Scripts will be extracted to /var/www/html/application.

      For more information see built-in help (execute endpoint.sh without parameters to see usage).

  2. Manual

    If there are problems with automatic configuration you can report an error to technical support or configure end-point manually.

    Checklist for typical Apache & PHP environment:

    • webserver to handle request:

      yum install httpd
      

    If you use PHP and scripting engine and our php-runtime:

    • php and required modules

      yum install php php-xml php-soap
      
    • php runtime: Install latest aps-php-runtime from PHP Runtime Library page, for example:

      yum install http://download.apsstandard.org/php.runtime/aps-php-runtime-2.3-55.el7.noarch.rpm
      
    • Extract your scripts to some web-accessible folder, for example /var/www/html/application and change the owner to webserver (necessary for php runtime to work):

      chown -R apache:apache your_folder
      

      If you feel uncomfortable giving write access to apache to your whole endpoint folder, you can create folders for php runtime inside your endpoint and make sure apache can write there. Folders are :

      config
      typeCache
      

      PHP runtime will store configuration data and temporary files there. If you are not using PHP runtime these folders are not required.

    • Create .htaccess with rewrite rules:

      <IfModule mod_rewrite.c>
      
      RewriteEngine on
        RewriteBase /application/
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^globals(|/.*)$ globals.php?q=$1 [L,QSA]
        RewriteRule ^samples(|/.*)$ samples.php?q=$1 [L,QSA]
        RewriteRule ^users(|/.*)$ users.php?q=$1 [L,QSA]
      
      </IfModule>
      
    • Make sure .htaccess will be processed by webserver, modify /etc/httpd/conf/httpd.conf:

      find AllowOverride directive in <Directory "/var/www/html">, it should be set to All:

      AllowOverride All
      

      Restart Apache after applying the changes.

Internal content