EasyPHP all setup and operational on Windows VPS, wanting to configure to have multiple sub-domains hosted on the single IP system.

Hi, I have a live domain set up on a VPS running EasyPHP... all dedicated to running a small PHP script. All my pertinent files are in the C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb  folder and everything is working fine as evidenced if you go to www.optimaloption.net. This domain name is only "temporary" and by tomorrow, my newly purchased domain name "getdemocode.com" should be all propagated and ready to take its place. Then, I would like to have 3 subdomains off of this getdemocode.com domain:

extrak.getdemocode.com
futurename1.getdemocode.com
futurename2.getdemocode.com

I assume I just have to create subdirectories (ie. extrak, futurename1, futurename2) off of my "LocalWeb" directory in my VPS for each of these, and move my pertinent files into there... but how do I configure EasyPHP (or my domain registrar) to "point" to extrak.getdemocode.com instead of pointing to www.getdemocode.com ?

Thanks
   Shawn
shawn857Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

shawn857Author Commented:
Okay, thank you Scott.

Cheers
    Shawn
0
arnoldCommented:
Shawn,

Here is a link to the easyphp.org guide that deals with managing your install,
If you are looking to have each domain have their own site, you would add virtualhost for each,
If you want multiple domains to end up on the same, you would use alias.

http://www.easyphp.org/support/author/easyphp/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
shawn857Author Commented:
Thanks Arnold... in that documentation page, it mentions:

"You must place your files either in the “localweb” directory, in an alias folder or a virtual host folder (module “Virtual Hosts Manager” needed). So that PHP can interpret your PHP pages."

So I guess I need to download and install this “Virtual Hosts Manager” add-on, yes?

Thanks
   Shawn
0
ON-DEMAND: 10 Easy Ways to Lose a Password

Learn about the methods that hackers use to lift real, working credentials from even the most security-savvy employees in this on-demand webinar. We cover the importance of multi-factor authentication and how these solutions can better protect your business!

arnoldCommented:
Yes, get the The virtualHost manager to help you manager your site http://www.easyphp.org/modules.php
and any other module likely phpmyadmin (to manage the mysql)
0
shawn857Author Commented:
Hi Arnold... before I get into creating all the sub-domans, I'd like to make sure my new domain - getdemocode.com - is all propagated and ready for use. At my domains' registrar, I have set the nameservers for it, just like I did with optimaloption.net. Still though, www.getdemocode.com doesn't bring anything up when I try it here. Maybe it's not propagated yet? Is there something more I need to change on my VPS?

Thanks
   Shawn
0
arnoldCommented:
Unfortunatly, while the domain is registered and you pointed it to chicagovps.net they have no idea what you want with the domain meaning the domain is not accessible.
The root servers also have no information about your domain at this time as well.

The setup on the VPS does not require the domain be registered.

You should take the time and setup the domains/subdomains as you want them.

At this time, chicagovps.net has no information about your domain.  They need to setup a DNS zone/record set.  I do not believe it should take this long for the registration to be active given more than 24 hours passed since the registration.
Using the c:\windows\system32\drivers\etc\hosts file
you can point the domains and subdomains to your VPS IP
192.3.3.155 getdemocode.com
192.3.3.15 www.getdemocode.com
192.3.3.15 extract.getdemocode.com
192.3.3.15 suggest.getdemocode.com

then all of the above will be accessible within the VPS or on a system where the hosts file is modified to reflect the above information allowing you to test the web functionality.
0
shawn857Author Commented:
Let me put it this way: Assuming getdemocode.com is all propagated - what do I need to do to "switch" over from www.optimaloption.net to www.getdemocode.com right now, so that www.getdemocode.com will then be "live" to the world? What stuff do I need to modify?

Thanks
   Shawn
0
arnoldCommented:
Right night, having only one domain, as long as it points to your ip 192.3.3.155
The site will load and displayed.
Meaning easyphp only has one site, the default site.

Once you install the virtual host manager add-on you will have the ability to have multiple domains each having their own content.

As far as domains, all they need to point to us the ip, 192.3.3.155 and Apache (the web server) will handle the rest based on its configuration determining which domain is being accessed and which files to access for the request.
0
shawn857Author Commented:
I don't understand what you mean by "Right night"....?? i kinda didn't follow most of that.

