Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Run on virtual drive

Featured Replies

If I use either these options:

run_on_drive_w.bat

disk_start_stop.vbs

 

Then Apache crashes.

Reason appears to be:

What should be "w:/" in the httpd.conf file is entered as "w://" throughout the file.

 

(temporary work-around) Works if I do this:

- stop Apache (Hit "Stop Apache" button in the program window)

- replace all "w://" with "w:/" in the conf file

- hit "Start Apache"

 

--------

also, line 48 of disk_start_stop.vbs has an apostrophe missing before the comment

 

------

using v8.4.0

:)

 

 

Excerpt from /alt_diag/run_on_virtual_drive/read_me.txt

If you wish to run The Uniform Server from a folder containing spaces in its path.

 

Option 1:

Copy files run_on_drive_w.bat and remove_drive_w.bat to folder UniServer.

To start the servers from folder UniServer, double click file run_on_drive_w.bat

 

Using this file creates a virtual drive named W with folder UniServer mapped to

its root (top level). This eliminates spaces at the expense of dedicating a

drive letter.

 

Option 2:

Copy file disk_start_stop.vbs to folder UniServer.

 

To start servers from folder UniServer, double click file disk_start_stop.vbs

A list of available drive letters is displayed. Either use the default letter

or enter one of these available drive letters. Click OK, which creates a virtual

drive and runs the servers.

 

Note 1:

The above methods are suitable only for running servers as a standard program.

Do NOT use these methods when installing servers as a service.

  • Author

More trouble.

 

After edit of the httpd.conf file to change w:// to w:/, and restarting UniServer using "run_as_program" option (which worked fine prior to using the drive w option), that option now fails to get Apache working (Apache crashes though continues to show up as started).

 

Now also, i noticed, using "run_as_program" doesn't change the w:/ references to c:/ etc. in the httpd.conf file (even after doing "remove_drive_w.bat" first). I then did "run_as_program" through a fresh install of UniServer in a separate folder, but no go there either, though the httpd.conf file in that install has the c:/ and not w:/ references.

 

If I run it using "run_on_drive_w", Apache seems to work fine then.

 

Will see later if a reboot re-sets things to normal... but what's going on otherwise?

First off, thanks for pointing out the error on line 48 of disk_start_stop.vbs.

 

Second, I found that the servers start properly using "run_on_drive_w.bat" without any changes. Running "remove_drive_w.bat" worked correctly as well. I copied them to the UniServer directory as specified in the instructions. I also didn't need to do any editing of httpd:conf.

 

Using disk_start_stop.vbs appears to work properly as well, except that I found it sometimes leaves mshta.exe running.

The likely problem is that when removing the virtual drive, the mshta.exe is left in limbo, and doesn't terminate, which causes any subsequent scripts to not work. I don't know of a workaround for this, except to use the Task Manager to kill it off.

 

Note that the server path (W:\ in this case) is tracked in uni_con\config_tracker.ini and MUST match all the path statements. If it's out of sync, you end up wit a broken server stack. So editing the httpd.conf to change the paths was probably not a good idea....

 

Regards,

BobS

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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.