Win 8.1 install, can't get localhost to work
Posted by: JaysonJosey (---.lsanca.fios.verizon.net)
Date: July 10, 2014 09:07PM

Version of Operating system: Win 8.1
Version of Wamp Server installed: 2.5
Version of Apache you are running: 2.4.9
Version of MySQL you are running: n/a
Version of PHP you are running: 5.5.12

What colour is your WampManager icon? Green

Do you have a HOSTS file? [c:\windows\system32\drivers\etc\hosts] Yes



Here is the error message:
403 forbidden wamp server Forbidden You don't have permission to access /index.php on this server. Apache/2.4.9 (Win64) PHP/5.5.12 Server at sdgerebates Port 80

Phpmyadmin works.
Localhost does NOT work
nor do any of the vhosts. (servers exist verified through command line ping)

This is an old code block used when I had Win7 as an OS. Is there something different that needs to be done for Win 8.1?

code that are in httpd.conf
# onlineoffline tag - don't remove
Require local
# Order Deny,Allow
# Deny from all
# Allow from 127.0.0.1 ::1

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

This is the Apache directive code:

/extra/httpd-vhosts.conf

<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot c:/vhosts/sdgerebates
ServerName sdgerebates

<Directory "c:/vhosts/sdgerebates">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>



Edited 1 time(s). Last edit at 07/10/2014 09:09PM by JaysonJosey.

Options: ReplyQuote
Re: Win 8.1 install, can't get localhost to work
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: July 10, 2014 09:43PM

What is in your HOSTS file????

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Win 8.1 install, can't get localhost to work
Posted by: JaysonJosey (---.lsanca.fios.verizon.net)
Date: July 10, 2014 10:12PM

Here is the hosts file. Do I need to rename hosts in all uppercase?




# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost

127.0.0.1 localhost
127.0.0.1 4thwallevents2.1
127.0.0.1 glucanimmunesupport2.0
127.0.0.1 glucanimmunesupport2.1
127.0.0.1 goodearthmarketplace2.0
127.0.0.1 healthcare-specialties
127.0.0.1 immunacan2.0
127.0.0.1 komodoprojects
127.0.0.1 lifeforcechiropractic
127.0.0.1 lynda
127.0.0.1 omarirecords
127.0.0.1 pilonidalphp
127.0.0.1 puraglucan
127.0.0.1 recordsandmarketing
127.0.0.1 slbotanicalgardens
127.0.0.1 scelampexchange2.0
127.0.0.1 scelampexchange2.1
127.0.0.1 sdgerebates
127.0.0.1 taichivets
127.0.0.1 tenthmusecreative2.0
127.0.0.1 valeriesbodyrestoration
127.0.0.1 localhost


This was just verifying one of our hosts is being properly created from the host file.

C:\Users\Jayson>ping sdgerebates

Pinging sdgerebates [127.0.0.1] with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms

Options: ReplyQuote
Re: Win 8.1 install, can't get localhost to work
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: July 10, 2014 11:24PM

No just add some for the IPV6 range as well as IPV4

i.e.

::1 localhost
::1 sdgerebates

And any others that are local to your wampserver

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Win 8.1 install, can't get localhost to work
Posted by: JaysonJosey (---.lsanca.fios.verizon.net)
Date: July 10, 2014 11:51PM

I am not familiar with the IPV6 and PVI4 ranges. Where would I insert the example code you offer? Is it somewhere in the httpd-hosts directive? Or?

You have already been so kind, may I ask you to show me exactly on the code that needs the modification and which file it is in.

Thank you so much for you knowledge.

Options: ReplyQuote
Re: Win 8.1 install, can't get localhost to work
Posted by: RiggsFolly (---.dynamic.dsl.as9105.com)
Date: July 11, 2014 12:01AM

No in the HOSTS file.

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote


Sorry, only registered users may post in this forum.