Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache on win XP seems not start working

Status
Not open for further replies.

olegkot

Programmer
Aug 28, 2001
31
IL
Hi!

I've installed Apache2 on my win XP and configured httpd.conf file (1. DocumentRoot &quot;C:/website&quot;; 2. <Directory &quot;C:/website&quot;> ). But nothing has happened.
It seems like server is not starting to work by pressing &quot;Start button -> Program Files -> Apache -> Management -> Start Apache&quot; - I check it in Processes Manager...

What can be a problem? Throw me a hint.. please.

P.S. Another question: At the first dialog window of installation process I had to fill three fields concerning website. I filled it with url address of my PC (but it's a timely address). Can you also clarify this dialog window?


Thx in advance.

With best wishes, oleg.
Enjoy yourself and break your conditionings
by getting Self-Realization:
 
'I filled it with url address of my PC (but it's a timely address).'

Not sure what you mean - a dynamic address? That could cause your web site to be down, but Apache will still start given any IP address.

I think you need to post your httpd.conf file for us to help. Also, did you set Apache to start as a service? That's how mine runs on both XP and 2000. Newposter
&quot;Good judgment comes from experience. Experience comes from bad judgment.&quot;
 
How do I set Apache to begin as a service?
About address - yes it's a dynamic one. How can I set the address if it's changed?

oleg.
 
I think during installation it asks if you want Apache to run as a service (which I think is the default under Windows), so you may be OK there.

As for the IP address, if you don't have a static IP, and you aren't using a service like dns2go.com to forward requests, your web sites will be down every time your ISP changes your address. With broadband, this may not happen often; with dialup, you usually get a different address every time you connect.

Also, have you configured your domain name via its registry to point to your IP address? Newposter
&quot;Good judgment comes from experience. Experience comes from bad judgment.&quot;
 
Also, make sure that you don't have xp's built-in firewall running. This would make it appear that your web site is unavailable.
 
Listen guys!

1. I don't have domain name - I need apache for development perposes.

2. In the right-bottom coner of the main window there is Apache's feather. When I open it - no services installed is shown. May be I need to install some additional services?
 
Hi! I'm still here...

can somebody show me mistakes in my httpd.conf pls:



### Section 1: Global Environment

ServerRoot &quot;C:/Program Files/Apache Group/Apache2&quot;

PidFile logs/httpd.pid

Timeout 300

KeepAlive On

MaxKeepAliveRequests 100

KeepAliveTimeout 15

# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_winnt.c>
ThreadsPerChild 250
MaxRequestsPerChild 0
</IfModule>

Listen 62.90.199.61:8081


LoadModule access_module modules/mod_access.so
LoadModule actions_module modules/mod_actions.so
LoadModule alias_module modules/mod_alias.so
LoadModule asis_module modules/mod_asis.so
LoadModule auth_module modules/mod_auth.so

LoadModule autoindex_module modules/mod_autoindex.so

LoadModule cgi_module modules/mod_cgi.so

LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so

LoadModule imap_module modules/mod_imap.so
LoadModule include_module modules/mod_include.so

LoadModule isapi_module modules/mod_isapi.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so

LoadModule negotiation_module modules/mod_negotiation.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule userdir_module modules/mod_userdir.so


### Section 2: 'Main' server configuration

ServerAdmin olegkot@barak-online.net

ServerName 62.90.199.61:8081

UseCanonicalName Off

DocumentRoot &quot;C:/website&quot;

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

<Directory &quot;C:/website&quot;>
Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

UserDir &quot;My Documents/My Website&quot;

DirectoryIndex index.html index.html.var

AccessFileName .htaccess

<Files ~ &quot;^\.ht&quot;>
Order allow,deny
Deny from all
</Files>

TypesConfig conf/mime.types

DefaultType text/plain

<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>

HostnameLookups Off

ErrorLog logs/error.log

LogLevel warn

LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %>s %b \&quot;%{Referer}i\&quot; \&quot;%{User-Agent}i\&quot;&quot; combined
LogFormat &quot;%h %l %u %t \&quot;%r\&quot; %>s %b&quot; common
LogFormat &quot;%{Referer}i -> %U&quot; referer
LogFormat &quot;%{User-agent}i&quot; agent

