How to create a batch file to run apache for API calls from Lectora

lbryan-4843
Community Member Posts: 12 ☆ Roadie ☆
I have several APIs being called from Lectora which require apache and I am using XAMPP. To start apache without user intervention, I have a batch file:
@echo off
set START_SERVER="C:\xampp\apache\bin\httpd.exe"
call %START_SERVER%
However, the httpd.exe command window remains open on to on the screen. I have tried the -k after the httpd.exe and nothing.
Does anyone have a suggestion or have done something similar?
Thanks.
@echo off
set START_SERVER="C:\xampp\apache\bin\httpd.exe"
call %START_SERVER%
However, the httpd.exe command window remains open on to on the screen. I have tried the -k after the httpd.exe and nothing.
Does anyone have a suggestion or have done something similar?
Thanks.
Tagged:
Answers
-
CarlJFink Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 116 ♦ Idol ♦Why are you running Apache locally? Unless you're creating an Apache course, that seems odd. The normal model is for Apache to run on the server.
Doesn't this model assume the learner has Apache installed on their computer?
If you mean that the batch file is on the server ... why would you start Apache from a batch file? It should always be running, unless (again) this is a very weird use case. -
Hi Carl,
I have a Lectora title that runs offline (in a tablet) and js in actions call APIs to read and write data into SQLite. The APIs are in php so I have installed XAMPP to run Apache for the APIs to work.
Apache is install in the tablet and I just need to start XAMMP Apache when the tablet is powered up, and thus the batch file. Everything runs except that the batch code keeps the command window open.
I would like: tablet powers up, batch file is run at start-up, Apache runs, all cmd windows close, and the app open.
Is the closing of the cmd window possible? I don't want the user to have to close it. -
CarlJFink Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 116 ♦ Idol ♦
-
-
-
CarlJFink Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 116 ♦ Idol ♦
Categories
- 35.8K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 5 The Training Arcade®
- 5 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products