Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Download Elxis CMS: Elxis 2009.2 Electra rev2628
 
Pages: [1]
  Print  
Author Topic: Local Apache and virtual hosts  (Read 10215 times)
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 5791



WWW
« on: March 04, 2008, 11:51:24 PM »

We published a guide for how you can set up a local working enviroment for Elxis CMS with apache and virtual hosts. This guide shows you how you can run locally multiple sites that can be access like this: http://mysite.loc

Read the full guide
Logged

Elxis Team | Is Open Source | IOS Reservations | IOS Eshop
epaz
Newbie
*
Offline Offline

Posts: 29


Re-inventing the wheel may lead to a round one!


WWW
« Reply #1 on: March 05, 2008, 11:05:18 AM »

What about having apache listening on port 8080 (or other) ?
Logged
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 5791



WWW
« Reply #2 on: March 05, 2008, 12:37:32 PM »

Just replace 80 with 8080 in apache configuration files and make sure the port in open and not blocked by a firewall.
Logged

Elxis Team | Is Open Source | IOS Reservations | IOS Eshop
epaz
Newbie
*
Offline Offline

Posts: 29


Re-inventing the wheel may lead to a round one!


WWW
« Reply #3 on: March 05, 2008, 12:47:13 PM »

In general when using alternate port for apache (or IIS) the steps to support virtual hosts that you describe are totally correct but in the browser address bar the port information should always exist.
For example, if we setup a virtual host named "elxis.loc" and we have an apache listening on 8080, we should type http://elxis.loc:8080 and of course modify the configuration.php properly

Consider the case closed
Thanx
Logged
WebGift
Web Services
Elxis Community
Hero Member
*****
Online Online

Posts: 1418



WWW
« Reply #4 on: February 08, 2010, 02:08:04 PM »

Perfect article... I just did it!
Logged

datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 5791



WWW
« Reply #5 on: February 08, 2010, 07:05:17 PM »

Note that if you use Vista or Windows 7, in order to be able to modify the hosts file you have to run notepad as administrator and then open the hosts file.

Programs list -> notepad -> right click -> "run as administrator"
On notepad -> open -> C:/..../hosts
save when finish
Logged

Elxis Team | Is Open Source | IOS Reservations | IOS Eshop
WebGift
Web Services
Elxis Community
Hero Member
*****
Online Online

Posts: 1418



WWW
« Reply #6 on: February 08, 2010, 07:12:32 PM »

Yes right notice this.
I tried to save this host file from phpDesigner and it didn't leave me to do this.
When i opened it with notepad ( i am administrator user ) then i did the work.! Wink
Logged

Pages: [1]
  Print  
 
Jump to: