Jump to content
The Uniform Server Community

I Am Out Of My Element But Determined


Recommended Posts

Posted

This is my first effort with servers period and HAVE to get this running so I can edit my company sites in php with Dreamweaver. However when I click on Admin Virtual Host to set up the test sites I get the following:

 

Error in path to your hosts-file!

 

Ok, call me a dimwit, I am when it comes to this stuff but as I said, I am determined to learn so can somebody help me with this please? I bow to the experts...........

 

Teri Lynn :D

Teri Lynn Hinkle

admin

globalearningsmonitor.com

 

Posted

Hello Mr dimwit! Just joking every one starts at this level and remains so because we never stop learning.

 

This error message I think is produced because you do not have a hosts file. The hosts file is an ip-address to domain-name mapping file. It goes back to the old dark days of Armpits or something like that.

 

Depending on your operating system is located in the following folder:

 

Windows 95/98/ME

c:\windows\

 

Windows NT/2000/XP Pro

c:\winnt\system32\drivers\etc\

 

Windows XP Home

c:\windows\system32\drivers\etc\

 

If the file exists then that is not your problem if it does not exist create one by saving a blank text file named hosts

 

Re-run Admin Virtual Host. Now when you open the hosts file you will see entries similar to this:

 

127.0.0.1 fred.com

127.0.0.1 www.example.net

127.0.0.1 test1

 

Where 127.0.0.1 is the ip address of your local server.

Names to the right are domain names.

 

For info on Dreamweaver set-up this is worth a read:

http://center.uniformserver.com/uniserver_...amweaver_1.html

 

:D

Posted

Hello Mr dimwit! Just joking every one starts at this level and remains so because we never stop learning.

 

This error message I think is produced because you do not have a hosts file. The hosts file is an ip-address to domain-name mapping file. It goes back to the old dark days of Armpits or something like that.

 

Depending on your operating system is located in the following folder:

 

Windows 95/98/ME

c:\windows\

 

Windows NT/2000/XP Pro

c:\winnt\system32\drivers\etc\

 

Windows XP Home

c:\windows\system32\drivers\etc\

 

If the file exists then that is not your problem if it does not exist create one by saving a blank text file named hosts

 

Re-run Admin Virtual Host. Now when you open the hosts file you will see entries similar to this:

 

127.0.0.1 fred.com

127.0.0.1 www.example.net

127.0.0.1 test1

 

Where 127.0.0.1 is the ip address of your local server.

Names to the right are domain names.

 

For info on Dreamweaver set-up this is worth a read:

http://center.uniformserver.com/uniserver_...amweaver_1.html

 

:lol:

 

 

:D Well that must not have been it, didn't work. File wasn't there so I created it but nothing happened. Also the server doesn't shut down unless I hit my puters restart button. Doesn't seem to matter how I shut it down, just doesn't shut down.

Thanks though.

 

"Ms. Dimwit"

Teri Lynn Hinkle

admin

globalearningsmonitor.com

 

Posted

My attempt at a joke clearly back fired I apologise for that Ms.

When you create a new host file the first line should be:

127.0.0.1 localhost

 

I forgot to mention that in my last post.

 

You will find a more detailed description how to use Admin Virtual Host at the bottom of this page:

 

http://center.uniformserver.com/virtual_ho...ual_host_1.html

 

 

:D

Posted

My attempt at a joke clearly back fired I apologise for that Ms.

When you create a new host file the first line should be:

127.0.0.1 localhost

 

I forgot to mention that in my last post.

 

You will find a more detailed description how to use Admin Virtual Host at the bottom of this page:

 

http://center.uniformserver.com/virtual_ho...ual_host_1.html

:)

:D LOL np. I'll be Mr, Mrs, or Sir Dimwit if it helps me get this silly thing worked out! I will try that but I thtought you said blank text file?

 

Perhaps you know the answer to my other two problems...my partner and I bought our php script for our site from a gentleman in Egypt. Of course we have to change it for our needs and I am able to get at all the pages for the test server except index.php

 

When I try to view in browser on that one it comes up with an error unable to open with password yes?????

And when I try to shut down apache it doesn't shut down unless I hit my puters reset button. I use the Start.Vbs and it flashes a blank dos page and then the start msql box and now it goes to a web page and everything but the virtual host works but it sure doesn't want to shut down......LOL must like it here.

Again I am using windows 98SE

 

I am on my laptop right now but I will go add that line to the text file and try it in a few minutes........

 

Thanks again

 

Ms,Mr,Sir,Miss Dimwit :rolleyes:

Teri Lynn Hinkle

admin

globalearningsmonitor.com

 

Posted

I am not sure but what you are describing could be due to what I named the recursive loop problem.

 

Take a look at this page:

 

http://center.uniformserver.com/uniserver/...op_problem.html

 

I am unsure because I have never run UniServer on Windows 98. The problem only occours if you use a diffrent drive letter other than the default W.

  • 2 years later...
Posted

Hi,

 

I had this same problem when I installed today,

 

I installed on a different directory to windows and I am using vista.

 

The fix for me was to edit file vhost.php

 

\UniServer\home\admin\www\vhost.php

 

on line 22

// Path to hosts file
$hosts_sti = $_ENV["windir"]."/system32/drivers/etc/hosts";

 

I changed it to

// Path to hosts file
$hosts_sti = $_ENV["windir"]."C:/Windows/system32/drivers/etc/hosts";

Also vista the file is called 'hosts' not 'hosts.txt'

 

Maybe this will help you?

 

Good Day.

Posted

$hosts_sti = $_ENV["windir"]."C:/Windows/system32/drivers/etc/hosts";

 

Although the above works it will cause problems use the following:

 

$hosts_sti = getenv('windir')."/system32/drivers/etc/hosts";

 

Alternatively in php.ini

Change: variables_order = "GPCS"

To: variables_order = "EGPCS"

 

Note: Released versions include the above change.

 

Note: Main components no longer support windows 98SE XP-Home is minimum requirement.

 

All the best

Ric :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...