How to Host Multiple PHP application on single instance and get their accessing url for domain connection?

Keywords: LAMP/MAMP/WAMP - AWS - How to - Application configuration

Description:
Apologies if my query is dumb but I am new to web hosting and in dire need of help,
Currently my instance is hosting one of my php application, and when I type the public IP of my instance on my system I can see my hosted website without any problem and for hosting this application I had not created any virtual host, I just transfered my php application files into the htdocs directory of my instance and it showed up on the public ip of my instance i didn’t had to configure anything and hence connected the hosted application with the domain by using the public ip but now I want to host one more application which I created onto the same instance, so how do I host my new application and get its ip for its domain connection ?

Hi @JackFrost,

Thank you for your interest. You can follow the instructions in this guide to move your app to a separate folder and create a virtual host for it. Then, you can follow the guide again all the times you need to deploy the rest of PHP applications you have.

https://docs.bitnami.com/aws/infrastructure/lamp/administration/create-custom-application-php/

Happy to help!


Was my answer helpful? Click on :heart:

I have gone through this documentation and followed exact steps but my instance doesn’t have a main httpd-prefix.conf file in " /opt/bitnami/apache2/conf/bitnami" directory and when I am adding the include httpd-prefix.conf for my second website in the main apache configuration file i.e “/opt/bitnami/apache2/conf/bitnami/httpd.conf”, or in bitnami.conf file present in the same directory apache server fails to restart, and until unless I restore the main conf files to their original state.

Hi @JackFrost,

Please note that you are not using a Bitnami installer so you need to follow the instructions of the guide I posted above. The link I posted explains how to deploy a custom PHP application in a cloud image.

Happy to help!


Was my answer helpful? Click on :heart:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.