Cluster solution for plesk multiserver administration.
❗ DO NOT USE THIS ON A PUBLIC SERVER, IT IS INTENDED TO RUN ONLY ON LOCALHOST. IF YOU RUN IT ON A PUBLIC SERVER WITHOUT HTACCESS PROTECTION, YOU ARE GIVING ACCESS TO YOUR PLESK SERVER TO THE PUBLIC |
---|
- Server List with basic information
- Server information page with domains, clients, services and server info.
- Copy the repository on your server directory
git clone https://github.com/Iguannaweb/ples_multi_server.git
- Run composer install to fetch dependencies
- Fill data on ./igw-includes/config/config.example.php (email, name and array data with host, user and passwords) and rename to ./igw-includes/config/config.php
I just wanted to make things easy... so I decided to save data on files. One global and others separated.
- Data directory: ./igw-content/data/xxx
- Folder type (xxx): clients | domains | server | status
- Files (xxx).data:
- clients.data (serialized array of clients info) and clients.X.data (single serialized array of clients of one server)
- domains.data (serialized array of domains info) and domains.X.data (single serialized array of domains of one server)
- server.data (serialized array of server info) and server.X.data (single serialized array of one server info)
- status.data (serialized array of status info) and status.X.data (single serialized array of service status of one server)
"platform": "...",
"hostname": "...",
"guid": "...",
"panel_version": "...",
"panel_revision": "...",
"panel_build_date": "...",
"panel_update_version": "...",
"extension_version": "...",
"extension_release": "..."
"id": x,
"created": "...",
"name": "...",
"login": "...",
"status": x,
"email": "...",
"locale": "...",
"guid": "...",
"description": "...",
"type": "..."
"id": x,
"created": "...",
"name": "...",
"ascii_name": "...",
"base_domain_id": x,
"guid": "...",
"hosting_type": "...",
"www_root": "...",
"aliases": []
<id>xxx</id>
<title>xxx</title>
<state>running/stopped/none</state>
Check that the time it takes to run the script is less than the time between one scheduled job and another. 5 minutes is a good time to time to check things.
*/5 * * * * wget http://locahost/plesk_multi_server/update_data.php