logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: httpd -k uninstall (and install)
Author
wetinwales



Joined: 22 Sep 2006
Posts: 8
Location: Anglesey North Wales

PostPosted: Fri 22 Sep '06 10:24    Post subject: httpd -k uninstall (and install) Reply with quote

Hello I'm a very newbie but with some determination!

Following pnllan's good summary on installing Apache 2.2 to run PHP5 ,
I got as far as the "httpd -k uninstall" instruction.
(Where a previous installation has been MSI - problems with uninstall sequence etc)

I don't understand this instruction. Can't find any file in Apache2.2\bin other than httpd.exe
So I presumed that, at the command prompt, (which I am now learning) when I got to the \bin folder, I was then to type "http -k uninstall" to uninstall the service (bin?)
Then continue to uninstall Apache (through Control Panel?)

If that was correct. (WindowsXP) command didn't recognise any httpd internal or external command.

Can anyone give it to me in simple (Oh God the Penny Drops Embarassed ) from?

Thanks!
Daf
[/b]
Back to top
kr33



Joined: 19 Sep 2006
Posts: 64
Location: South Africa

PostPosted: Fri 22 Sep '06 11:11    Post subject: Reply with quote

Hi

I've experienced a problem similar to what you are experiencing.

Firstly, if you had the MSI version installed, you would have had to go to the command prompt, change to the apache bin directory. then type httpd -k shutdown or httpd -k stop (to stop the service) then httpd -k uninstall (to remove the service). Then if the msi version isn't listed in the add/remove programs list, you could just delete the directory.

now after downloading the version of apache from here(apache lounge), i think the file is called httpd-.....zip, and the php5apache2.dll from this site. just follow the setup steps provided.

