⚙️ Configuration Reference
Complete structure of the config.json file used by LocNetServe.
📁 File Structure
{
"configPath": "..\\config\\config.json",
"icons": { ... },
"myserver": { ... },
"paths": { ... },
"services": { ... },
"settings": { ... }
}
🎨 Icons Configuration
"icons": {
"apache": {
"off": "light.ico",
"on": "green.ico"
},
"custom": "logo1.png",
"mysql": {
"off": "light.ico",
"on": "green.ico"
},
"tray": {
"off": "logo2.png",
"on": "logo3.png",
"stopped": "logo1.png"
}
}
🚀 Server Information
"myserver": {
"status": "running",
"version": "v1.0.0"
}
📂 Paths Configuration
"paths": {
"apache": "{BASE_PATH}\\bin\\apache",
"apache_conf": "{BASE_PATH}\\bin\\apache\\conf",
"base": "{BASE_PATH}\\",
"cmd": "{BASE_PATH}\\config\\cmd\\",
"dashboard": "{BASE_PATH}\\apps\\dashboard\\",
"icons": "{BASE_PATH}\\icons\\",
"locales": "{BASE_PATH}\\config\\locales\\",
"mysql": "{BASE_PATH}\\bin\\mysql\\",
"php": "{BASE_PATH}\\bin\\php"
}
🔧 Services Configuration
"services": {
"Apache": {
"conf": "{BASE_PATH}\\bin\\apache\\conf\\httpd.conf",
"exe": "{BASE_PATH}\\bin\\apache\\bin\\httpd.exe",
"hide_window": 1,
"log_file": "{BASE_PATH}\\bin\\apache\\logs\\error.log",
"process": "httpd.exe",
"service": "Apache2.4",
"version_cmd": "-v",
"version_file": "{BASE_PATH}\\bin\\apache\\bin\\httpd.exe"
},
"LocNetServe": {
"exe": "{BASE_PATH}\\LocNetServe.exe"
},
"MySQL": {
"admin": "{BASE_PATH}\\bin\\mysql\\bin\\mysqladmin.exe",
"exe": "{BASE_PATH}\\bin\\mysql\\bin\\mysqld.exe",
"hide_window": 1,
"log_file": "{BASE_PATH}\\bin\\mysql\\data\\mysql_error.log",
"password": "",
"process": "mysqld.exe",
"service": "MySQL94",
"user": "root",
"version_cmd": "-version",
"version_file": "{BASE_PATH}\\bin\\mysql\\bin\\mysqld.exe"
},
"PHP": {
"exe": "{BASE_PATH}\\bin\\php\\php.exe",
"url_info": "http://localhost/info.php",
"version_cmd": "-v",
"version_file": "{BASE_PATH}\\bin\\php\\php.exe"
},
"versions": {
"apache": "2.4.65",
"locnetserve": "LocNetServe v1.0.0",
"mysql": "8.0.34",
"php": "8.2.8"
}
}
⚙️ Settings Configuration
"settings": {
"language": "en",
"refreshInterval": "3000",
"t_lang": "1760953244",
"t_pid": "1760296258",
"t_serve": "1761084120"
}
Environment Variables
LocNetServe uses these environment variables:
LOCNETSERVE_HOME=C:\MyServer
PATH=%LOCNETSERVE_HOME%\bin;%PATH%