Sunday, April 28, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 9381  / 1 Year ago, mon, march 27, 2023, 1:57:18

Can I have help with making multiple site working with Apache (LAMP) on ubuntu 12.04 desktop ed. I pointed the apache2 to a home directory with my new sites which were enabled, but the browser is only displaying the default website that come with the apache2 installation.
thx


More From » lamp

 Answers
1

To install LAMP on ubuntu 12.04 how to configure apache linux not the one on the ubuntu wiki ApacheMysqlPhp which seems to be a bit outdated since you can ow do the whole installation with:



sudo apt-get install lamp-server^



Now my problem was after creating two news web sites directories called site1 and site2 and enabling them in apache2, I had to point apache2 to their location by editing the etc/hosts file.
this was my mistake or what was not working:



127.0.0.1 localhost


127.0.0.1 localhost site1


127.0.0.1 localhost site2



The solution was to point my new sites directories in one line like this:



127.0.0.1 localhost site1 site2



[#38413] Monday, March 27, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
onbean

Total Points: 29
Total Questions: 102
Total Answers: 115

Location: Benin
Member since Fri, Mar 24, 2023
1 Year ago
onbean questions
Fri, Mar 18, 22, 19:49, 2 Years ago
Tue, Dec 6, 22, 11:51, 1 Year ago
Mon, Jun 7, 21, 17:21, 3 Years ago
Mon, Jan 16, 23, 04:48, 1 Year ago
Mon, Oct 17, 22, 14:51, 2 Years ago
;