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!

help the newbie

Status
Not open for further replies.

kapitoshka

Technical User
Jan 4, 2006
17
CA
wanted to try apce and have a website running... Installed once, but due to low disk space, I have uninstalled it..now when I try to install it again... the maneger loads, but no instances in it.. apache doesn't run, try or ###.##.##.## nothing works.. plz help.
 
You probably need to start the service - the method to do this depends on what operating system apache is running on.
 
I think smah is right. If you are running Windows, you can run apache in a shell window or as a service. If you install it as a service it will start automatically at boot up. If apache's /bin directory is not in your path you will need to change to that directory. Type this on the command line:

Code:
apache -k install

This will create a service with the default name, usually Apache or Apache2. If you want a different name you would use -n option. For example if you want to call it myserver, you would do the following:

Code:
apache -k install -n myserver

From then on all you have to do to start it is type:

Code:
apache -k start

In addition to "start" there is also "stop", "restart" and on some systems "graceful" which will restart without knocking everybody off line.

If you are running linux, the command is usually "apachectl start".

 
im no familiar with windows shell, tell me hoew to do it in detail...
 
In the lower left corner of your desktop you'll see the Start button. Click on it the click on "All Programs". From there click Accessories and look for "Command Line". Click on that and a window will pop up. This is call the command shell or in the olden days, the dos prompt. This is where you will type the commands I listed in the previous post. If you plan to be using the command shell often, you may want to make a link on your desktop.



 
I sad im not familiar, not a retard... I know how to get to cmd...i just dont know how to execute the commands above...
 
when i enter "apache -k install -n myserver" or "apache -k start" it says some error
 
Sorry - but you said to tell you in detail. I wasn't trying to insult you, I was trying to help. You say you get "some error". Can you tell me what that error is? You do not have to quote it verbatim. I just need a rough idea of what is happening.

 
i click run, type cmd, type for example "apache -k install" or any other mentioned above...and it always says the following: <code>Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\FaMiLy>^V
'?' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\FaMiLy>apache -k install
'apache' is not recognized as an internal or external command,
operable program or batch file.

C:\Documents and Settings\FaMiLy></code>
 
cleaned all registry crap for anything with Apache..tried to install it again... bam 2 dos windows with the fillowing


(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Note the errors or messages above, and press the <ESC> key to exit. 19...

----------------------------------------------
[Thu Jan 05 14:04:02 2006] [error] (OS 2)The system cannot find the file specifi
ed. : No installed service named "Apache2".
Note the errors or messages above, and press the <ESC> key to exit. 10...
----------------------------------------------
BAM
 
oh yeah and apache service monitor is running..no Apache2 sercice isnn't....it's empty[thumbsdown]
 
You cannot use the run box because you need to change to apache's /bin directory. For example type:

cd /Program Files/Apach2/bin

You would type the actual path to that directory. The reason the commands aren't recognized by your system is because it assumes it is in your path. To see what I mean, type "set" (without quotes)on the command line. Scan down the page until you come to the line that starts with "path = C:/Windows/System... " This line will list all the places (seperated by semicolon) your system will look for the executable you are trying to use. Another option is to type the path to the the command (executable). If you type the path, then you can use the run box.

 
oh "cd" the same as in Linux.. nice thanks?
pirate-smiley.jpg
 
What the f* does this now suppost to mean...
----------------------------------------------------------------
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
Note the errors or messages above, and press the <ESC> key to exit. 15...
----------------------------------------------------------------
 
the result...
______________________________________________________________
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\FaMiLy>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\FaMiLy\Application Data
CLASSPATH=C:\Program Files\Java\jre1.5.0_05\lib\ext\QTJava.zip
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=YOUR-6PDPT9YPA2
ComSpec=C:\WINDOWS\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\FaMiLy
LOGONSERVER=\\YOUR-6PDPT9YPA2
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Pa
nda Software\Panda Titanium Antivirus 2005\;C:\Program Files\QuickTime\QTSystem\

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 0, AuthenticAMD
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0800
ProgramFiles=C:\Program Files
PROMPT=$P$G
QTJAVA=C:\Program Files\Java\jre1.5.0_05\lib\ext\QTJava.zip
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\FaMiLy\LOCALS~1\Temp
TMP=C:\DOCUME~1\FaMiLy\LOCALS~1\Temp
USERDOMAIN=YOUR-6PDPT9YPA2
USERNAME=FaMiLy
USERPROFILE=C:\Documents and Settings\FaMiLy
windir=C:\WINDOWS

C:\Documents and Settings\FaMiLy>cd c:/

C:\Documents and Settings\FaMiLy>cd c:\

C:\>ls
'ls' is not recognized as an internal or external command,
operable program or batch file.

C:\>list
'list' is not recognized as an internal or external command,
operable program or batch file.

C:\>Program Files
'Program' is not recognized as an internal or external command,
operable program or batch file.

C:\>regedir
'regedir' is not recognized as an internal or external command,
operable program or batch file.

C:\>cd C:\Program Files\Apache Group\Apache2\bin

C:\Program Files\Apache Group\Apache2\bin>apache -k install
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

C:\Program Files\Apache Group\Apache2\bin>
C:\Program Files\Apache Group\Apache2\bin>apache -k install -n myserver
(OS 10048)Only one usage of each socket address (protocol/network address/port)
is normally permitted. : make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

C:\Program Files\Apache Group\Apache2\bin>apache -k start
[Thu Jan 05 20:11:50 2006] [error] (OS 2)The system cannot find the file specifi
ed. : No installed service named "Apache2".

C:\Program Files\Apache Group\Apache2\bin>stupid apache
'stupid' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\Apache Group\Apache2\bin>stupid me
'stupid' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\Apache Group\Apache2\bin>N00B
'N00B' is not recognized as an internal or external command,
operable program or batch file.

C:\Program Files\Apache Group\Apache2\bin>
______________________________________________________________
 
Apache or "something else" is already running on port 80. If this is the same error you got the first time, then you need to remove or disable anything using that port. A couple examples of things that could be on that port are IIS or PWS. If you use a P2P program such as Kazaa change the port it uses to 8080. Port 80 is used for http traffic and is the default port for all web servers.
 
how can I see the ports and what is using them...?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top