Jump to content
The Uniform Server Community
Sign in to follow this  

start_apache.bat error in miniserver

Recommended Posts

if the path to apache exe has blank spaces, the bat fails.

Fix: Add double quotes to path parameters


:'--- Start Apache

:wscript.echo " Starting Apache Server" 'Inform user

:strCmd1 = """" & US_APACHE_BIN & "\" & US_APACHE_EXE & """" 'Absolute path to exe

:strCmd2 = " -f """ & US_APACHE & """\conf\httpd.conf " 'Absolute path to config

:strCmd3 = " -d """ & US_APACHE & """" 'Set apache base path

Share this post

Link to post
Share on other sites

Yes, that will work for the MiniServer itself.


Normally, however, we dissuade people from using paths with spaces. The problem is that we don't know whether the apps they will be hosting will tolerate any spaces. As a result, the policy is to steer clear.




Share this post

Link to post
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.

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.

Sign in to follow this  

  • Create New...