How To Reset Your TCP/IP Protocol In Windows

jbrown 08 March, 2008 07:40 Windows Permalink Trackbacks (0)

How to reset Internet Protocol (TCP/IP) in Windows XP

Article ID:299357
Last Review:February 8, 2008
Revision:7.0
This article was previously published under Q299357
For a Windows Server 2003 version of this article, see 317518 (http://support.microsoft.com/kb/317518/).

INTRODUCTION

In Windows XP, the TCP/IP stack is considered a core component of the operating system, and you cannot remove TCP/IP. Therefore, when you view the list of components for a network interface, you may notice that the Uninstall button is disabled when Internet Protocol (TCP/IP) is selected. In extreme cases, the best solution for this issue may be to reinstall the IP stack. But with the NetShell utility, you can reset the TCP/IP stack to restore it to its state that existed when the operating system was installed. This article describes how to use the NetShell utility for this purpose.

Back to the top

MORE INFORMATION

Guided Help to reset TCP/IP

Guided Help
Guided Help is available to reset TCP/IP. Guided Help can automatically perform the steps for you.

The actions that this Guided Help performs cannot be undone after Guided Help is finished.
For more information about Guided Help, click the following article number to view the article in the Microsoft Knowledge Base:
915092 (http://support.microsoft.com/kb/915092/) Description of Guided Help for Microsoft Knowledge Base articles

Requirements to install and to use this Guided Help

You must be logged on to Windows by using a computer administrator account to install and to use this Guided Help.
You must be running Windows XP Home Edition, Windows XP Professional, Windows XP Media Center Edition, or Windows XP Tablet PC Edition to install and to use this Guided Help.
You must first download Guided Help. To start, click the following link.
(http://support.microsoft.com/kb/299357/) To download Guided Help for another computer that does not have a working Internet connection, click Another Computer when you are prompted by Guided Help. Save the Guided_Help.exe file to a removable medium, such as a USB flash drive. Insert the removable medium in the other computer, and then run the Guided_Help.exe program file.

Manual method to reset TCP/IP

Note This section is intended for advanced computer users. If you are not comfortable with advanced troubleshooting, ask someone for help or contact support. For information about how to contact support, see the Microsoft Help and Support contact information Web site:
http://support.microsoft.com/contactus (http://support.microsoft.com/contactus)


The NetShell utility (netsh) is a command-line scripting interface for configuring and monitoring Windows XP networking. This tool provides an interactive network shell interface to the user.

In Windows XP, a reset command is available in the IP context of the NetShell utility. When you run the reset command, it rewrites pertinent registry keys that are used by the IP (TCP/IP) stack to reach the same result as the removal and the reinstallation of the protocol.
SYSTEMCurrentControlSetServicesTcpipParameters 
SYSTEMCurrentControlSetServicesDHCPParameters 
				

Command usage

netsh int ip reset [log_file_name]
To manually run the command successfully, you must specify a file name for the log where actions that are taken by netsh will be recorded. For example, at a command prompt, type either of the samples that are listed in the "Command samples" section. The TCP/IP stack will then be reset on a system, and the actions that were taken will be recorded in the log file, Resetlog.txt. The first sample creates the log file in the current directory, while the second sample creates a path where the log will reside. In either case, where the specified log file already exists, the new log will be appended to the end of the existing file.

Warning Programs that access or monitor the Internet such as antivirus, firewall or proxy clients may be adversely affected when you run the netsh winsock reset command. If you have a program that no longer functions correctly after you use this resolution, reinstall the program to restore functionality.

Command samples

netsh int ip reset resetlog.txt
netsh int ip reset c:resetlog.txt

How Can I Configure TCP/IP Settings From The Command Prompt?

jbrown 13 February, 2008 19:01 Windows Permalink Trackbacks (0)

Netsh.exe is a command-line scripting utility that allows you to, either locally or remotely, display or modify the network configuration of a computer that is currently running. Netsh.exe also provides a scripting feature that allows you to run a group of commands in batch mode against a specified computer. Netsh.exe can also save a configuration script in a text file for archival purposes or to help you configure other servers.

Netsh.exe is available on Windows 2000, Windows XP and Windows Server 2003.

You can use the Netsh.exe tool to perform the following tasks:

  • Configure interfaces
  • Configure routing protocols
  • Configure filters
  • Configure routes
  • Configure remote access behavior for Windows-based remote access routers that are running the Routing and Remote Access Server (RRAS) Service
  • Display the configuration of a currently running router on any computer
  • Use the scripting feature to run a collection of commands in batch mode against a specified router.

What can we do with Netsh.exe?

With Netsh.exe you can easily view your TCP/IP settings. Type the following command in a Command Prompt window (CMD.EXE):

With Netsh.exe, you can easily configure your computer's IP address and other TCP/IP related settings. For example:

The following command configures the interface named Local Area Connection with the static IP address 192.168.0.100, the subnet mask of 255.255.255.0, and a default gateway of 192.168.0.1:



(The above line is one long line, copy paste it as one line)

Netsh.exe can be also useful in certain scenarios such as when you have a portable computer that needs to be relocated between 2 or more office locations, while still maintaining a specific and static IP address configuration. With Netsh.exe, you can easily save and restore the appropriate network configuration.

First, connect your portable computer to location #1, and then manually configure the required settings (such as the IP address, Subnet Mask, Default Gateway, DNS and WINS addresses).

Now, you need to export your current IP settings to a text file. Use the following command:

When you reach location #2, do the same thing, only keep the new settings to a different file:

You can go on with any other location you may need, but we'll keep it simple and only use 2 examples.

Now, whenever you need to quickly import your IP settings and change them between location #1 and location #2, just enter the following command in a Command Prompt window (CMD.EXE):

or

and so on.

You can also use the global EXEC switch instead of -F:

Netsh.exe can also be used to configure your NIC to automatically obtain an IP address from a DHCP server:

Would you like to configure DNS and WINS addresses from the Command Prompt? You can. See this example for DNS:

and this one for WINS:

Or, if you want, you can configure your NIC to dynamically obtain it's DNS settings:

As you now see, Netsh.exe has many features you might find useful, and that goes beyond saying even without looking into the other valuable options that exist in the command.


How To Hack And Install Windows Media Player 11 Final Bypass And Crack Genuine Windows Validation

jbrown 04 February, 2008 23:08 Windows Permalink Trackbacks (0)

How to Hack and Install Windows Media Player 11 Final Bypass and Crack Genuine Windows Validation

The final gold version 11.0.5721.5145 of Windows Media Player 11 has been released by Microsoft, and Windows users can download Windows Media Player 11 final directly from Microsoft without any WGA validation check and test on Windows OS. However, during installation of WMPlayer 11, there is still Windows Genuine Advantage Validation check required on Windows OS that you plan to install WMP11. If you unable to pass the validation verification, the following tricks and hacks may help you to install Windows Media Player 11.

Method 1

The easiest way to install Windows Media Player 11, and as with Internet Explorer 7 final version, is to patch the Windows registry with WPA hack, as described in ways to bypass validation during installation in IE7 and in method 15 to crack and disable WGA validation and notifications in Windows. The trick insert WPA (Windows Product Activation) related activated value into registry to make the Windows as is genuine, licensed and legal. You can copy and paste the following text to a text file and save the file with .reg extension, then double click on it to merge the registry key into registry, or simply download the wpa_registry.rar or WindowsLicense.rar (removed due to complaint from Microsoft, both has same function) and execute the .reg file contained in the archive to apply the WPA registry setting. Download and install the Windows Media Player 11 once the registry is hacked.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionWPAEvents]
“OOBETimer”=hex:ff,d5,71,d6,8b,6a,8d,6f,d5,33,93,fd
“LastWPAEventLogged”=hex:d5,07,05,00,06,00,07,00,0f,00,38,00,24,00,fd,02

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersion]
“CurrentBuild”=”1.511.1 () (Obsolete data - do not use)”
“InstallDate”=dword:427cdd95
“ProductId”=”69831-640-1780577-45389″
“DigitalProductId”=hex:a4,00,00,00,03,00,00,00,36,39,38,33,31,2d,36,34,30,2d,
31,37,38,30,35,37,37,2d,34,35,33,38,39,00,5a,00,00,00,41,32,32,2d,30,30,30,
30,31,00,00,00,00,00,00,00,00,0d,04,89,b2,15,1b,c4,ee,62,4f,e6,64,6f,01,00,
00,00,00,00,27,ed,85,43,a2,20,01,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
00,00,00,00,00,00,00,00,00,00,00,31,34,35,30,34,00,00,00,00,00,00,00,ce,0e,
00,00,12,42,15,a0,00,08,00,00,87,01,00,00,00,00,00,00,00,00,00,00,00,00,00,
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,94,a2,b3,ac
“LicenseInfo”=hex:9e,bf,09,d0,3a,76,a5,27,bb,f2,da,88,58,ce,58,e9,05,6b,0b,82,
c3,74,ab,42,0d,fb,ee,c3,ea,57,d0,9d,67,a5,3d,6e,42,0d,60,c0,1a,70,24,46,16,
0a,0a,ce,0d,b8,27,4a,46,53,f3,17

Note: WordPress may automatically change the quotation mark to opening and closing quotation marks, which may cause problem in registration file. If so, replace with ordinary quotation file.

Method 2

The other method of install and setup WMP11 bypassing and disable the genuine Windows validation of WGA is to install components of WMPlayer part by part.

  1. Download WMP11.
  2. Extract (unrar or unzip) wmp11-windowsxp-x86-enu.exe by using extraction tool such as WinRAR.
  3. Go to the extracted folder, and execute (run) wmfdist11.exe.
  4. Restart the computer.
  5. Execute wmp11.exe.
  6. Restart the computer.
  7. Start using Windows Media Player 11.

Method 3

This step involves usage of the cracked LegitLibM.dll, rename from the patched LegitLib.dll used to install beta version of WMP11 skip genuine Windows validation check.

  1. Download WMPlayer11.
  2. Download WinRAR and install WinRAR extraction tool.
  3. Extract the WMP11 installer by using WinRAR or PowerArchiver to a directory (e.g. wmp11-windowsxp-x86-enu).
  4. Download LegitLibM.dll (removed due to DMCA complaint from Microsoft) (in RAR format, extract after download) from here.
  5. Copy the extracted LegitLibM.dll to the extracted directory of WMP11 installer.
  6. Overwrite any existing LegitLibM.dll file.
  7. Run setup_wm.exe by double clicking.
  8. Install Windows Media Player 11 Final accordingly.

Method 4

Download and install the patched version of WMP11 setup installer (wmp11.exe) (link removed due to complaints from Micrsoft) which has the cracked LegitLibM.dll. Simply download the run the installer to setup the WMPlayer. If you have WMP10 in your system, use WinRAR to extract the contents of the setup file and manually execute setup_wm.exe.

Method 5 New and Easier

Thanks to z, you can now easily upgrade from Windows Media Player 10 (WMP10) to WMP 11 without any hassle about validation, and without downloading any crack or patch.

If you’ve already installed WM11 go to STEP 2.

STEP 1: Go to the old windows media player (WM10), go to Tools–>Options and click on ‘Check for updates once a day.’ Press Apply and then OK.

After a short time a window appears asking if you want to upgrade to a newer version, click OK. System will download WM11 and and install the Media Player 11. After installation restart your PC.

STEP 2: Click on Start –> Search. Click ‘All files and folders’ then search for LegitLibM.dll. (it’s located in C:Program FilesWindows Media Player folder.)

After LegitLibM.dll is found, right click and rename it to legitlib.dll.

STEP 3: Run WM11, click on validate, it may say ‘unable to validate’ (but that’s a fake message and WMP11 still works, so just click on OK). Then the program will go on to settings or configuration and after you do that the WMP 11 is ready to be used.

Method 2,3 and 4 above is WMP 11 application specific way to crack and bypass WGA in order to download and install WMP11, while method 1 is the workaround that make your Windows genuine, so there won’t be any restriction on installation of WMP11. There are more ways to legitimate your Windows.

Disclaimer: This article is for informational and educational purpose only. Readers should contacts Microsoft if their licensed or OEM software cannot be validated or purchase genuine software.


Using Apache With Microsoft Windows

jbrown 04 February, 2008 23:06 Windows Permalink Trackbacks (0)

Using Apache with Microsoft Windows

Available Languages:  en  |  ko 

This document explains how to install, configure and run Apache 2.0 under Microsoft Windows. If you find any bugs, or wish to contribute in other ways, please use our bug reporting page.

This document assumes that you are installing a binary distribution of Apache. If you want to compile Apache yourself (possibly to help with development or tracking down bugs), see Compiling Apache for Microsoft Windows.

Because of the current versioning policies on Microsoft Windows operating system families, this document assumes the following:

  • Windows NT: This means all versions of Windows that are based on the Windows NT kernel. Includes Windows NT, Windows 2000, Windows XP and Windows .Net Server 2003.
  • Windows 9x: This means older, consumer-oriented versions of Windows. Includes Windows 95 (also OSR2), Windows 98 and Windows ME.
top

Operating System Requirements

The primary Windows platform for running Apache 2.0 is Windows NT. The binary installer only works with the x86 family of processors, such as Intel and AMD processors. Running Apache on Windows 9x is not thoroughly tested, and it is never recommended on production systems.

On all operating systems, TCP/IP networking must be installed and working. If running on Windows 95, the Winsock 2 upgrade must be installed. Winsock 2 for Windows 95 can be downloaded from here.

On Windows NT 4.0, installing Service Pack 6 is strongly recommended, as Service Pack 4 created known issues with TCP/IP and Winsock integrity that were resolved in later Service Packs.

top

Downloading Apache for Windows

Information on the latest versions of Apache can be found on the web site of the Apache web server at http://httpd.apache.org/download.cgi. There you will find the current release, as well as more recent alpha or beta test versions, and a list of HTTP and FTP mirrors from which you can download the Apache web server. Please use a mirror near to you for a fast and reliable download.

For Windows installations you should download the version of Apache for Windows with the .msi extension. This is a single Microsoft Installer file, which contains a ready-to-run version of Apache. There is a separate .zip file, which contains only the source code. You can compile Apache yourself with the Microsoft Visual C++ (Visual Studio) tools.

top

Installing Apache for Windows

You need Microsoft Installer 1.2 or above for the installation to work. On Windows 9x you can update your Microsoft Installer to version 2.0 here and on Windows NT 4.0 and 2000 the version 2.0 update can be found here. Windows XP does not need this update.

Note that you cannot install two versions of Apache 2.0 on the same computer with the binary installer. You can, however, install a version of the 1.3 series and a version of the 2.0 series on the same computer without problems. If you need to have two different 2.0 versions on the same computer, you have to compile and install Apache from the source.

Run the Apache .msi file you downloaded above. The installation will ask you for these things:

  1. Network Domain. Enter the DNS domain in which your server is or will be registered in. For example, if your server's full DNS name is server.mydomain.net, you would type mydomain.net here.

  2. Server Name. Your server's full DNS name. From the example above, you would type server.mydomain.net here.

  3. Administrator's Email Address. Enter the server administrator's or webmaster's email address here. This address will be displayed along with error messages to the client by default.

  4. For whom to install Apache Select for All Users, on Port 80, as a Service - Recommended if you'd like your new Apache to listen at port 80 for incoming traffic. It will run as a service (that is, Apache will run even if no one is logged in on the server at the moment) Select only for the Current User, on Port 8080, when started Manually if you'd like to install Apache for your personal experimenting or if you already have another WWW server running on port 80.

  5. The installation type. Select Typical for everything except the source code and libraries for module development. With Custom you can specify what to install. A full install will require about 13 megabytes of free disk space. This does not include the size of your web site(s).

  6. Where to install. The default path is C:Program FilesApache Group under which a directory called Apache2 will be created by default.

During the installation, Apache will configure the files in the conf subdirectory to reflect the chosen installation directory. However, if any of the configuration files in this directory already exist, they will not be overwritten. Instead, the new copy of the corresponding file will be left with the extension .default. So, for example, if confhttpd.conf already exists, it will be renamed as confhttpd.conf.default. After the installation you should manually check to see what new settings are in the .default file, and if necessary, update your existing configuration file.

Also, if you already have a file called htdocsindex.html, it will not be overwritten (and no index.html.default will be installed either). This means it should be safe to install Apache over an existing installation, although you would have to stop the existing running server before doing the installation, and then start the new one after the installation is finished.

After installing Apache, you must edit the configuration files in the conf subdirectory as required. These files will be configured during the installation so that Apache is ready to be run from the directory it was installed into, with the documents server from the subdirectory htdocs. There are lots of other options which you should set before you really start using Apache. However, to get started quickly, the files should work as installed.

top

Customizing Apache for Windows

Apache is configured by the files in the conf subdirectory. These are the same files used to configure the Unix version, but there are a few different directives for Apache on Windows. See the directive index for all the available directives.

The main differences in Apache for Windows are:

  • Because Apache for Windows is multithreaded, it does not use a separate process for each request, as Apache does on Unix. Instead there are usually only two Apache processes running: a parent process, and a child which handles the requests. Within the child process each request is handled by a separate thread.

    The process management directives are also different:

    MaxRequestsPerChild: Like the Unix directive, this controls how many requests a single child process will serve before exiting. However, unlike on Unix, a single process serves all the requests at once, not just one. If this is set, it is recommended that a very high number is used. The recommended default, MaxRequestsPerChild 0, causes the child process to never exit.

    Warning: The server configuration file is reread when a new child process is started. If you have modified httpd.conf, the new child may not start or you may receive unexpected results.

    ThreadsPerChild: This directive is new. It tells the server how many threads it should use. This is the maximum number of connections the server can handle at once, so be sure to set this number high enough for your site if you get a lot of hits. The recommended default is ThreadsPerChild 50.

  • The directives that accept filenames as arguments must use Windows filenames instead of Unix ones. However, because Apache uses Unix-style names internally, you must use forward slashes, not backslashes. Drive letters can be used; if omitted, the drive with the Apache executable will be assumed.

  • While filenames are generally case-insensitive on Windows, URLs are still treated internally as case-sensitive before they are mapped to the filesystem. For example, the <Location>, Alias, and ProxyPass directives all use case-sensitive arguments. For this reason, it is particularly important to use the <Directory> directive when attempting to limit access to content in the filesystem, since this directive applies to any content in a directory, regardless of how it is accessed. If you wish to assure that only lowercase is used in URLs, you can use something like:

    RewriteEngine On
    RewriteMap lowercase int:tolower
    RewriteCond %{REQUEST_URI} [A-Z]
    RewriteRule (.*) ${lowercase:$1} [R,L]

  • Apache for Windows contains the ability to load modules at runtime, without recompiling the server. If Apache is compiled normally, it will install a number of optional modules in the Apache2modules directory. To activate these or other modules, the new LoadModule directive must be used. For example, to activate the status module, use the following (in addition to the status-activating directives in access.conf):

    LoadModule status_module modules/mod_status.so

    Information on creating loadable modules is also available.

  • Apache can also load ISAPI (Internet Server Application Programming Interface) extensions (i.e. internet server applications), such as those used by Microsoft IIS and other Windows servers. More information is available. Note that Apache cannot load ISAPI Filters.

  • When running CGI scripts, the method Apache uses to find the interpreter for the script is configurable using the ScriptInterpreterSource directive.

  • Since it is often difficult to manage files with names like .htaccess in Windows, you may find it useful to change the name of this per-directory configuration file using the AccessFilename directive.

  • Any errors during Apache startup are logged into the Windows event log when running on Windows NT. This mechanism acts as a backup for those situations where Apache cannot even access the normally used error.log file. You can view the Windows event log by using the Event Viewer application on Windows NT 4.0, and the Event Viewer MMC snap-in on newer versions of Windows.

    Note that there is no startup error logging on Windows 9x because no Windows event log exists on those operating systems.
top

Running Apache as a Service

Apache can be run as a service on Windows NT. There is some highly experimental support for similar behavior on Windows 9x.

You can install Apache as a service automatically during the installation. If you chose to install for all users, the installation will create an Apache service for you. If you specify to install for yourself only, you can manually register Apache as a service after the installation. You have to be a member of the Administrators group for the service installation to succeed.

Apache comes with a utility called the Apache Service Monitor. With it you can see and manage the state of all installed Apache services on any machine on your network. To be able to manage an Apache service with the monitor, you have to first install the service (either automatically via the installation or manually).

You can install Apache as a Windows NT service as follows from the command prompt at the Apache bin subdirectory:

httpd -k install

If you need to specify the name of the service you want to install, use the following command. You have to do this if you have several different service installations of Apache on your computer.

httpd -k install -n "MyServiceName"

If you need to have specifically named configuration files for different services, you must use this:

httpd -k install -n "MyServiceName" -f "c:filesmy.conf"

If you use the first command without any special parameters except -k install, the service will be called Apache2 and the configuration will be assumed to be confhttpd.conf.

Removing an Apache service is easy. Just use:

httpd -k uninstall

The specific Apache service to be uninstalled can be specified by using:

httpd -k uninstall -n "MyServiceName"

Normal starting, restarting and shutting down of an Apache service is usually done via the Apache Service Monitor, by using commands like NET START Apache2 and NET STOP Apache2 or via normal Windows service management. Before starting Apache as a service by any means, you should test the service's configuration file by using:

httpd -n "MyServiceName" -t

You can control an Apache service by its command line switches, too. To start an installed Apache service you'll use this:

httpd -k start

To stop an Apache service via the command line switches, use this:

httpd -k stop

or

httpd -k shutdown

You can also restart a running service and force it to reread its configuration file by using:

httpd -k restart

By default, all Apache services are registered to run as the system user (the LocalSystem account). The LocalSystem account has no privileges to your network via any Windows-secured mechanism, including the file system, named pipes, DCOM, or secure RPC. It has, however, wide privileges locally.

Never grant any network privileges to the LocalSystem account! If you need Apache to be able to access network resources, create a separate account for Apache as noted below.

You may want to create a separate account for running Apache service(s). Especially, if you have to access network resources via Apache, this is strongly recommended.

  1. Create a normal domain user account, and be sure to memorize its password.
  2. Grant the newly-created user a privilege of Log on as a service and Act as part of the operating system. On Windows NT 4.0 these privileges are granted via User Manager for Domains, but on Windows 2000 and XP you probably want to use Group Policy for propagating these settings. You can also manually set these via the Local Security Policy MMC snap-in.
  3. Confirm that the created account is a member of the Users group.
  4. Grant the account read and execute (RX) rights to all document and script folders (htdocs and cgi-bin for example).
  5. Grant the account change (RWXD) rights to the Apache logs directory.
  6. Grant the account read and execute (RX) rights to the Apache.exe binary executable.
It is usually a good practice to grant the user the Apache service runs as read and execute (RX) access to the whole Apache2 directory, except the logs subdirectory, where the user has to have at least change (RWXD) rights.

If you allow the account to log in as a user and as a service, then you can log on with that account and test that the account has the privileges to execute the scripts, read the web pages, and that you can start Apache in a console window. If this works, and you have followed the steps above, Apache should execute as a service with no problems.

Error code 2186 is a good indication that you need to review the "Log On As" configuration for the service, since Apache cannot access a required network resource. Also, pay close attention to the privileges of the user Apache is configured to run as.

When starting Apache as a service you may encounter an error message from the Windows Service Control Manager. For example, if you try to start Apache by using the Services applet in the Windows Control Panel, you may get the following message:

Could not start the Apache2 service on COMPUTER
Error 1067; The process terminated unexpectedly.

You will get this generic error if there is any problem with starting the Apache service. In order to see what is really causing the problem you should follow the instructions for Running Apache for Windows from the Command Prompt.

There is some support for Apache on Windows 9x to behave in a similar manner as a service on Windows NT. It is highly experimental. It is not of production-class reliability, and its future is not guaranteed. It can be mostly regarded as a risky thing to play with - proceed with caution!

There are some differences between the two kinds of services you should be aware of:

  • Apache will attempt to start and if successful it will run in the background. If you run the command

    httpd -n "MyServiceName" -k start

    via a shortcut on your desktop, for example, then if the service starts successfully, a console window will flash up but it immediately disappears. If Apache detects any errors on startup such as incorrect entries in the httpd.conf configuration file, the console window will remain visible. This will display an error message which will be useful in tracking down the cause of the problem.

  • Windows 9x does not support NET START or NET STOP commands. You must control the Apache service on the command prompt via the -k switches.

  • Apache and Windows 9x offer no support for running Apache as a specific user with network privileges. In fact, Windows 9x offers no security on the local machine, either. This is the simple reason because of which the Apache Software Foundation never endorses use of a Windows 9x -based system as a public Apache server. The primitive support for Windows 9x exists only to assist the user in developing web content and learning the Apache server, and perhaps as an intranet server on a secured, private network.

Once you have confirmed that Apache runs correctly as a console application you can install, control and uninstall the pseudo-service with the same commands as on Windows NT. You can also use the Apache Service Monitor to manage Windows 9x pseudo-services.

top

Running Apache as a Console Application

Running Apache as a service is usually the recommended way to use it, but it is sometimes easier to work from the command line (on Windows 9x running Apache from the command line is the recommended way due to the lack of reliable service support.)

To run Apache from the command line as a console application, use the following command:

httpd

Apache will execute, and will remain running until it is stopped by pressing Control-C.

You can also run Apache via the shortcut Start Apache in Console placed to Start Menu --> Programs --> Apache HTTP Server 2.0.xx --> Control Apache Server during the installation. This will open a console window and start Apache inside it. If you don't have Apache installed as a service, the window will remain visible until you stop Apache by pressing Control-C in the console window where Apache is running in. The server will exit in a few seconds. However, if you do have Apache installed as a service, the shortcut starts the service. If the Apache service is running already, the shortcut doesn't do anything.

You can tell a running Apache to stop by opening another console window and entering:

httpd -k shutdown

This should be preferred over pressing Control-C because this lets Apache end any current operations and clean up gracefully.

You can also tell Apache to restart. This forces it to reread the configuration file. Any operations in progress are allowed to complete without interruption. To restart Apache, use:

httpd -k restart

Note for people familiar with the Unix version of Apache: these commands provide a Windows equivalent to kill -TERM pid and kill -USR1 pid. The command line option used, -k, was chosen as a reminder of the kill command used on Unix.

If the Apache console window closes immediately or unexpectedly after startup, open the Command Prompt from the Start Menu --> Programs. Change to the folder to which you installed Apache, type the command apache, and read the error message. Then change to the logs folder, and review the error.log file for configuration mistakes. If you accepted the defaults when you installed Apache, the commands would be:

c:
cd "Program FilesApache GroupApache2bin"
httpd

Then wait for Apache to stop, or press Control-C. Then enter the following:

cd ..logs
more < error.log

When working with Apache it is important to know how it will find the configuration file. You can specify a configuration file on the command line in two ways:

  • -f specifies an absolute or relative path to a particular configuration file:

    httpd -f "c:my server filesanotherconfig.conf"

    or

    httpd -f filesanotherconfig.conf

  • -n specifies the installed Apache service whose configuration file is to be used:

    httpd -n "MyServiceName"

In both of these cases, the proper ServerRoot should be set in the configuration file.

If you don't specify a configuration file with -f or -n, Apache will use the file name compiled into the server, such as confhttpd.conf. This built-in path is relative to the installation directory. You can verify the compiled file name from a value labelled as SERVER_CONFIG_FILE when invoking Apache with the -V switch, like this:

httpd -V

Apache will then try to determine its ServerRoot by trying the following, in this order:

  1. A ServerRoot directive via the -C command line switch.
  2. The -d switch on the command line.
  3. Current working directory.
  4. A registry entry which was created if you did a binary installation.
  5. The server root compiled into the server. This is /apache by default, you can verify it by using apache -V and looking for a value labelled as HTTPD_ROOT.

During the installation, a version-specific registry key is created in the Windows registry. The location of this key depends on the type of the installation. If you chose to install Apache for all users, the key is located under the HKEY_LOCAL_MACHINE hive, like this (the version numbers will of course vary between different versions of Apache:

HKEY_LOCAL_MACHINESOFTWAREApache GroupApache2.0.43

Correspondingly, if you chose to install Apache for the current user only, the key is located under the HKEY_CURRENT_USER hive, the contents of which are dependent of the user currently logged on:

HKEY_CURRENT_USERSOFTWAREApache GroupApache2.0.43

This key is compiled into the server and can enable you to test new versions without affecting the current version. Of course, you must take care not to install the new version in the same directory as another version.

If you did not do a binary install, Apache will in some scenarios complain about the missing registry key. This warning can be ignored if the server was otherwise able to find its configuration file.

The value of this key is the ServerRoot directory which contains the conf subdirectory. When Apache starts it reads the httpd.conf file from that directory. If this file contains a ServerRoot directive which contains a different directory from the one obtained from the registry key above, Apache will forget the registry key and use the directory from the configuration file. If you copy the Apache directory or configuration files to a new location it is vital that you update the ServerRoot directive in the httpd.conf file to reflect the new location.

top

Testing the Installation

After starting Apache (either in a console window or as a service) it will be listening on port 80 (unless you changed the Listen directive in the configuration files or installed Apache only for the current user). To connect to the server and access the default page, launch a browser and enter this URL:

http://localhost/

Apache should respond with a welcome page and a link to the Apache manual. If nothing happens or you get an error, look in the error.log file in the logs subdirectory. If your host is not connected to the net, or if you have serious problems with your DNS (Domain Name Service) configuration, you may have to use this URL:

http://127.0.0.1/

If you happen to be running Apache on an alternate port, you need to explicitly put that in the URL:

http://127.0.0.1:8080/

Once your basic installation is working, you should configure it properly by editing the files in the conf subdirectory. Again, if you change the configuration of the Windows NT service for Apache, first attempt to start it from the command line to make sure that the service starts with no errors.

Because Apache cannot share the same port with another TCP/IP application, you may need to stop, uninstall or reconfigure certain other services before running Apache. These conflicting services include other WWW servers and some firewall implementations.


How To Articles In Category "Windows"

jbrown 04 February, 2008 22:58 Windows Permalink Trackbacks (0)
How to articles in category "Windows" 
Activate High Contrast on Windows
Add Languages on a Computer
Alter Startup and Shutdown Audio Files in MS Windows
Annoy a Friend With Their Background
    Change Window Skins With Shellwm
    Change Windows Time Display to Include Your Name
    Change Your Desktop Background in Windows
    Change Your Windows Computer Screen Saver
    Change an Administrator Password from a Limited Account
    Change or Create Desktop Icons for Windows
    Change the Computer Time and Date Using the Command Prompt
    Change the Default Font on Windows Notepad
    Change the Folder Background in Windows Explorer
    Change the Registered Name on a Windows PC
    Change the Text on the Windows Start Button
    Check Your Hard Disk Space
    Clear Internet Explorer's URL History by Editing the Registry
    Clear the Thumbnail Cache in Windows
    Clear up Unnecessary Files on Your PC
    Close Multiple Programs at the Same Time
    Combine Your Favorite Songs Onto One CD Using Windows Media Player
    Communicate With Ap (Address Point)
    Convert a FAT32 File System to NTFS in Windows XP
    Create a Custom Title in the Internet Explorer Window
    Create a Custom Windows Command Prompt
    Create a Fake and Harmless Virus
    Create a Startup Floppy Disk
    Customize Keyboard Speed in Windows
      Delete Run History in Windows
      Delete Undeletable Files in Windows
      Disable Windows Login Screensaver
      Disable the Capslock Key on a Computer
      Disable the Insert Key on a Computer
      Download Fonts for Windows
      Download a Web Page Without Visiting It
        Dual Boot Two Versions of Windows
        Dual Boot Windows 2000 and Fedora
          Edit the Registry Intro of the Registry
          Ensure All Users Have Local Pc Administrator Rights
            Find Hidden Files and Folders in Windows
            Find a Lost Firefox or Internet Explorer Icon
            Find out Your Computer's Sound Card Information
            Fix Full Screen Command Prompt
            Force Windows Explorer to Start in the Folder You Want
                Hack a Windows 2000 Computer
                  Increase Your Password Security in Windows 2000
                  Install ATI Graphics Drivers in Windows Server 2003 X64 Edition
                  Install Windows Using a CD
                  Install Windows on a SATA Hard Drive
                    Learn Common Keyboard Shortcuts in Windows
                    Let People Use Your Pc Without Messing It Up
                      Make Life Easier on Your Computer (Windows)
                      Make Music Using Your Keyboard and Windows
                      Make Windows Faster
                      Make Windows Stop Refusing to Save Images in Any Format Other Than Bitmap
                      Make Windows Xp Have the Look and Feel of Windows Vista
                      Make Your Windows XP Desktop Look Like a Windows Vista Aero Desktop
                      Make a Hidden Icon
                      Make a Password Protected File (for Microsoft Users)
                      Make a Shutdown Shortcut in Windows
                      Make a User Agreement Appear at Startup in Windows XP
                      Make the Show Desktop Icon in Windows Quick Launch Toolbar
                      Minimize All Open Windows Without Having a Windows Button
                      Modify the Windows Registry
                      Move from Windows to Linux
                      Move the Start Menu to the Top of the Screen in Windows
                        Open Windows Explorer
                        Organize Your Start Menu in Windows
                          Personalise Your Computer
                          Personalize a Computer when You First Buy It
                          Play Inkball
                          Protect Files from Others in Windows 98
                            Recognize a File Type
                            Recover a Dead Windows Machine
                            Remotely Restart a Windows Machine Through Command Line
                            Remove Programs
                            Remove Stored Passwords
                            Remove a Background from the Desktop Background List
                            Rename the Windows Recycle Bin
                            Repair Winsock and TCP/IP
                            Restart Windows Explorer Without Rebooting Computer
                            Run Windows XP System Maintenance With Automated Scripts
                            Run a Free and Open Source OS on a Windows PC
                              Save a Document in a Windows Based System
                              Set Program Restrictions on Your PC
                              Setup Time On Windows Vista
                              Shut Down a Frozen Windows Movie Maker Project
                              Solve the Svchost.Exe 100% Cpu Utilization Problem
                              Start Windows in Safe Mode
                                Take a Screenshot in Microsoft Windows
                                Traceroute a Computer/Server
                                Type Unicode Characters
                                  Uninstall All Windows Updates
                                  Use Microsoft Virtual PC
                                  Use Your X Box 360 Controller for Windows
                                  Use the Windows Backup Utility
                                      Articles That Require Further Editing
                                      Choose Between Windows XP and Windows Vista
                                      Create a Recursive Batch File in Windows
                                      Dramatically Speed up Windows XP
                                      Enable Clearfont
                                      Fix your Computer Registry for Free
                                      Get a Mac Skin on Windows
                                      Have Windows Activated
                                      Install Windows Live Onecare in Another Computer After Purchasing
                                      Make an Interactive Desktop Background
                                      Migrate Windows 98 Applications to XP
                                      Password Protect a Microsoft Word 2007 Document
                                      Prevent "Low Disk Space" Error Messages
                                      Record Sound Produced by Your Sound Card
                                      Redo Typing in Windows
                                      Start Services
                                      Uninstall Windows Movie Maker
                                      Use Command Line for Veritas Media Commands
                                      Use MS DOS
                                      Use Windows Live Messenger Without Downloading It
                                      Write a Batch File

                                      How To Login To An Expired Windows

                                      jbrown 04 February, 2008 22:48 Windows Permalink Trackbacks (0)

                                      How to login to an expired Windows

                                      Microsoft has a neat little way to prevent software piracy of their Windows operating system. "Windows Genuine Advantage"[edit: I stand corrected, it has nothing to do with WGA] with its "Product Activation" requirement. Essentially, even with a valid product key, you still need to activate your Windows to ensure that only one computer is using that specific product key. If you can't activate your Windows, there being many reasons for this, you are left with a 30 day grace period to change your product key to one that is fully valid or get in contact with Microsoft and plea your case.

                                      Once your grace period is up, Windows refuses to let you login anymore. You cannot access your files. You cannot go on the Internet. You cannot do anything, except the thrill of trying to activate Windows.


                                      Well, luckily for me I do not have to worry about this issues, as my Windows is valid and activated. However, for those who do not and have been so unfortunate enough to have their Windows expire on them, I present to you a bit of relief. How to gain access to your files on an expired Windows, with even enough functionality to surf the web, talk on MSN Messenger, and load up most of your applications. It doesn't give you full functionality of Windows, but it will be enough to get the job done until you can find the time to activate your Windows. Best of all though, it's all very simple and easy to do!!!

                                      First, turn on your computer and wait until you get to the Windows login screen.

                                      Next, click to login as usual. You should get an error from Windows telling you that your Windows has expired and is asking whether you would like to activate Windows now. Click Yes.


                                      A "Let's activate Windows" window will appear. Let's minimize it. DO NOT close it.


                                       


                                      Now, hold down the Windows Key on your keyboard while you also press the "U" key. This will open up the Narrator program to help assist those with poor vision. It is this program that will help us login to our Windows.

                                      Click the little computer icon in the top left hand side of the Narrator window. A drop down menu should appear. The last option in this menu is named "About Narrator...". Click it. This should open up another window called "About Narrator".

                                      In this window, there should be the text "Microsoft Web site". Click it, as it is a link and will open up your Internet Explorer, taking you to the Microsoft Accessibility website. Howrah! Internet access!

                                      As if Internet was not enough, in the address bar of Internet Explorer, type "c:". This should display all your hard drive contents on drive "C". From there you can load navigate your way around your computer, loading specific programs, and most whatever else.

                                      Some common directories as to where you can find personal files and programs are:

                                      C:program files
                                      C:documents and settingsusernameDesktop
                                      C:documents and settingsusernameDocuments
                                      C:documents and settingsusernameStart MenuPrograms

                                      On a side note, certain programs cannot be opened while Windows is still not activated. You will also not have a Task Bar at the bottom of your screen, as trying to open it will just result in it shutting itself down a few moments later. MSN Messenger works though, as well as most other non-Windows-based components.


                                      Disclaimer: I do not applaud piracy, but I do feel people should have access to their personal files, regardless of whether Windows has expired or not. This tutorial should not be used to bypass Windows Activation, nor does it restore full Windows functionality, but I provide it to those who are in desperate need of accessing files that are suddenly lost to them through the Microsoft Genuine Advantage activation system.

                                      [Update: some say it works even better with Vista, as the explorer.exe does not close shortly after you try to open it as it does in XP. Unconfirmed.]


                                      Video Footage Of Windows 7 Ultimate Leaked?

                                      jbrown 04 February, 2008 22:33 Windows Permalink Trackbacks (0)

                                      Video Footage of Windows 7 Ultimate Leaked?

                                      We already heard news about the next-gen Windows OS, Windows 7 Ultimate. Well, the fellows at Think Next are offering up a video, which they claim shows the "Milestone 1 code drop," all in shaky video glory. Check it out by hitting the video above.

                                      The video shown is apparently from a release that was shipped to Microsoft's major partners earlier this year. The clip shows the OS running to be Windows 7 Milestone 1 Ultimate edition 6519.1.071220-1525. We aren't making any rash proclamations, no matter how much we like the guys at Think Next. We're of the opinion that it doesn't look to dissimilar to Windows Vista, but it does look tweaked for the better. The boot screen seems to be redesigned, and the Media Center on display certainly has more eye candy to offer.

                                      All that said, if this is an early build sent to key partners that has been leaked, why can't said key partners put together some competent filming? The video is shaky as shit, and though the shots that are in focus look well formed, the rest could easily be the work of a video editing genius. What do you guys make of it? [Think Next via Softpedia; Thanks, Dode!]


                                      Powered by LifeType
                                      © 2006 - Design by Omar Romero (all rights reserved)