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: 67 ☆ Superstar ☆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: 67 ☆ Superstar ☆
-
-
-
CarlJFink Community Member, Lectora® Accessibility Group (LAUG) Member, eLearning Brothers® Partner Posts: 67 ☆ Superstar ☆
Categories
- 4.8K All Categories
- 6 New Feature Releases
- The Training Arcade®
- Arcades™
- 125 ✫ Announcements
- 9 ✪ Contests
- 34.1K eLearning Brothers® Products
- 33.6K Lectora®
- 31.6K Lectora Discussions
- 1.9K Lectora Feature Requests
- 71 Lectora User Groups
- 17 Asset Library
- 10 AssetLibrary Discussions
- 7 AssetLibrary Feature Requests
- 305 CenarioVR®
- 179 CenarioVR Discussions
- 126 CenarioVR Feature Requests
- 40 Rockstar Learning Platform®
- 28 Rockstar Learning Platform Discussions
- 12 Rockstar Learning Platform Feature Requests
- 4 Off-the-Shelf Course Library
- 3 Off-the-Shelf Course Library Discussions
- 1 Off-the-Shelf Course Library Feature Requests
- 114 CourseMill®
- 107 CourseMill Discussions
- 44 ReviewLink®
- 32 ReviewLink Discussions
- 12 ReviewLink Suggestions
- 2 The Training Arcade®
- 1 The Training Arcade Discussions
- 1 The Training Arcade Feature Requests
- 10 Additional Learning Products
- 2 Adobe®
- 4 Articulate®
- 2 Camtasia®
- Docebo®
- 1 iSpring®
- 1 Microsoft® PowerPoint®
- 932 All Things eLearning
- 5 Course Development Showcase
- 1 eLearning Brothers® Downloads
- 1 Compliance Training
- 11 eLearning Development
- eLearning Game Design
- 7 Instructional Design
- 545 Learning Management System (LMS) Integration
- 3 Mobile Learning
- 22 Visual Design
- 331 Web Accessibility
- 1.2K ♪ The Green Room
- 8 ♡ Community Feedback
- 7 Community Tips