Menu

Set up your web server

Your web server communicates with the Knox E-FOTA Server to:

  • Register enterprises for the Knox E-FOTA service.
  • Get Android firmware information for various Samsung device models.
  • Schedule firmware updates for specified groups of devices.

This section provides a set of instructions to follow to set up your web server prior to developing your web server code. If you're new to developing for Knox E-FOTA , read through this section to learn the steps before you begin.

Set up your web server

In our examples, we use an Apache server with the Linux operating system, and the PHP scripting language is used to communicate with Samsung’s Knox E-FOTA server. If you are new to web development, or are doing so in a testing or support capacity, you can start by setting up a web server.

Here are some basic Linux commands to set up an Ubuntu v14 operating system, Apache web server, and PHP scripting language:

  1. install Ubuntu 14.0
  2. sudo apt-get update
  3. sudo apt-get install apache2
  4. sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt php5-curl
  5. sudo /etc/init.d/apache2 restart

Once you have a web server with PHP support, copy your scripts into /var/www/html.

Alternatively, you can use a pre-built environment, such as that provided by Apache Friends.

If you don’t have a web server, another option is to enrol in a free or trial cloud service to gain quick access to Knox E-FOTA.

Use an HTTPS connection to encrypt data

Use an SSL certificate to encrypt data sent between your web server and Samsung’s Knox E-FOTA server. Make sure to purchase an SSL certificate from a trusted provider. Self-signed certificates are not trusted by the Knox E-FOTA server. Also, make sure your certificate contains the complete certificate chain. For help, please consult with your web provider.