Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Could someone please elaborate the steps to get a website running within a container?Suppose a website is up and running within a OpenVZ container,will the web server be accessible from 1.Host? 2.Other containers?

share|improve this question
    
Get Concrete 5 O.o –  dashboard Apr 8 '13 at 2:10
add comment

2 Answers

Answers to your both questions 1 & 2 are : YES & YES

Steps:

install Linux on your OpenVZ container (distribution to your liking, make sure it is a server OS not desktop to make your life easier down the road)

install Apache if necessary (some server distributions include Apache in the distribution)

install Joomla package(s)

Pretty straight forward if you ask me...

share|improve this answer
    
Joomla requires php to be installed on the HN.I installed it and added a file info.php with the line phpinfo() in /var/www/html.But typing my ip followed by info.php on the browser doesn't display the php manual page. –  charmin Apr 8 '13 at 6:27
    
Thanks.Its working now. –  charmin Apr 8 '13 at 6:45
add comment

An OpenVZ container is a full linux OS, so you can install most linux software into it. The networking can be configured in a few different ways. If you give your CT a private IP, you will need to setup destination NAT to route from the hostnode to it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.