[GH-ISSUE #960] --config app.ini Not Working #2049

Closed
opened 2026-02-27 12:17:03 +03:00 by kerem · 0 comments
Owner

Originally created by @techana on GitHub (Apr 15, 2025).
Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/960

Describe the bug
Choosing 9000 as the default port for this app is strange since it's the default port for php-fpm! I tried to run Nginx UI on a different port using --config app.ini option, but that didn't work. Here is my app.ini:

$ cat app.ini 
[server]
HttpPort = 8000

And here is the error I get when trying to run the app:

$ ./nginx-ui --config app.ini
2025/04/15 02:08:06 [overseer] disabled. run failed: listen tcp :9000: bind: address already in use
2025-04-15 02:08:06     INFO    /home/runner/work/nginx-ui/nginx-ui/main.go:44  Server exited

To Reproduce
Steps to reproduce the behavior:

  1. create app.ini as given above
  2. run the app: ./nginx-ui --config app.ini
  3. See the error

Expected behavior
The app should work while listing to port 8000 instead of 9000.

Info (please complete the following information):

  • Server OS: Alpine Linux v3.21
  • Server Arch: x86-64
  • Nginx UI Version: v2.0.0-rc.5
  • Your Browser: Safari, Firefox]

Additional context
I couldn't install the app using the install script because Alpine Linux does not support systemd

Originally created by @techana on GitHub (Apr 15, 2025). Original GitHub issue: https://github.com/0xJacky/nginx-ui/issues/960 **Describe the bug** Choosing 9000 as the default port for this app is strange since it's the default port for php-fpm! I tried to run Nginx UI on a different port using --config app.ini option, but that didn't work. Here is my app.ini: ``` $ cat app.ini [server] HttpPort = 8000 ``` And here is the error I get when trying to run the app: ``` $ ./nginx-ui --config app.ini 2025/04/15 02:08:06 [overseer] disabled. run failed: listen tcp :9000: bind: address already in use 2025-04-15 02:08:06 INFO /home/runner/work/nginx-ui/nginx-ui/main.go:44 Server exited ``` **To Reproduce** Steps to reproduce the behavior: 1. create `app.ini` as given above 2. run the app: `./nginx-ui --config app.ini` 3. See the error **Expected behavior** The app should work while listing to port 8000 instead of 9000. **Info (please complete the following information):** - Server OS: Alpine Linux v3.21 - Server Arch: x86-64 - Nginx UI Version: v2.0.0-rc.5 - Your Browser: Safari, Firefox] **Additional context** I couldn't install the app using the install script because Alpine Linux does not support `systemd`
kerem 2026-02-27 12:17:03 +03:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-ui#2049
No description provided.