I am trying to help a friend to set up a PHP Application on Ubuntu and Apache 9.0, they have a public IP to use but they are clueless on how to configure the application to make it visible on the internet using such IP.
I have tried to lookup online and here but I couldnt find anything clear/helpfull enough, so I wonder if you guys could provide me of some info on how to achieve this.
Their Apache version is 9.0 and their distro is Ubuntu Server 9.1
First wherever you purchased your domain, you need to go into the DNS controls and set an “A” record pointing to that public IP address of yours. It will take a little while to propagate, but to accept that you need to setup a virtual host.
http://httpd.apache.org/docs/2.0/vhosts/examples.html
In your apache config (/etc/apache2/apache2.conf) Find these values and set them.
Then you will need to setup a virtual host.
In the command line type these out and be mindful of “yourdomain”, “your_main_site_folder” that you need to replace that with relevant items.
Then edit your file
Now paste in this and edit it to your needs:
Once you’re done type Ctrl+O to save and Ctrl+X to exit the nano editor.
Then in the command line again type:
Then reload apache, and you’re done.