Jump to content
  • 0

antmedia and php script on same server


robertosamayoa
 Share

Question

6 answers to this question

Recommended Posts

  • 0
On 1/30/2023 at 10:41 AM, robertosamayoa said:

Hi, anyone know how to install antmedia server and php script on same server, currently i have to use 2 servers one for front end and second for antmedia, when tried to use on same server then antmedia stop working.

 

Using ubuntu 20.

Hi @robertosamayoa

It should not be, both should be served from the same server.

Can you please explain a little how you are installing antmedia as well webserver (apache/nginx).

Link to comment
Share on other sites

  • 0
10 hours ago, rahul7827 said:

Hi @robertosamayoa

It should not be, both should be served from the same server.

Can you please explain a little how you are installing antmedia as well webserver (apache/nginx).

apache conf only for current domain, and antmedia just install i they do all automatic, maybe then need to create apache configuration for that also, do you know how to configure?

 

 

Link to comment
Share on other sites

  • 0

Thanks for your help, it is working now.

 

1,/ create vhost for your frontend code.

2. create vhost for antmedia with subdomain

3.- create letsencryp certificate and copy into /usr/local/antmedia

4. go to /us/local/antmedia and follow these to import ssl

 

Option 3: Use your own certificates

enable_ssl.sh script supports external fullchain.pem, chain.pem and privkey.pem files as in the following format

sudo ./enable_ssl.sh -f {FULL_CHAIN_FILE} -p {PRIVATE_KEY_FILE} -c {CHAIN_FILE} -d {DOMAIN_NAME} 

Ex:

sudo ./enable_ssl.sh -f yourdomain.crt -p yourdomain.key -c yourdomainchain.crt -d yourdomain.com
sudo ./enable_ssl.sh -f yourdomain.pem -p yourdomain.key -c yourdomainchain.pem -d yourdomain.com

If you disable any service that binds to 80 port such as Apache Web Server, enable it again

sudo service apache2 start

 

5.- enable ufw rules.

 

 

 

 

  • Like 2
Link to comment
Share on other sites

 Share

×
×
  • Create New...