openpanel/website/docs/articles/dev-experience/autostart-services.md
2024-09-23 12:25:44 +02:00

3.7 KiB
Raw Blame History

Auto-start Services

Services in OpenPanel start only when they are actually needed, to avoid wasting resources.

Auto-start Services in OpenAdmin

Upon installing OpenPanel, only the following services are started:

  • OpenAdmin For managing the entire server and users.
  • Docker Needed for all other containerized services and user accounts.
  • Database MySQL database is created and initialized. This database holds Plans, Websites, Domains, and Users.
  • Firewall CSF or UFW are installed and started.

Other services are installed and started only when required.

Service Installed Auto-start
OpenAdmin YES On installation
Docker YES On installation
Database YES On installation
ConfigServer Firewall YES On installation
Uncomplicated Firewall NO On installation
OpenPanel NO After adding first user account
BIND9 NO After adding first domain name
Dovecot & Postfix NO When enabled by Administrator
FTP NO When enabled by Administrator, after first FTP account is created

Auto-start Services in OpenPanel

Using the /etc/entrypoint.sh for each user, Administrators define which services to auto-start when their container is started. The container is started after a user is created and on every Docker service restart.

Similar to OpenAdmin, services in OpenPanel also start only when they are needed. This allows for better resource management. An idle account will use around 15MB of RAM, while an account with domains, websites, and MySQL databases may use up to 1GB of RAM.

Services that auto-start for each user:

Service Installed Auto-start
Apache / Nginx YES After the user adds the first domain
SSH NO After the user enables remote SSH access
REDIS NO After the user installs and activates it
Memcached NO After the user installs and activates it
Elasticsearch NO After the user installs and activates it
MongoDB NO After the user installs and activates it
MySQL / MariaDB YES After the user adds at least 1 database
Cron YES After the user adds at least 1 cron job
PHP 8.3 NO After the user installs and sets it for at least 1 domain
PHP 8.2 YES After the user adds at least 1 domain
PHP 8.1 NO After the user installs and sets it for at least 1 domain
PHP 8.0 NO After the user installs and sets it for at least 1 domain
PHP 7.4 NO After the user installs and sets it for at least 1 domain
PHP 7.3 NO After the user installs and sets it for at least 1 domain
PHP 7.2 NO After the user installs and sets it for at least 1 domain
PHP 7.1 NO After the user installs and sets it for at least 1 domain
PHP 7.0 NO After the user installs and sets it for at least 1 domain
PHP 5.6 NO After the user installs and sets it for at least 1 domain