Jump to content
The Uniform Server Community

Apache Service not stopping


Tolodine
 Share

Recommended Posts

I am on Vista 64 Ultimate and have noticed with the 3 versions of Uniserver I have tested, up to 5.3, that when choosing the option to uninstall the Apache service it always stays running and I have to stop the service manually. I don't know what kind of information you need but the MySQL service seems to stop just fine. It is always just the apache service.

Link to comment
Share on other sites

I assume you are using UniTray?

 

5.3-Nano: Use the batch files in folder: UniServer\alternative_control

 

Service_Install_Run.bat

Service_Stop_Uninstall.bat

 

These report what is taking place and hopefully provide a pointer as to why Apache fails to stop and uninstall.

 

All the best

Ric :)

Link to comment
Share on other sites

After running Service_Stop_Uninstall.bat I get this

MySQL is not installed as a service

 

Apache service ApacheS1 was not running

UnInstalling Apache Service ApacheS1 ...

Removing the ApacheS1 service

The ApacheS1 service has been removed successfully.

 

Press any key to continue . . .

 

I looked at the services and it is still running even though it says it was removed successfully. Also it says MySQL is not installed as a service but it is. It looks like it didn't get rid of that service either.

Link to comment
Share on other sites

Certainly very odd results! Not sure what the cause is there are too many variables.

I would like to remove the control architecture from the equation.

 

Create the following two batch files and place them in folder: UniServer

 

File: z_start.bat

usr\local\mysql\bin\mysqld-opt.exe --install MySQLS1
net start MySQLS1

usr\local\apache2\bin\Apache.exe -k install -n "ApacheS1"
net start  ApacheS1

pause

File: z_stop.bat

net stop MySQLS1
usr\local\mysql\bin\mysqld-opt.exe --remove MySQLS1

net stop ApacheS1
usr\local\apache2\bin\Apache.exe -k uninstall -n "ApacheS1"

pause

 

z_start.bat: Installs and runs both servers as a service

z_stop.bat: Stops and uninstalls both server services

 

They run the servers directly hence bypassing control scripts.

More importantly display the steps being performed.

 

Run the above scripts and note any errors displayed.

 

Note 1: You will get errors on running a script consecutively e.g. z_start.bat followed by z_start.bat

Note 2: UniTray server status will report incorrect information since it has been bypassed.

 

All the best

Ric :)

Link to comment
Share on other sites

  • 3 months later...

Sorry to be bringing up an old subject but it is happening again.

 

I recently upgraded to windows 7 64 and the batch files you had me create before are no longer working. I tried the newest version of the uniform server and it works but I am getting the same as before. The services and processes are not stopping when I try to uninstall them from the unitray. I have done some troubleshooting and have found that for some odd reason the uniform server will work completely if I put it on the root of the C drive (C:\UniServer). Everything works. The services get stopped and deleted, the processes stop and go away, everything just works. If I move the server to a new drive or new folder not on the root of C, everything breaks again. Is there some file I need to edit to point the server to the new location?

Link to comment
Share on other sites

(C:\UniServer). Everything works. The services get stopped and deleted, the processes stop and go away, everything just works. If I move the server to a new drive or new folder not on the root of C, everything breaks again. Is there some file I need to edit to point the server to the new location?

Looks like it’s not an issue with the main components. :)

The server is dynamic, first checks server location if moved to a different folder rewrites all absolute paths accordingly.

 

Server runs function get_location_tracker()

Located in file UniServer\unicon\main\includes\functions.php

 

If for any reason the function is not run paths remain as original installation.

 

Just wondering is something prevents the PHP CLI script from running.

 

All the best

Ric :)

Link to comment
Share on other sites

Looks like it’s not an issue with the main components. :)

The server is dynamic, first checks server location if moved to a different folder rewrites all absolute paths accordingly.

 

Server runs function get_location_tracker()

Located in file UniServer\unicon\main\includes\functions.php

 

If for any reason the function is not run paths remain as original installation.

 

Just wondering is something prevents the PHP CLI script from running.

 

All the best

Ric :)

One thing that I did notice is that the my.ini is getting changed with the new paths so that part of it seems to be working.

Link to comment
Share on other sites

OK That sounds good.

 

Check the paths in

UniServer\usr\local\apache2\conf\httpd.conf

In particular DocumentRoot

Note: If your real path contains a space it will kill the servers.

 

If all paths are written correctly you should be ready to go.

 

All the best

Ric :)

Link to comment
Share on other sites

OK That sounds good.

 

Check the paths in

UniServer\usr\local\apache2\conf\httpd.conf

In particular DocumentRoot

Note: If your real path contains a space it will kill the servers.

 

If all paths are written correctly you should be ready to go.

 

All the best

Ric :)

I checked every path in there and they seem to be correct but yet it still has the same performance issue. If it is not on the root of C it does not stop the apache processes/service or the mysql service. When it is on the root of C it works just fine.

Link to comment
Share on other sites

I checked every path in there and they seem to be correct but yet it still has the same performance issue. If it is not on the root of C it does not stop the apache processes/service or the mysql service. When it is on the root of C it works just fine.

I really have reached my level of incompetence, and don’t know what to suggest. :)

One thought that crossed my mind was virtualisation of files. That seems implausible since it works on C drive.

 

All the best

Ric :)

Link to comment
Share on other sites

  • 1 year later...

Ric;

I have a similar problem, Apache and MySQL starting up as SERVICES, ON BOOT.

I think this is slightly different than reported by Tolodine earlier in this thread.

However, like Tolodine, Unitray stop options do not stop either service.

 

I'm running Win XP SP3, US 5.7.2

Installed in C:/UniformServer572/UniServer/ which is the documentroot path

 

I've checked the paths in httpd.conf and all seem to be correct and without spaces.

 

I will try the two batch files you suggested earlier and will edit this post with the result.

[edit] both z_start.bat and z_stop.bat WORKED, starting and stopping apache and mysql.

 

I'll also try the alternative batch files and report later.

[edit] I ran Service_Install_Run.bat in alternative-control dir. Did not work, reporting

the following errors:

...

The service name is invalid.

More help is available by typing NET HELPMSG 2185.

Apache port = 80 - OK to run Apache service

SSL not enabled skipping port test.

Apache Syntax check - Syntax OK

Installing ApacheS1 Service ...

Installing the ApacheS1 service

(OS 5)Access is denied. : Failed to create WinNT Service Profile

The service name is invalid.

...

UniformServer 5.x, CodeIgniter, Gimp. What else could anyone want?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...