How to get the server working
Posted by: Petofiili (---.dhcp.inet.fi)
Date: April 29, 2012 09:45AM

I installed WampServer yesterday, but I have no idea how to get php working. I tried to make a very simple php document, but it wont work. So how do I enable php?

Options: ReplyQuote
Re: How to get the server working
Posted by: toivo (---.belrs5.nsw.optusnet.com.au)
Date: April 29, 2012 11:16AM

If Apache is working, PHP is also working. If the Apache icon in the system tray is green, Apache should be working. You can also click the icon, select Apache - Service - Test port 80 and see what happens.

Put the PHP document in one of the alias folders (click Apache - Alias directories) and access it from there.

toivo
Sydney, Australia

Options: ReplyQuote
Re: How to get the server working
Posted by: tiredoftrying (65.39.129.---)
Date: May 01, 2012 08:28AM

I am using window7,

I have tried a lot of options and still no luck..

this is what i see in my c:/windows/system32/drivers/etc = Imhost

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample LMHOSTS file used by the Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to computernames
# (NetBIOS) names. Each entry should be kept on an individual line.
# The IP address should be placed in the first column followed by the
# corresponding computername. The address and the computername
# should be separated by at least one space or tab. The "#" character
# is generally used to denote the start of a comment (see the exceptions
# below).
#
# This file is compatible with Microsoft LAN Manager 2.x TCP/IP lmhosts
# files and offers the following extensions:
#
# #PRE
# #DOM:<domain>
# #INCLUDE <filename>
# #BEGIN_ALTERNATE
# #END_ALTERNATE
# \0xnn (non-printing character support)
#
# Following any entry in the file with the characters "#PRE" will cause
# the entry to be preloaded into the name cache. By default, entries are
# not preloaded, but are parsed only after dynamic name resolution fails.
#
# Following an entry with the "#DOM:<domain>" tag will associate the
# entry with the domain specified by <domain>. This affects how the
# browser and logon services behave in TCP/IP environments. To preload
# the host name associated with #DOM entry, it is necessary to also add a
# #PRE to the line. The <domain> is always preloaded although it will not
# be shown when the name cache is viewed.
#
# Specifying "#INCLUDE <filename>" will force the RFC NetBIOS (NBT)
# software to seek the specified <filename> and parse it as if it were
# local. <filename> is generally a UNC-based name, allowing a
# centralized lmhosts file to be maintained on a server.
# It is ALWAYS necessary to provide a mapping for the IP address of the
# server prior to the #INCLUDE. This mapping must use the #PRE directive.
# In addtion the share "public" in the example below must be in the
# LanManServer list of "NullSessionShares" in order for client machines to
# be able to read the lmhosts file successfully. This key is under
# \machine\system\currentcontrolset\services\lanmanserver\parameters\nullsessionshares
# in the registry. Simply add "public" to the list found there.
#
# The #BEGIN_ and #END_ALTERNATE keywords allow multiple #INCLUDE
# statements to be grouped together. Any single successful include
# will cause the group to succeed.
#
# Finally, non-printing characters can be embedded in mappings by
# first surrounding the NetBIOS name in quotations, then using the
# \0xnn notation to specify a hex value for a non-printing character.
#
# The following example illustrates all of these extensions:
#
# 102.54.94.97 rhino #PRE #DOM:networking #net group's DC
# 102.54.94.102 "appname \0x14" #special app server
# 102.54.94.123 popular #PRE #source server
# 102.54.94.117 localsrv #PRE #needed for the include
#
# #BEGIN_ALTERNATE
# #INCLUDE \\localsrv\public\lmhosts
# #INCLUDE \\rhino\public\lmhosts
# #END_ALTERNATE
#
# In the above example, the "appname" server contains a special
# character in its name, the "popular" and "localsrv" server names are
# preloaded, and the "rhino" server name is specified so it can be used
# to later #INCLUDE a centrally maintained lmhosts file if the "localsrv"
# system is unavailable.
#
# Note that the whole file is parsed including comments on each lookup,
# so keeping the number of comments to a minimum will improve performance.
# Therefore it is not advisable to simply add lmhosts file entries onto the
# end of this file.




PLEASE I NEED HELP ON HOW TO GET WAMPSERVER., LOCALHOST WORKING.....THANKS IN ADVANCE.

Options: ReplyQuote
Re: How to get the server working
Posted by: RiggsFolly (---.as13285.net)
Date: May 02, 2012 03:48PM

DO NOT mess with LMHOSTS


the file you need to look at is c:\windows\system32\drivers\etc\HOSTS ( with no extension )


This should have one ( uncommented line )

127.0.0.1 localhost

If you see
::1 localhost

REMOVE IT.


Questions:
1. What colour is your wampmanager icon in the system tray?
2. Does the wampmanager->localhost menu option show you a page in your browser?

Post your simple php code, dont be shy?

Options: ReplyQuote


Sorry, only registered users may post in this forum.