So I can only have ONE domain with the nameservers set to ChicagoVPS then?? I need to "de-activate" optimaloption.net before I can "activate" getdemocode.com?

Shawn
0
arnoldCommented:
Auto correcting ....... Or autonomic ....


Right now, meaning the existing setup with a single site setup (default size) any and all domains that you point to your VPS IP will have the same identical page displayed.
He tasks are not sequential, you do not need to wait for the domain to be registered to develop the site.

Using the virtualhost manager add ones, you effectively convert a single structure (one web site) to a multi site structure.

You do not need the tool, but would need to manually edit the httpd.conf or external files that need to be added configuring each site uses the VirtualHost structure
The way it works each browser makes a request consisting of http://www.somedomain.com/....
The www.somedomain.com is then matched against the VirtualHost definitions of ServerName/ServerAlias within each in the absence the default site is matched and displayed.
0
shawn857Author Commented:
Hi Arnold, okay I installed the EasyPHP "VirtualHost Manager" module and have used that to add a few subdomains/virtualhosts to my domain - getdemocode.com. After that, I went in my domain registrar and deleted the nameservers (ie. ns4.chicagovps.net, etc) for optimaloption.net as I'm not going to use that domain anymore for this project. In my domain registrar for getdemocode.com, the nameservers are set to ns4.chicagovps.net, etc. (that part was done a couple of days ago actually)
   I've moved all my PHP scripts and pertinent data files to the new folder I created for the subdomain extrak.getdemocode.com. The subfolder is:

C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\extrak

In my main "LocalWeb" folder on the VPS, I just put a "dummy" index.html file (some 'parallels control panel' thing) just to have a default page to go to for anyone who goes to www.getdemocode.com.
   I then went and fixed the "hosts" file on my VPS and took out all the references to optimaloption.net and replaced it with:

192.3.3.155 getdemocode.com
192.3.3.155 www.getdemocode.com
192.3.3.155 extrak.getdemocode.com

... I made those same changes on my hosts file here on my local computer too. So anyway, after all that, trying to call up http://extrak.getdemocode.com from my local computer here doesn't work.... it displays instead the index.html page I put in the VPS "LocalWeb" folder.

Can you tell me what I'm missing please Arnold? The new domain getdemocode.com should be all propagated by now, surely. Feel free to log in to my VPS and look around.

Thanks
    Shawn

P.S: After I used the EasyPHP VirtualHosts Manager to add my subdomains, I wanted to manually check the httpd.conf file to see if it added the virtualhost entries in there. For one thing, there are about 4 or 5 different httpd.conf files and I don't know which is the correct one, and secondly, none of them seemed to have my new "extrak" virtualhost entry in there. So this also I'm confused about.
0
arnoldCommented:
Check your configuration for the extrak.getdemocode.com
Where is it says the data should go? DocumentRoot?

The VirtualHost manager settings for extrak.getdemocode.com is what dictates where the files should go. Make sure it says that it is C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\extrak and not C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\

One thing, using the easyPHP administration upload the httpd.conf file so we can see what the configuration is.


Do yourself a favor, retain control of managing the domain in your own hands. Go to the registrar web site. Make sure the new domain uses the Registrar's DNS servers on the registration record.
Then using the Add DNS record link from the image you posted in a previous question. Add the records for
@ IN A 192.3.3.155
www IN CNAME @
extrak IN A 192.3.3.155

There you can manage the newly registered DNS records.  You'll be surprised how quickly your domain becomes live when you control it.
ChicagoVPS has no information about your domain.
0
shawn857Author Commented:
Thanks Arnold... you wrote:

"Check your configuration for the extrak.getdemocode.com
Where is it says the data should go? DocumentRoot?"

>> Where do I check this at? How do I check the configuration... somewhere on the VPS??

"The VirtualHost manager settings for extrak.getdemocode.com is what dictates where the files should go. Make sure it says that it is C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\extrak and not C:\Program Files (x86)\EasyPHP-DevServer-14.1VC9\data\localweb\"

>> Yes, it does. You can log into my VPS and see.

"One thing, using the easyPHP administration upload the httpd.conf file so we can see what the configuration is."

>> As I mentioned in the "P.S" of my last message, there are like 5 or 6 different httpd.conf files and I don't know which is which. Which is the right one?


