How to Install 3X-UI VPN on Ubuntu 26.04

3X-UI is a web-based control panel that installs Xray-core (a fork of V2Ray) and allows you to manage VPN/proxy protocols such as VMess, VLESS, Trojan, and Shadowsocks via a browser.

Update Your System

Before installation, update your system packages:

apt update && apt upgrade -y

Install Required Dependencies

Install necessary packages:

apt install curl unzip -y

Download and Install 3X-UI

Run the official installation script:

bash <(curl -Ls https://raw.githubusercontent.com/mhsanaei/3x-ui/master/install.sh)

During installation:

  • Choose Y to customize the panel port or N to use a random port.
  • If choosing custom, enter your preferred port.

Example output:

Would you like to customize the Panel Port settings? (If not, a random port will be applied) [y/n]: y
Please set up the panel port: 15885
Your Panel Port is: 15885

###############################################
Username: TCTGf0JXhf
Password: DHBIbrYSvM
Port: 15885
WebBasePath: tq5fGUpOYUJTFBh
Access URL: http://your_server_ip:15885/tq5fGUpOYUJTFBh
###############################################

Save the Username, Password, Port, and WebBasePath securely.

Manage 3X-UI Service

Start and enable the service:

systemctl start x-ui
systemctl enable x-ui

Check status:

systemctl status x-ui

Access the Web Interface

Open your browser and visit:

http://your_server_ip:PORT/WebBasePath

Replace with actual server IP, port, and WebBasePath.

Login to Dashboard

images

  • Enter the generated username and password.
  • After login, you will see the 3X-UI dashboard.

⚠️ For security, change the default credentials immediately after first login.

images

Useful Commands

x-ui start
x-ui stop
x-ui restart
x-ui status
x-ui settings
x-ui log
x-ui update
x-ui uninstall

🎉 You have successfully installed and configured 3X-UI VPN on Ubuntu 26.04.


CrownCloud - Get a SSD powered KVM VPS at $4.5/month!
Use the code WELCOME for 10% off!

1 GB RAM / 25 GB SSD / 1 CPU Core / 1 TB Bandwidth per month

Available Locations: LAX | MIA | ATL | FRA | AMS