Elxis CMS Forum

Support => FAQs => Topic started by: datahell on March 04, 2008, 23:51:24

Title: Local Apache and virtual hosts
Post by: datahell on March 04, 2008, 23:51:24
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 (http://www.elxis.org/guides/developers-guides/local-apache-and-virtual-hosts.html)
Title: Re: Local Apache and virtual hosts
Post by: epaz on March 05, 2008, 11:05:18
What about having apache listening on port 8080 (or other) ?
Title: Re: Local Apache and virtual hosts
Post by: datahell on March 05, 2008, 12:37:32
Just replace 80 with 8080 in apache configuration files and make sure the port in open and not blocked by a firewall.
Title: Re: Local Apache and virtual hosts
Post by: epaz on March 05, 2008, 12:47:13
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
Title: Re: Local Apache and virtual hosts
Post by: webgift on February 08, 2010, 14:08:04
Perfect article... I just did it!
Title: Re: Local Apache and virtual hosts
Post by: datahell on February 08, 2010, 19:05:17
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
Title: Re: Local Apache and virtual hosts
Post by: webgift on February 08, 2010, 19:12:32
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.! ;)