PHP7 is the latest version with a lot of performance improvements and everyone wants to update their servers and code to it. Let's see how to configure one and host your code.
Here we see the combination of ubuntu, Nginx, PHP-fpm, php7, mysql, vsftpd
Configuring Ubuntu server:
The first step is to disable password authentication and enable ssh key based authentication as it will give some protection towards server hacks.
Copy your project to /usr/share/nginx/www/ directory, of course you can have your project location based on your requirement but remember to specify its location in nginx configuration.
Now that we have all setup lets create nginx configuration.
The above configuration specifies that the project is served by port 80, the location / represents the root directory of your project, so any file that you request by specifying after your domain name will be search in / directory, here its your project root directory. The php7-fpm.sock file is genereted by php7-fpm which is used by nginx to communicate with your php project.
Now lets enable this project by linking it with sites-enable direcotry, run:
Test your configuration, run:
if no errors, restart nginx
By now your server server is deployed with LEMP stack.
Celery is a task queue with focus on real-time processing, while also supports task scheduling. Task queues are used as mechanisms to distribute work across ...
Web-hooks play vital role if you are in Continuous Integration(CI). Higher Level organizations follow GitLab for CI purposes if they operate on open source solutions ...
In Previous Tutorial we looked into Setting up EL Server which can ingest your Syslog files. In this Post, you will learn about pushing your ...
MicroPyramid - India
HIG499, 6th phase KPHB, Hyderabad, India - 500072, +91 9959166266
Monday - Friday : 10:00 - 19:00
MicroPyramid - USA
280 Moon Clinton Rd,STE D Moon Twp, Pittsburgh, Pennsylvania 15108, +1 5102300949
MicroPyramid - UAE
Khalifa Building(Near Old Nesto Super Market),Opp Fire Station, Sharjah, UAE 341246, +971 566061239