apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 049AD65B echo "deb https://apt.opensips.org focal 3.1-releases" >/etc/apt/sources.list.d/opensips.list echo "deb https://apt.opensips.org focal cli-nightly" >/etc/apt/sources.list.d/opensips-cli.list apt-get update && apt-get upgrade apt-get install opensips apt-get install apache2 libapache2-mod-php php-curl opensips-http-modules -y echo ' <Directory /var/www/html/opensips-cp/web> Options Indexes FollowSymLinks MultiViews AllowOverride None Require all granted </Directory> <Directory /var/www/html/opensips-cp> Options Indexes FollowSymLinks MultiViews AllowOverride None Require all denied </Directory> Alias /cp /var/www/html/opensips-cp/web <DirectoryMatch "/var/www/html/opensips-cp/web/tools/.*/.*/(template|custom_actions|lib)/"> Require all denied </DirectoryMatch> ' > /etc/apache2/sites-enabled/opensips-cp.conf mkdir /var/www/html/opensips-cp cp -r opensips-cp-8.3.1/* /var/www/html/opensips-cp chown -R www-data:www-data /var/www/html/opensips-cp/ apt-get install php php-mysql php-gd php-pear php-cli php-apcu -y systemctl restart apache2 #add into opensips.conf #–-- loadmodule "httpd.so" loadmodule "mi_http.so" modparam("mi_http", "root", "mi") #–-- add file opensips-cli.conf #–-- [default] #database_modules: acc clusterer dialog dialplan dispatcher domain rtpproxy usrloc database_modules: ALL #database_admin_url: postgres://root@localhost database_admin_url: mysql://root:phefubuho@127.0.0.1 database_url: mysql://root:phefubuho@127.0.0.1 ###–-
Leave a Reply