http://www.vicidial.org/VICIDIALforum/viewtopic.php?f=2&t=11123
by mflorell » Mon Apr 19, 2010 7:44 pm
http://www.vicidial.org/VICIDIALforum/viewtopic.php?f=2&t=11123
by mflorell » Fri Sep 18, 2015 8:40 am
https://docs.vicibox.com/en/latest/introduction/hardware/dimensioning.html
Run these commands on your Web server:
sudo zypper install apache2
sudo systemctl enable apache2
sudo systemctl start apache2
vicibox-ssl
If you’re using a ViciBox installation, you can auto-generate and install a cert with:
sudo vicibox-ssl
If you've already obtained the SSL certs using acme.sh
, your cert and key files will be located here:
/root/.acme.sh/ambiorixg12-dialer.ddns.net/
Key files used:
ambiorixg12-dialer.ddns.net.cer
→ Certificate
ambiorixg12-dialer.ddns.net.key
→ Private Key
Apache will use these directly in the next step.
Create a new virtual host config file:
sudo nano /etc/apache2/vhosts.d/ambiorixg12-dialer.conf
<VirtualHost *:443>
ServerName ambiorixg12-dialer.ddns.net
DocumentRoot /srv/www/htdocs
SSLEngine on
SSLCertificateFile /root/.acme.sh/ambiorixg12-dialer.ddns.net/ambiorixg12-dialer.ddns.net.cer
SSLCertificateKeyFile /root/.acme.sh/ambiorixg12-dialer.ddns.net/ambiorixg12-dialer.ddns.net.key
<Directory "/srv/www/htdocs">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/apache2/ambiorix-error.log
CustomLog /var/log/apache2/ambiorix-access.log combined
</VirtualHost>
To redirect all HTTP requests to HTTPS:
sudo nano /etc/apache2/vhosts.d/redirect.conf
<VirtualHost *:80> ServerName ambiorixg12-dialer.ddns.net Redirect permanent / https://ambiorixg12-dialer.ddns.net/</VirtualHost>6. Enable SSL Module
sudo a2enmod sslsudo a2enflag SSL
7. Test Apache Configuration
sudo apachectl configtest
8. Restart Apache
Open:
🔗 https://ambiorixg12-dialer.ddns.net
by mflorell » Sun Sep 26, 2010 2:42 pm
Here is a clearly organized, step-by-step breakdown of the ViciBox installation process across three server roles: Database, Web, and Telephony. Each section includes the expected installation output summary for reference.
Attach ViciBox ISO to the server.
Boot from ISO.
Select Install
when prompted.
Once OS is installed, update system:
zypper up
When prompted:
Enter local IP: 5.78.132.229
Choose Expert install: y
Use this server as Web server: y
Input database IP: 5.78.125.222
Enable Redirect Page: y
Do not enable Database, Telephony, or Archive roles.
Keep firewall enabled.
Post-install configuration:
nano +227 /etc/apache2/httpd.conf
IncludeOptional /etc/apache2/vhosts.d/*.conf
cd /etc/apache2/vhosts.d/
and rename to dynportal_1 dynportal-ssl_1
systemctl start apache2
systemctl status apache2
ViciBox Install Summary ---
vicibox-install
When prompted:
-
Enter local IP: 5.78.68.242
-
Choose Expert install: y
-
Use this server as Telephony server: y
-
Do not enable Web, Database, or Archive roles.
-
Input database IP: 5.78.125.222
-
Keep firewall enabled
📋 Output After Installation:
--- ViciBox Install Summary ---
Expert : Yes
Legacy : No
Database : No
Web : No
Telephony: Yes
Archive : No
Firewall : Enabled
--- Configuration Information ---
- Database -
SVN Rev : 3920
IP Addr : 5.78.125.222
Name : asterisk
User : cron
Password : 1234
Cust User: custom
Cust Pass: custom1234
Port : 3306
- ------------------
this config is after install vici ssl
nano +227 /etc/apache2/httpd.conf
IncludeOptional /etc/apache2/vhosts.d/*.conf
/etc/apache2/vhosts.d/vici-ddns.conf
nano +227 /etc/apache2/httpd.conf
IncludeOptional /etc/apache2/vhosts.d/*.conf
MariaDB [asterisk]> delete from vicidial_api_urls;
Query OK, 2107654 rows affected (0.028 sec)
MariaDB [asterisk]> SELECT table_schema, table_name, ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS total_size_MB FROM information_schema.tables GROUP BY table_schema, table_name ORDER BY total_size_MB DESC LIMIT 10;
+--------------+------------------------------------+---------------+
| table_schema | table_name | total_size_MB |
+--------------+------------------------------------+---------------+
| asterisk | vicidial_url_log | 600.17 |
| asterisk | vicidial_api_log | 329.22 |
| asterisk | vicidial_list | 180.85 |
| asterisk | call_log | 105.10 |
| asterisk | vicidial_agent_latency_log_archive | 93.64 |
| asterisk | vicidial_dial_log | 81.70 |
| asterisk | vicidial_carrier_log | 64.72 |
| asterisk | recording_log | 59.82 |
| asterisk | vicidial_log_extended | 54.95 |
| asterisk | vicidial_log | 49.01 |
+--------------+------------------------------------+---------------+
10 rows in set (0.019 sec)
MariaDB [asterisk]> delete from vicidial_api_urls; Query OK, 6 rows affected (0.002 sec)
MariaDB [asterisk]> select * from vicidial_api_urls limit 3\G; Empty set (0.000 sec)
ERROR: No query specified
MariaDB [asterisk]> SELECT table_schema, table_name, ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS total_size_MB FROM information_schema.tables GROUP BY table_schema, table_name ORDER BY total_size_MB DESC LIMIT 10;
+--------------+------------------------------------+---------------+
| table_schema | table_name | total_size_MB |
+--------------+------------------------------------+---------------+
| asterisk | vicidial_url_log | 600.18 |
| asterisk | vicidial_api_log | 329.22 |
| asterisk | vicidial_list | 180.85 |
| asterisk | call_log | 105.10 |
| asterisk | vicidial_agent_latency_log_archive | 93.64 |
| asterisk | vicidial_dial_log | 81.70 |
| asterisk | vicidial_carrier_log | 64.73 |
| asterisk | recording_log | 59.82 |
| asterisk | vicidial_log_extended | 54.96 |
| asterisk | vicidial_log | 49.01 |
+--------------+------------------------------------+---------------+
10 rows in set (0.019 sec)
MariaDB [asterisk]> delete from vicidial_api_log;
Query OK, 2107675 rows affected (0.019 sec)
MariaDB [asterisk]> SELECT table_schema, table_name, ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS total_size_MB FROM information_schema.tables GROUP BY table_schema, table_name ORDER BY total_size_MB DESC LIMIT 10;
+--------------+------------------------------------+---------------+