|
-
Oct 1st, 2003, 01:46 PM
#1
Thread Starter
Stuck in the 80s
[Resolved] Apache and MySQL as a sevice?
I posted this elsewhere, but since MySQL and Apache go so well with PHP, and I'm not getting an answer, I thought I'd post the question here, too.
Using Windows XP, I want to have Apache and MySQL run as a service, but only on one name. So when I log onto this name, Apache and MySQL will be running in the background.
How can I set this up?
Last edited by The Hobo; Oct 16th, 2003 at 12:14 PM.
-
Oct 1st, 2003, 03:08 PM
#2
I'm not on my home computer so I can't actually test it out, but doesn't Windows XP allow different "startup.ini," one per user account? If so, you can just do what I do and put the MySQLd.exe and Apache.exe files in your user's startup folder. I'm not 100% positive but I think that's what you can do, and if not, I can try it out at my house in about 3 hours.
-
Oct 1st, 2003, 03:27 PM
#3
Hyperactive Member
why cant you just run them as two seperet services?
-
Oct 1st, 2003, 03:54 PM
#4
Originally posted by Muk108
why cant you just run them as two seperet services?
They are separate services... what The Hobo wants to do is only run those services when HE logs into the PC.... if someone else logs in, don't let the services run....
-
Oct 1st, 2003, 04:12 PM
#5
Thread Starter
Stuck in the 80s
Originally posted by kows
I'm not on my home computer so I can't actually test it out, but doesn't Windows XP allow different "startup.ini," one per user account? If so, you can just do what I do and put the MySQLd.exe and Apache.exe files in your user's startup folder. I'm not 100% positive but I think that's what you can do, and if not, I can try it out at my house in about 3 hours.
I think if I just put apache.exe in there it will load up the console window, rather than stick it in the background. I don't want to see the console window.
-
Oct 1st, 2003, 04:26 PM
#6
Hyperactive Member
on the service cant you jsut manualy start it? fromt he service window thing. or is there property to set who can access it?
-
Oct 1st, 2003, 04:55 PM
#7
Thread Starter
Stuck in the 80s
I don't know what you're talking about.
I don't want to manually start it. I want it to start up each time I log on to a particular name.
-
Oct 2nd, 2003, 12:14 AM
#8
Go to Control Panel > Services.
In the Apache2 service properties, you should see the path as:
"C:\Program Files\Apache Group\Apache2\bin\Apache.exe" -k runservice
and the mySQL path as:
C:/mysql/bin/mysqld-nt.exe
You can add these to the startup, so they'll be running when you login next time.
However, you can't rename services or create a "single" service for both of these together. The applications just won't work then.
You might also want to look at this: Go to the services console again, double click on Apache, and go to the LOGON tab. I think you can set it to run whenever you login with this username and password.
HTH
-
Oct 2nd, 2003, 09:46 AM
#9
Thread Starter
Stuck in the 80s
Q
Originally posted by mendhak
Go to Control Panel > Services.
In the Apache2 service properties, you should see the path as:
I don't see anything about apache in there. And I'm not running Apache2.
Originally posted by mendhak
However, you can't rename services or create a "single" service for both of these together. The applications just won't work then.
I don't want a single service for them both together. I just want them both to run.
-
Oct 2nd, 2003, 11:38 PM
#10
make a shortcut to apache.exe, add these parameters to start it, or just whatever you want:
C:\Apache\Apache\Apache.exe -w -n "Apache" -k start
stick it in your user start up folder.
make a shortcut to mysqld.exe and throw it in your start up folder too. the console for mysqld will run when you start up, but it will go away after a second or two, or at least it does for me.. the console for apache will open, start the server, and close after it has been successfully started.
-
Oct 3rd, 2003, 09:44 AM
#11
Thread Starter
Stuck in the 80s
Thanks, I'll give it a try when I get home.
-
Oct 3rd, 2003, 09:45 AM
#12
Frenzied Member
after you click on the prperties on said service you have a tab called "log on". the second radio button tells it what user to run as or when you olog on as that user.
for apache 1.xx I am not sure if you can run it as a service.
-
Oct 3rd, 2003, 10:07 AM
#13
Frenzied Member
-
Oct 3rd, 2003, 10:10 AM
#14
Thread Starter
Stuck in the 80s
I already read through that. Confused the crap out of me.
'Course I'm taking heavy meds right now, so maybe I should wait a week and try again.
-
Oct 5th, 2003, 10:40 PM
#15
Thread Starter
Stuck in the 80s
I reinstalled Apache as a service, and now kows suggestion is working. Thanks.
-
Oct 5th, 2003, 11:12 PM
#16
Frenzied Member
if you installed it as a service then putting it in the startup is not need. actually if you did that then it is not a service anymore.
-
Oct 6th, 2003, 02:20 PM
#17
Thread Starter
Stuck in the 80s
Originally posted by phpman
if you installed it as a service then putting it in the startup is not need. actually if you did that then it is not a service anymore.
I installed it as a service and did your suggestion by trying to put the user in the service properties and it did not work. Apache didn't load.
Quite frankly, I don't care if I'm running it as a service or not. I just want the damn thing to run when I sign on a name. And it does that now.
My problem is resolved.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|