"Do yourself a favor, retain control of managing the domain in your own hands. Go to the registrar web site. Make sure the new domain uses the Registrar's DNS servers on the registration record."

>> I have no idea how/where to do this. Is it one of these options? (see attached screenshot)


"Then using the Add DNS record link from the image you posted in a previous question. Add the records for
@ IN A 192.3.3.155
www IN CNAME @
extrak IN A 192.3.3.155

There you can manage the newly registered DNS records.  You'll be surprised how quickly your domain becomes live when you control it.
ChicagoVPS has no information about your domain. "

>> Yes, I WOULD like to be in more control and not at the mercy of ChicagoVPS. They don't give much service/support.

Thanks
   Shawn
RegistrarScreen.JPG
0
arnoldCommented:
To deal with changing back from chicagovos, I think it is under change name server link.

I've not used this registrar, but there you may have custom where you defined the chicagovos.com or the option to use the default registrar servers.

Then or prior to that go to the add a DNS record and add the needed records.

Within the VirtualHost manager interface, what options do you see?
I.e. When adding a new virtual host, what are you promoted for. Once created, do you have an option to edit the configuration?
0
shawn857Author Commented:
You wrote:

"To deal with changing back from chicagovos, I think it is under change name server link.
I've not used this registrar, but there you may have custom where you defined the chicagovos.com or the option to use the default registrar servers."

>> OK yes, "Change Nameservers". OK, here I have just now changed it from "Custom Nameservers" where I had ns4.chicagovps.net, etc., to "Default Nameservers". Correct?
    Arnold, there is also an option "Nameserver Registration" that brings up this screen (see screenshot). Is that something I need to fill out too?


"Then or prior to that go to the add a DNS record and add the needed records."

>>OK, that would be under "Edit DNS Records". Here is what I just added (see screenshot).


"Within the VirtualHost manager interface, what options do you see?
I.e. When adding a new virtual host, what are you promoted for. Once created, do you have an option to edit the configuration? "

>> I don't know what you mean by "promoted" Arnold. Please, you can log in, I don't mind. Same User/Pass as before... I have the EasyPHP VirtualHost manager interface up there for you to see as soon as you log in.

Thanks
   Shawn
EditDNSRecords.JPG
NameserverRegistration.JPG
0
arnoldCommented:
Name server registration deals wit when you want to handle those services using your own server/s where by you have to register the host such as ns1.getdemocode.com that points for the example to 192.3.3.155.

One  can not use an Unregistered Nameserver in the section where you entered the chicagovps names.

Prompted (not promoted)

Once your domain uses the regitrar/default, you need to be in the add DNS records (edit DNS records) interface to add the references outlined earlier.


I'll see if I can get on the system a bit later.
I'll leave notes in the notepad explaining.
0
shawn857Author Commented:
You wrote:


"Name server registration deals wit when you want to handle those services using your own server/s where by you have to register the host such as ns1.getdemocode.com that points for the example to 192.3.3.155.
One  can not use an Unregistered Nameserver in the section where you entered the chicagovps names."

>> Yeah I don't understand this stuff fully. Did I do it right, or not?


"Prompted (not promoted)
Once your domain uses the regitrar/default, you need to be in the add DNS records (edit DNS records) interface to add the references outlined earlier."

>> So did I do things correctly at my registrar?


"I'll see if I can get on the system a bit later.
I'll leave notes in the notepad explaining. "

>> OK thanks Arnold

Shawn
0
arnoldCommented:
I think you need to change the * IN CNAME
To
* IN A 192.3.3.155
0
shawn857Author Commented:
OK, so like this? (see attached screenshot)

Thanks
    Shawn
EditDNSRecords.JPG
0
arnoldCommented:
Those are fine, your issue with the lack of access relates to the configuration of apache which is restricted to localhost access only based on allow deny,allow rules. as well as the virtualhost entries are always bound to the localhost 127.0.0.1.
0
shawn857Author Commented:
I just noticed that extrak.getdemocode.com no longer comes up... now it shows my "default" page ('Welcome to Parallels').

"Those are fine, your issue with the lack of access relates to the configuration of apache which is restricted to localhost access only based on allow deny,allow rules. as well as the virtualhost entries are always bound to the localhost 127.0.0.1. "

>> I never made any of these specific settings at all... I don't even know what they mean! Can you fix them?

