kirkzeus Posted January 3, 2006 Report Share Posted January 3, 2006 Hi all I want to be able to start and stop Apache from 2 separate Windows XP Desktop shortcuts. For the life of me I've tried various paths and settings within the shortcut but keep on getting errors on trying to run Apache. I am running Uniform Server v3.3 and the path is via "F:\WAMP\UniServer_v3.3". Any help with the shortcut's 'Target' and 'Start in' settings would be much appreciated. Many thanks Quote Link to comment Share on other sites More sharing options...
twpmarket Posted January 4, 2006 Report Share Posted January 4, 2006 On my Win2000 system, the start directory/folder is the location of the batch file server_start.bat. The target directory is the location of the uniform server installation which in my case is the same. start: C:\Program Files\...\Uniform Server\Server_Start.bat"target: "C:\Program Files\...\Uniform Server\Server_Start.bat" Notice that these are NOT the, as yet, unmounted drive which will be recreated by the batch file. I'm going to guess that your "F:\WAMP\UniServer_v3.3". may be the actual installation folder? WOMM Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted January 4, 2006 Report Share Posted January 4, 2006 Leave all files where they are suppose to be.. no file is to be moved around... just because the server is mobile does not mean you can put Server_Start.bat anywhere you want Right Click on [File Name] > Send To > Desktop (Shortcut) That should make a good shortcut for you and with that, you can copy and paste where ever you want. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
kirkzeus Posted January 4, 2006 Author Report Share Posted January 4, 2006 Leave all files where they are suppose to be.. no file is to be moved around... just because the server is mobile does not mean you can put Server_Start.bat anywhere you want Right Click on [File Name] > Send To > Desktop (Shortcut) That should make a good shortcut for you and with that, you can copy and paste where ever you want.2206[/snapback] Thanks for the feedback. I have tried what you have suggested to create an Apache shortcut, but get the following error message when I run it:+++++++++++++++C:\Documents and Settings\kirkzeus>"F:\WAMP\UniServer_v3.3\diskw\usr\local\apache2\bin\Apache.exe"Syntax error on line 69 of F:/WAMP/UniServer_v3.3/diskw/usr/local/apache2/conf/httpd.conf:ServerRoot must be a valid directory+++++++++++++++ The desktop's shortcut's "Start in" has the follwoing contents:"F:\WAMP\UniServer_v3.3\diskw\usr\local\apache2\bin" Any ideas? Thanks again. Quote Link to comment Share on other sites More sharing options...
kirkzeus Posted January 10, 2006 Author Report Share Posted January 10, 2006 Can anyone please help here as I have tried various ways of setting up a shortcut to start Apache but still keep on getting the same error message "ServerRoot must be a valid directory" Many thanks Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted January 10, 2006 Report Share Posted January 10, 2006 I have no idea what it is you guys are doing, but this is like the easiest thing to do on the computer. Right Click [server_Start.bat or Disk Start.vbs] > Send To > Desktop (create shortcut) It will make the shortcut for you... Then, you can copy it anywhere you want. I have tried this on more than 3 computers now and works perfect so i do not know what you guys are doing wrong. Make sure that in the Properties of the Shortcut, the 'Start In' variable is set to the main location of the file! Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
kirkzeus Posted January 10, 2006 Author Report Share Posted January 10, 2006 Thanks for the reply. Unfortunately this isn't quite what I want to do. Yes, I want Apache to start but I do not want the web browser to start up as well. All I want is for Apache to start without any windows being displayed, although I don't mind a short pop up to appear then disappear immediately. Thanks Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted January 11, 2006 Report Share Posted January 11, 2006 Then edit the Start.bat and put a comment tag ";" before the command to start IE and open the location. Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
kirkzeus Posted January 12, 2006 Author Report Share Posted January 12, 2006 Then edit the Start.bat and put a comment tag ";" before the command to start IE and open the location.2290[/snapback] Yes it works!!! Thank you very much Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted January 12, 2006 Report Share Posted January 12, 2006 <_ lol no problem.> Quote Best Regards Olajide Olaolorun The Uniform Server Development Team 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.