Tolodine Posted October 19, 2009 Report Share Posted October 19, 2009 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. Quote Link to comment Share on other sites More sharing options...
Ric Posted October 19, 2009 Report Share Posted October 19, 2009 I assume you are using UniTray? 5.3-Nano: Use the batch files in folder: UniServer\alternative_control Service_Install_Run.batService_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 bestRic Quote Link to comment Share on other sites More sharing options...
Tolodine Posted October 19, 2009 Author Report Share Posted October 19, 2009 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 serviceThe 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. Quote Link to comment Share on other sites More sharing options...
Ric Posted October 20, 2009 Report Share Posted October 20, 2009 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.batusr\local\mysql\bin\mysqld-opt.exe --install MySQLS1 net start MySQLS1 usr\local\apache2\bin\Apache.exe -k install -n "ApacheS1" net start ApacheS1 pauseFile: z_stop.batnet 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 servicez_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.batNote 2: UniTray server status will report incorrect information since it has been bypassed. All the bestRic Quote Link to comment Share on other sites More sharing options...
Tolodine Posted October 23, 2009 Author Report Share Posted October 23, 2009 Sorry it took a bit for me to get back to you. Been really busy at work lately. I tried the bat files and they worked like a charm. Both services get created and start and when stopped they get deleted. Quote Link to comment Share on other sites More sharing options...
Tolodine Posted February 17, 2010 Author Report Share Posted February 17, 2010 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? Quote Link to comment Share on other sites More sharing options...
Ric Posted February 17, 2010 Report Share Posted February 17, 2010 (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 bestRic Quote Link to comment Share on other sites More sharing options...
Tolodine Posted February 18, 2010 Author Report Share Posted February 18, 2010 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 bestRic 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. Quote Link to comment Share on other sites More sharing options...
Ric Posted February 18, 2010 Report Share Posted February 18, 2010 OK That sounds good. Check the paths inUniServer\usr\local\apache2\conf\httpd.confIn particular DocumentRootNote: 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 bestRic Quote Link to comment Share on other sites More sharing options...
Tolodine Posted February 19, 2010 Author Report Share Posted February 19, 2010 OK That sounds good. Check the paths inUniServer\usr\local\apache2\conf\httpd.confIn particular DocumentRootNote: 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 bestRic 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. Quote Link to comment Share on other sites More sharing options...
Ric Posted February 19, 2010 Report Share Posted February 19, 2010 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 bestRic Quote Link to comment Share on other sites More sharing options...
markettwp Posted February 27, 2011 Report Share Posted February 27, 2011 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.2Installed 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 ProfileThe service name is invalid.... Quote UniformServer 5.x, CodeIgniter, Gimp. What else could anyone want? Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.