Bitnami Django: Start or Stop Services (Apache, MariaDB, PostgreSQL)

Check the status of a service:
bitnami@debian:~$ sudo /opt/bitnami/ctlscript.sh status
Start, Stop, Restart all services:
bitnami@debian:~$ sudo /opt/bitnami/ctlscript.sh start
bitnami@debian:~$ sudo /opt/bitnami/ctlscript.sh stop
bitnami@debian:~$ sudo /opt/bitnami/ctlscript.sh restart
Restart a single service, such as Apache only, by passing the service name as argument:
bitnami@debian:~$ sudo /opt/bitnami/ctlscript.sh restart apache

Ref:
Start or Stop Services

run 2 websites บน localhost (Apache webserver on Windows)

How To Configure Apache 2
How to Install and Run Multiple XAMPP on Windows ?
How to Change Apache and MySQL Port Number in XAMPP Localhost
phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user ‘pma’@’localhost’ (using password: NO)

Windows10 (on one PC) runs Bitnami Django Stack 3.1.4-0 (Apache, MySQL, PostgreSQL)
and XAMPP (Apache, MySQL, etc.):

  • Bitnami (Django), we use the default setting values (no need to change).
  • XAMPP, we use the different port setting in Apache (httpd.conf, httpd-ssl.conf), MySQL (my.ini), and phpMyAdmin (config.inc.php)

Apache (C:\xampp\apache\conf\httpd.conf)
Start Apache with different port such as 8080 (default port is 80).
...
#Listen 80
Listen 8080
...
#ServerName localhost:80
ServerName localhost:8080
...

Apache (C:\xampp\apache\conf\extra\httpd-ssl.conf)
Change the SSL port also.
...
#Listen 443
Listen 444
...
#<VirtualHost _default_:443>
<VirtualHost _default_:444>
...

MySQL (C:\xampp\mysql\bin\my.ini)
Change the default port used by MySQL Server from 3306 to 3310.
...
[client]
#port=3306
port=3310
...
[mysqld]
#port=3306
port=3310
...

phpMyAdmin (C:\xampp\phpMyAdmin\config.inc.php)
Add the following line…
...
$cfg['Servers'][$i]['port'] = '3310';
...

I think you can run both Bitnami (Django Stack) and XAMPP (php webserver, …) for localhost on one PC

  • Bitnami –> http://localhost:81/ or http://127.0.0.1:81/
  • XAMPP –> http://localhost:8080/ or http://127.0.0.1:8080/

and can also access phpMyAdmin (http://localhost:8080/phpmyadmin/) without any error. We can notice the Server: 127.0.0.1:3310 at the top of the display.
*For running Binami (Django Stack) at port 81, we should modify
Apache (C:\Bitnami\djangostack-3.1.4-0\apache2\conf\httpd.conf)
...
#Listen 80
Listen 81
...
#ServerName localhost:80
ServerName localhost:81
...

Apache, Bitnami (C:\Bitnami\djangostack-3.1.4-0\apache2\conf\bitnami\bitnami.conf)
...
#NameVirtualHost *:80
NameVirtualHost *:81
NameVirtualHost *:443
...
<VirtualHost _default_:81>
  DocumentRoot "C:/Bitnami/djangostack-3.1.4-0/apache2/htdocs"
...


Ref (for Bitnami Django Stack):
Getting Started
Deploy A Django Project

Deploying Django in Windows with Apache

Extra
XAMPP VS WAMP: Which Local Development Server Is Better?
How to upgrade XAMPP in Windows? Complete Solution
XAMPP – Port 80 in use by “Unable to open process” with PID 4!