Linux Network Managing Api - php

I have an ERP web application ,and
I want to give the application admin the ability to manage network settings of my server operating system from my application.
What are the main network issues which I have to take care about them ?
and Are there any APIs to do that ?
Hint:
My application is written with php, and my server os is CentOS.

Related

How to keep local server and cloud server sync?

I'm developing cloud-based ERP software and my client wants to have a feature where if the internet is down and the cloud is not accessible then a local server can be used to provide the service and once the internet is back cloud can sync with the updates.
Please advise. how to design such model.
Software language: core PHP

PHP Application Server With Laravel

This is my first time developing with PHP. I have been googling around but still, not got the answer.
On my Centos 7 server, I have installed LAMP.
I want to know what the web server is and what the application server is.
As I know, the web server is Apache HTTP Server.
What about application server?
From wiki, it said PHP-FPM
List of application servers
From Stackoverflow, they said Quercus, Zend Server and appserver.io
Stackoverflow
First of all you need to understand that Apache is the Web Application Server.
LAMP is an archetypal model of web service stacks, named as an acronym
of the names of its original four open-source components: the
GNU/Linux operating system, the Apache HTTP Server, the MySQL
relational database management system (RDBMS), and the PHP programming
language. The LAMP components are largely interchangeable and not
limited to the original selection. As a solution stack, LAMP is
suitable for building dynamic web sites and web applications.
Wiki on LAMP
There are different types of application servers like file servers, email servers and web servers. So you don't need an additional server as an application server. Apache is your Web Application Server, also called Web Server.

Desktop Application with Client Server Architecture That Syncs with Cloud Database

I have a web app running with PHP and MySQL.
I need to develop a desktop application which will sync data from the cloud DB whenever the client's computer connects to internet. If the client's computer is not connected to the internet, the desktop application will continue to work offline, using the local DB. The local DB is obviously a replica of the cloud DB.
I don't want to use Microsoft c# to create the desktop application. The desktop application needs to be cross platform and should run on Windows, Mac and Linux.
I have used XAMPP to create a local MySQL DB and have achieved the local app to sync with the cloud app. However, there are multiple problems to that approach.
-- Whenever my client's need to install the local app, they need to call me and I have to install XAMPP in their computer, setup the server, setup the local database and prepare it to sync with the cloud database with their account. They obviously aren't tech savvy so they don't know how to do it themselves.
-- If the client formats his computer, they will call me again and again and I have to set it up for them all the time, which isn't scalable in the longer haul.
-- XAMPP doesn't work when there are other processes running and using common ports. Example - Skype, Quickheal and other antivirus software running will prevent the SQL server to start. Sometimes what happens is that even after I have installed the local app, the client will install an antivirus software or some other tool and my local app will stop working on their computer.
Hence, I need to do away with XAMPP and switch to something else.
SQLite is out of question since it is serverless. I don't want to use .NET either. What I am looking for is this
I want to develop the database driven local application and package it somehow. I want to provider an installer file which will automatically install the database server, setup the database and everything else. The client will only login to the system in the local app and he doesn't have to setup any server. All the work that he does will be synced with the cloud server whenever internet connection resumes.
Please note that there is a master slave work involved. The client will have multiple terminal computers using the master system from other terminals and all these terminal computers will use the local database installed in the master computer.
I have tried to illustrate this with a diagram below
What's the best way to go about it?

Creating Local AMP Application on Network Share

I've recently begun to develope web applications with Apache web server, MySQL database server and PHP. My work is looking for a cheap efficient way to update an older split Access database which currently is configured with the backend residing on a network share and the front-end being distributed to end users.
Is it possible to install an AMP stack on a network drive and have multiple users at different locations access a php site on an Apache web server backed by a MySQL server. Could the end users simply access the site through the IP address of the network drive?
Any feedback is greatly appreciated!!
I am not sure how you can install it on a network drive because apache server needs to run as a service and binds its self with port 80 or any other as you customise.
All I can suggest is you can install wamp http://www.wampserver.com/en/ on any of your network machines and access it locally from within your network.
Simple as it sounds.

Web app - Biometric system connection

I will be developing an application for a club where they will have visitors use biometric systems(finger print) or magnetic cards to mark their attendance.
This application is planned as a web app, made using PHP/MySQL/Javascript. It does a lot of other things as well.
What I wanted to find out is how is the interface between Biometric/Megnetic Card systems to a web app done?
I've never worked on this and am hoping if someone who has experience with this can throw some light on this as to how this could be accomplished. Any pointers will be appreciated.
Also, we will be hosting this application remotely. So we won't have physical access to the web-server.
(I'm afraid there's got to be some form of application installed on a pc that would interface with the hardware and probably makes calls to the web app. But, if there was a way to connect it to the web app directly, then the app would be easy to deploy to any location with minimal installation.)
Thanks! :)
How is the hardware connected? Directly to the app server, or to a standalone box of some sort? If it's a standalone box, then yes you'll have to have some kind of program on the box collect the data and send it to the web app. If it's connected directly to the app server, then you need to write something that either polls the hardware or receives messages/events from the driver and DTRT wrt the web app.
There three type of communication channels are supported by the biometric machines. They are serial, TCP/IP and HTTP. In your case, you either need to implement TCP/IP or HTTP.
If your application is running the intranet, then you can implement the TCP/IP server application and host at a intranet system which is expected to write in a common database between the biometric application and your web-app.
If your application is hosted at the server, then you can implement the http server and associated the URL with the machine. For this you need buy the http api supported machines. Here is the google search link for finding such machines.

Categories