As for the command not being recognised...check the httpd.conf file(found in the apache2/conf directroy) and if you added the line: LoadModule php5_module "c:/php5/php5apache2.dll" (i'm assuming thats the directory you had php in). Remove this line. and if you copied the httpd mainfest file to the apache bin directory, remove that as well.

Now try restarting apache using ApacheMonitor. If that is successful the go to the command prompt and follow the steps i mentioned to stop and uninstall apache.

Now you should be able to access httpd.exe and reinstall apache following pnllan's tutorial.

P.S.
To install apache just type httpd -k install at that command prompt, when you are in the apache bin directory, then start apache to see if it runs. If it does you've won the first battle. Now try and install php5, i suggest you download the php5apache2.dll file and manifest file from this site since the php5apache2.dll does not support apache 2.2.3

Ciao

Hope I helpd Wink

Quote:
Every man has to go through hell...to reach his paradise
Back to top
wetinwales



Joined: 22 Sep 2006
Posts: 8
Location: Anglesey North Wales

PostPosted: Fri 22 Sep '06 11:24    Post subject: Reply with quote

Hi there kr33 Thanx for the reply

The modifications to LoadModule and others have not been done at this installation of Apache2.2. (They were previously and were only ever uninstalled through Control Panel)

It is WIN Binary MSI that I have installed.

The intention is simply to ensure a clean break in order to start again with the ApacheLounge version.

I'll work through your suggestion. Perhaps XAMP is the thing for me at this stage in my learning?

Thanks
Daf North wales
Back to top
kr33



Joined: 19 Sep 2006
Posts: 64
Location: South Africa

PostPosted: Fri 22 Sep '06 11:39    Post subject: Reply with quote

Ok Kewl

once you've uninstalled the apache service, you basically have that clean break you want. Just make sure ALL traces of it has been removed BEFORE you try a new install.

Another thing is...download the VC++ Redistrbutable package mentioned in pnllan's post.

Let me know how it goes and i'll help where ever i can

Ciao

Kr33 Wink
Back to top
wetinwales



Joined: 22 Sep 2006
Posts: 8
Location: Anglesey North Wales

PostPosted: Fri 22 Sep '06 12:18    Post subject: Reply with quote

Thanks again.
Just uninstalled Apache via control panel and found that Apache monitor still resides on the menu bar
Following uninstall I see that conf and logs folders still exist in C:\program files\Apache Software Foundation\Apache2.2
Nothing listed in the populated list in Add/Remove of Control Panel
So I guess this is the kind of issue about files not being fully removed on uninstall...
Presume I can simply delete the remaining Apache2.2 folder at the command.com prompt - then get a fresh start?

So many thanks
Daf
Back to top
kr33



Joined: 19 Sep 2006
Posts: 64
Location: South Africa

PostPosted: Fri 22 Sep '06 13:50    Post subject: Reply with quote

Yeah thats fine, you shouldn't have a problem. Just delete the apachemonitor shortcut and the Apache Software foundation folder and you should be set for a brand new and clean install of apache.

It's not that difficult to install, once you follow the given tutorial and download the necessary files.

I followed the tutorial from start to finish and it worked. It is better to manually configure apache, you know, by extracting the apache files and then the php files. But you will have to install MySQL separately, I downloaded MySQL5 in did the manuall config of Apache and PHP5, and presto!!!! Working together like a team!!!!

Give me a shout if you need more assistance!

P.S. I won't be online this weekend.

Wink

Goodluck(not that you'd need it)
Back to top
wetinwales



Joined: 22 Sep 2006
Posts: 8
Location: Anglesey North Wales

PostPosted: Fri 22 Sep '06 14:07    Post subject: Reply with quote

Very many thanks for your kind attention. Hope I get good enough to be helping others in return. Have a good weekend!
Daf
Back to top
kr33



Joined: 19 Sep 2006
Posts: 64
Location: South Africa

PostPosted: Fri 22 Sep '06 14:59    Post subject: Reply with quote

Not a problem...I myself am abit of a newbie, and most of what I have learnt is by trail and error.

I love spreading my knowledge to others and love learning from those better than I am.

My key rule in life is determination & Practice. And most importantly ALWAYS aim high and if you don't reach your desired goal, your sure to get close enough to work on achieving that goal.

Wink
Back to top
wetinwales



Joined: 22 Sep 2006
Posts: 8
Location: Anglesey North Wales

PostPosted: Mon 25 Sep '06 21:23    Post subject: Reply with quote

Hi there! Very Happy I got Apache and PHP doing nice things together and have started my PHP learning curve. Very very many thanks for your input. Wink

I use the Windows prompt to install and start Apache all ok.

I still have not understood the correct method to use the httpd -k install or start commands in 'command.com'

I (wrongly Embarassed ) type dir "C:\Apache2\bin\httpd -k install" and the message returns:- httpd is not an internal or external command. (with or without the dir command (wrongly! Embarassed ))

OK This I know is desperately basic but I haven't used that kind of stuff since the BBC B days - and that was when Noah floated the Ark.

What is the syntax for activating an httpd -k install or start command in command.com?

Regards
Daf
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7364
Location: Germany, Next to Hamburg

PostPosted: Mon 25 Sep '06 21:33    Post subject: Reply with quote

wetinwales wrote:

What is the syntax for activating an httpd -k install or start command in command.com?


use cmd.exe instead of command.com
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3091
Location: Hilversum, NL, EU

PostPosted: Mon 25 Sep '06 21:34    Post subject: Reply with quote

Yep, you are not used anymore to use the cmd prompt.

Best is to download Microsoft's PowerToy 'Command prompt here' , see www.apachelounge.com/viewtopic.php?t=501

Then right click the folder where httpd.exe exists and you see in the context menu "Open Command Window Here" and type then in the dos-window httpd -k install


Steffen
Back to top
wetinwales



Joined: 22 Sep 2006
Posts: 8
Location: Anglesey North Wales

PostPosted: Mon 25 Sep '06 23:23    Post subject: Reply with quote

Very Happy Very many thanks both of you!
An enlightened man! Cool
Daf
Back to top


Reply to topic   Topic: httpd -k uninstall (and install) View previous topic :: View next topic
Post new topic   Forum Index -> Apache