CustomLog logs/access.log common

ServerTokens Full

ServerSignature On

Alias /icons/ &quot;C:/Program Files/Apache Group/Apache2/icons/&quot;

<Directory &quot;C:/Program Files/Apache Group/Apache2/icons&quot;>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>

Alias /manual &quot;C:/Program Files/Apache Group/Apache2/manual&quot;

<Directory &quot;C:/Program Files/Apache Group/Apache2/manual&quot;>
Options Indexes FollowSymLinks MultiViews IncludesNoExec
AddOutputFilter Includes html
AllowOverride None
Order allow,deny
Allow from all
</Directory>

ScriptAlias /cgi-bin/ &quot;C:/Program Files/Apache Group/Apache2/cgi-bin/&quot;

<Directory &quot;C:/Program Files/Apache Group/Apache2/cgi-bin&quot;>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>

IndexOptions FancyIndexing VersionSort

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

DefaultIcon /icons/unknown.gif

ReadmeName README.html
HeaderName HEADER.html

IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

AddEncoding x-compress Z
AddEncoding x-gzip gz tgz

AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .et
AddLanguage fr .fr
AddLanguage de .de
AddLanguage he .he
AddLanguage el .el
AddLanguage it .it
AddLanguage ja .ja
AddLanguage pl .po
AddLanguage ko .ko
AddLanguage pt .pt
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pt-br .pt-br
AddLanguage ltz .ltz
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cz .cz
AddLanguage ru .ru
AddLanguage tw .tw
AddLanguage zh-tw .tw
AddLanguage hr .hr

LanguagePriority en da nl et fr de el it ja ko no pl pt pt-br ltz ca es sv tw

ForceLanguagePriority Prefer Fallback

AddDefaultCharset ISO-8859-1

AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
# For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8

AddCharset GB2312 .gb2312 .gb
AddCharset utf-7 .utf7
AddCharset utf-8 .utf8
AddCharset big5 .big5 .b5
AddCharset EUC-TW .euc-tw
AddCharset EUC-JP .euc-jp
AddCharset EUC-KR .euc-kr
AddCharset shift_jis .sjis

AddType application/x-tar .tgz
AddType image/x-icon .ico


BrowserMatch &quot;Mozilla/2&quot; nokeepalive
BrowserMatch &quot;MSIE 4\.0b2;&quot; nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch &quot;RealPlayer 4\.0&quot; force-response-1.0
BrowserMatch &quot;Java/1\.0&quot; force-response-1.0
BrowserMatch &quot;JDK/1\.0&quot; force-response-1.0

BrowserMatch &quot;Microsoft Data Access Internet Publishing Provider&quot;

redirect-carefully
BrowserMatch &quot;^WebDrive&quot; redirect-carefully
BrowserMatch &quot;^WebDAVFS/1.[012]&quot; redirect-carefully

<IfModule mod_ssl.c>
Include conf/ssl.conf
</IfModule>


### Section 3: Virtual Hosts

-------------------------------------------------------

