WebServer
This section handle the WebServer management.
POST /console/WebServerHandler
This method is used to modify certain php.ini values.
Request parameters:
- params [mandatory]: parameters to save on the web server separated by "|-|" : TimeZone|-|MaxLifeTime|-|PHPiniPath.
- company [mandatory]: the company Id.
- session [mandatory]: the Id of the active session.
Response:
- status: returns "0" on success, and an error code in any other case.
- data: returns True on succes.
- message: "success" or a descriptive information of the error in any other case.
Example:
Content-Type: application/json Request: /console/WebServerHandler? company=0000000001¶ms=Europe/Madrid|-|1400|-|localhost\websrv\php\php.ini|-|&session=Xl4AAZNHFIYrWAp9YhcpzGKOuM6ZqPAQbKx88It9V5lMrxcMZtVhLCmxwYEY Reponse (success): { "status": "0", "data": True, "message": "Success" } |
GET /console/WebServerHandler
This method is used to load some php.ini values.
Request parameters:
- params [mandatory]: php ini path.
- company [mandatory]: the company Id.
- session [mandatory]: the Id of the active session.
Response:
- status: returns "0" on success, and an error code in any other case.
- data: returns some php.ini parameters separated by "|-|": TimeZone|-|MaxLifeTime|-|PHPiniPath
- message: "success" or a descriptive information of the error in any other case.
Example:
Content-Type: application/json Request: /console/WebServerHandler? company=0000000001¶ms=C:\Program Files\edinn\edinnM2\Server\websrv\php\php.ini&session=Ptpl2mrxTKBi9JJWkYT5glujIRBfmMvO1ZAK3Gkk8dHt7hKVjgkOVTkoI9R5 Reponse (success): { "status": "0", "data": Europe/Madrid|-|4444|-|* Read from C:\Program Files\edinn\edinnM2\Server\websrv\php\php.ini|-|0, "message": "Success" } |