Lesson 2.1: Requirements for a training machine
Most lost time in a hands-on course is lost in the first half hour, on a laptop that lacks one PHP extension. This lesson gives the trainer the exact requirements of Exponential 6 and the commands to check a machine in two minutes, so the check happens days before the course, not during it.
At a glance
| Course | Train the trainer |
| Module | Module 2: Building the training lab |
| Duration | 40 minutes (15 presenting, 25 exercise) |
| Level | Intermediate |
| Audience | Trainers who prepare labs; administrators who help them |
| Prerequisites | A terminal on the machine to check; basic command-line use |
Learning objectives
After this lesson, learners can:
- state the PHP version Exponential needs, and the higher one Velocity needs;
- list the PHP extensions the setup checks treat as critical;
- check a machine with
php -vandphp -mand read the result; - write a one-page pre-course checklist for learners.
Trainer's notes
How to present it
- Show the checklist table of Requirements, 2.1
(5 minutes). The key numbers: PHP 8.0 minimum for Exponential, and for Exponential Velocity with
sockets; SQLite 3 needs no database server; Composer 2.x. - Go through the required extensions (5 minutes):
dom,libxml,simplexml,xsl,mbstring,iconv,intl,pcre,json,reflection,spl,session,zlib, one database extension (for a lab:sqlite3), andgdor ImageMagick'sconvert. - Show
php -mon your own machine and find two of them in the list (2 minutes). - Explain why SQLite is the right database for a class (3 minutes): no server, no password, one file per installation, and it is the first database in the official order of preference.
Common questions
Windows laptops? Check Operating system support for what the operating system has to provide. If you are unsure, prepare a fallback: a pre-installed copy per learner on a machine you control.
Do learners need Velocity? No. PHP's built-in server, which Velocity drives as its php engine, is enough for a
lab. Velocity's qbix engine needs PHP 8.0 or later (from release 0.0.4.54) and sockets.
Which php.ini values matter? memory_limit 64M or more, max_execution_time 30, date.timezone set,
file_uploads on, allow_url_fopen on.
Pitfalls
- Two PHPs. The command-line PHP and the web server's PHP can differ. For a lab served by the built-in server, only the command-line PHP matters.
intlandxslmissing. These are the two most often missing on fresh systems; the setup check does not continue without them.- No
date.timezone. Set it inphp.inibefore the course.
Hands-on exercise
Check one machine: your laptop, a learner's laptop or the training server.
- Open a terminal and run
php -v. Note the version (it must be 8.0 or later; 8.1 or later if you will use the Velocityqbixengine). - Run
php -mand compare the output with the required list above. Write down every missing extension. - Run
php -i | grep -E 'memory_limit|max_execution_time|date.timezone|file_uploads|allow_url_fopen'and compare the values with the trainer's notes. - Run
composer --versionandgit --version. Both must answer. - If an Exponential checkout with Velocity is already on the machine, run
php bin/php/console exp:velocity ext checkin its root and read theoklines. - Write a learner checklist of no more than ten lines: PHP version, the extensions, the
php.inivalues, Composer, Git, and where to ask for help before the course.
Expected result
- A list of the machine's PHP version, missing extensions (ideally none) and
php.inivalues. - A learner checklist of ten lines or fewer that a learner can follow alone.
- The trainer reviews: are
intl,xslandsqlite3on the list? Is the PHP minimum right?
Quiz
- What is the minimum PHP version for Exponential 6, and for Velocity?
- Name four PHP extensions the setup's critical tests require.
- Why is SQLite the usual choice for a training lab?
- Which command lists the PHP extensions of the command-line PHP?
Answers
- PHP 8.0 for Exponential, and for Velocity with
sockets(Requirements). - Any four of
dom,xsl,mbstring,iconv,intl,session,zlib, a database extension,gd(or ImageMagick). - No database server and no password are needed; each installation is one file; it is the default of
exp:install. php -m.
Further reading
- Requirements: the complete chapter.
- Operating system support: what each operating system has to provide.
- Database support: the databases and their order of preference.
Related pages
- Module 2: Building the training lab
- Train the trainer: course overview
- Trainers: start here
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.