oleg. :-(
 
First, at a command prompt type netstat -a and reply with the results.

Second, where is this IP address (62.90.199.61) coming from? Again at a command prompt, type ipconfig /all and post the results.
 
Exactly. If he has a dynamic IP address, and this is not the one that he currently has, Apache will not work.

With dialup service, it will usually change every session. With broadband, it usually retains it until the ISP's servers get rebooted (but not guaranteed, it may change more frequently). Newposter
&quot;Good judgment comes from experience. Experience comes from bad judgment.&quot;
 
Hi!

this is what you asked:
1. netstat:

TCP oleg:echo oleg:0 LISTENING
TCP oleg:discardoleg:0 LISTENING
TCP oleg:daytimeoleg:0 LISTENING
TCP oleg:qotd oleg:0 LISTENING
TCP oleg:chargenoleg:0 LISTENING
TCP oleg:epmap oleg:0 LISTENING
TCP oleg:microsoft-ds oleg:0 LISTENING
TCP oleg:1025 oleg:0 LISTENING
TCP oleg:1026 oleg:0 LISTENING
TCP oleg:1028 oleg:0 LISTENING
TCP oleg:1029 oleg:0 LISTENING
TCP oleg:1031 oleg:0 LISTENING
TCP oleg:1202 oleg:0 LISTENING
TCP oleg:pptp oleg:0 LISTENING
TCP oleg:1801 oleg:0 LISTENING
TCP oleg:2103 oleg:0 LISTENING
TCP oleg:2105 oleg:0 LISTENING
TCP oleg:2107 oleg:0 LISTENING
TCP oleg:5000 oleg:0 LISTENING
TCP oleg:netbios-ssnoleg:0 LISTENING
TCP oleg:netbios-ssn61-216-68-56.HINET-IP.hinet.net:1042 ESTABLISHED
TCP oleg:1202 iht-d01.icq.com:http ESTABLISHED
TCP oleg:1233 mail.barak-online.net:pop3 TIME_WAIT
TCP oleg:16295 oleg:0 LISTENING
UDP oleg:echo *:*
UDP oleg:discard*:*
UDP oleg:daytime*:*
UDP oleg:qotd *:*
UDP oleg:chargen*:*
UDP oleg:epmap *:*
UDP oleg:snmp *:*
UDP oleg:microsoft-ds *:*
UDP oleg:isakmp *:*
UDP oleg:1027 *:*
UDP oleg:1030 *:*
UDP oleg:1043 *:*
UDP oleg:1069 *:*
UDP oleg:1070 *:*
UDP oleg:1088 *:*
UDP oleg:1645 *:*
UDP oleg:1646 *:*
UDP oleg:12tp *:*
UDP oleg:radius *:*
UDP oleg:radacct*:*
UDP oleg:3527 *:*
UDP oleg:ntp *:*
UDP oleg:netbios-ns *:*
UDP oleg:netbios-dgm*:*
UDP oleg:router *:*
UDP oleg:1089 *:*
UDP oleg:1900 *:*
UDP oleg:8981 *:*
UDP oleg:ntp *:*
UDP oleg:1032 *:*
UDP oleg:1033 *:*
UDP oleg:1040 *:*
UDP oleg:1041 *:*
UDP oleg:1102 *:*
UDP oleg:1124 *:*
UDP oleg:1209 *:*
UDP oleg:1900 *:*
---------------------------------------
2. ipconfig:

Windows IP Configuration
Host Name.....................: oleg
Primary Dns Suffix............:
Node type.....................: Broadcast
IP ROuting Enabled............: Yes
WINS Proxy Enabled............: Yes

Ethernet adapter Local Area Connection 5:
Connection-specific DNS Suffix:
Description...................: Intel<R> PRO/100 S Desktop Adapter
Physical Addres...............: 00-02-B3-3C-33-0A
Dhcp Enabled..................: Yes
Autoconfiguration Enabled.....: Yes
IP Address....................: 62.90.199.61
Subnet Mask...................: 255.255.255.0
Default Gateway...............: 62.90.199.254
DHCP Server...................: 213.57.75.70
DNS Servers...................: 212.150.48.169
206.49.94.234
Lease Obtained................: Tuesday,January 14, 2003 2:37:51 PM
Lease Expires.................: Wednesday,January 15, 2003 2:38:46 PM
-----------------------------------------------

Good luck! oleg.
 
I just installed the Apache 1.3.27 for the purpose of learning asp on my xp home machine. During installation it asked for a server name I didn't know what to enter so i used my imagination and put That was wrong. When I looked in httpd.conf I found this:
===========================================================
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g., # anyway, and this will make redirections work in a sensible way.
#
# 127.0.0.1 is the TCP/IP local loop-back address, often named localhost. Your
# machine always knows itself by this address. If you use Apache strictly for
# local testing and development, you may use 127.0.0.1 as the server name.
#
===========================================================
Since I don't have a network administrator for my home computer I turned to this site and got a lot of good tips.
I changed ServerName to 127.0.0.1
For now I am putting my html and asp in a subdirectory that I created off this directory:
C:\Program Files\Apache Group\Apache\htdocs
And it works [surprise]
Good Luck
 
you should sign up with a dns client i use dyndns.org then uninstall apache... then redo the installation with your dns address... and add your email ... as the admin's email... then reply back to us...
 
I've done it:

Now my address is olegkot.dyndns.org.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top