Thanks
   Shawn
0
arnoldCommented:
The issue is that you installed a development version as a production.
What this did whether when installing or by default, the only access it was designed to have is through the 127.0.0.1 meaning only when making requests directly on the system.
The virtualhost add-on tool is using the same IP basis Meaning:
1)  when adding virtualhost, one has to enter the fully qualified domain names when externally accessible
2) all virtualhost entries added, it specfies 127.0.0.1 on which this search is matched on, this needs to be changed, replaced with * to match any IP on which this system is responding on port 80
3) Additionally, it restricts access through the use of allow,deny rules limiting access to 127.0.0.1.
0
shawn857Author Commented:
So my websites will *never* run correctly if I keep using the Devserver version of EasyPHP on my VPS??

Shawn
0
shawn857Author Commented:
The EE fellow who advised the Devserver version - he said the Webserver version is only a "subset" of the Devserver version, so that I might as well install the Devserver in order to get full capabilities.

:-(

Shawn
0
shawn857Author Commented:
Maybe I better just go with the proper Webserver. I've noticed that so far I've had to re-start EasyPHP almost everyday so I can call up the website from here. Maybe using the Webserver version, things will run more reliably.

Shawn
0
arnoldCommented:
IMHO, when using Apache, PHP, Mysql, the system has more resources to spend on those three when it is running on a Linux/Unix platform. Comparatively, windows consumes/requires more resources to run itself versus the linux/unix variation.
The management/administration of apache, php, mysql is more or less the same no matter on what OS it is running.
There are GUI tools to help you manage a linux/unix based.
But depend on which Linux/Unix you choose.

Having started with this one, you might as well get familiar with it.
At the same time you might want to consider on your local workstation using Virtualization such as VMWARE, VirtualBox to setup/test the various linux/unix versions to see which suits you better.
And when VPS contract is up, or your existing requirements exceed the resources available, you might consider switching to a linux/unix.
You may end up there as well once you become familiar with making configuration adjustments directly without the need for a Graphical User Interface to do that.
0
shawn857Author Commented:
Linux/Unix is out of the question. The entire reason I'm doing all of this, is to run a PHP script which invokes a Windows EXE, which then generates an activation code.

It has to be a Windows system.

Shawn
0
arnoldCommented:
ok, if you have other requirements that make windows a necessity, your requirements as to have windows....
0
shawn857Author Commented:
OK Arnold, well I uninstalled Devserver and installed Webserver and put my script files into the \www\extrak subfolder.
    I'm a little surprised how different they are... different control panel, etc. There doesn't seem to be that "VirtualHost" add-on plugin for the Webserver version either. So I'm kind of lost now regarding what to do. I know I need to add my VirtualHost blocks to the httpd.conf file, but there are 2 httpd.conf files and I don't know which is the correct one. Also, where in the httpd.conf file do you add the VirtualHost block?

Thanks
    Shawn

P.S: Sorry for making you do all those changes to Devserver, only to have me uninstall it and install Webserver...
0
arnoldCommented:
You should still have the apache__virtual_host.conf file.

Look at the Apache configuration, the last line should be an include file.

The path where the debt is installed, might be different.

See if c:\pprogram files (x86)
has two easyPHP one the dev and on the web....

Copy the apache_virtual_host.conf from one to the other while making changes to the DocumentRoot references.


I'll take a look at it later on.
0
shawn857Author Commented:
You wrote:


"You should still have the apache__virtual_host.conf file."

>> I searched the entire EasyPHP-Webserver folder, there is no file by the name of
apache__virtual_host.conf


"Look at the Apache configuration, the last line should be an include file."

>> Where is the Apache configuration?? You're really going too fast for me and assuming that I know this stuff... which I don't.


"The path where the debt is installed, might be different."

>> I don't know what you mean by 'debt'.


"See if c:\pprogram files (x86) has two easyPHP one the dev and on the web...."

>> No, I completely UNinstalled the EasyPHP Dev version and deleted the remaining files and folder. Now, I have only EasyPHP-Web.


"Copy the apache_virtual_host.conf from one to the other while making changes to the DocumentRoot references."

>> I cannot find this file anywhere in EasyPHP-Webserver.


"I'll take a look at it later on. "

>> Thank you Arnold.

Shawn
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.