Skip to content

Commit bb42ca3

Browse files
authored
Merge pull request #168 from sboldyreva/php-installer
Update PHP Windows instructions
2 parents 54414aa + 2937513 commit bb42ca3

File tree

6 files changed

+116
-54
lines changed

6 files changed

+116
-54
lines changed
21.9 KB
Loading
12.8 KB
Loading
19.4 KB
Loading
19.8 KB
Loading

docs/.vuepress/routes.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,8 @@
2626
"/els-for-languages/php/#rpm-based-systems": "/els-for-languages/php/#installation-instructions-for-linux",
2727
"/els-for-languages/php/#deb-based-systems": "/els-for-languages/php/#installation-instructions-for-linux",
2828
"/els-for-languages/php/#introduction": "/els-for-languages/php/#oval-data",
29-
"/extended-lifecycle-support": "/els-for-os/"
29+
"/extended-lifecycle-support": "/els-for-os/",
30+
"/els-for-languages/php/#download-tuxcare-php-windows": "/els-for-languages/php/#download-and-install-tuxcare-php-windows",
31+
"/els-for-languages/php/#configure-php": "/els-for-languages/php/#download-and-install-tuxcare-php-windows",
32+
"/els-for-languages/php/#add-php-to-the-system-path": "/els-for-languages/php/#download-and-install-tuxcare-php-windows"
3033
}

docs/els-for-languages/php/README.md

Lines changed: 112 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Endless Lifecycle Support (ELS) for PHP from TuxCare provides security fixes for
1212
| AlmaLinux | RPM | 8.x, 9.x | 5.2, 5.3, 5.4, 5.5, 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 |
1313
| Ubuntu | DEB | 16.04, 18.04, 20.04, 22.04, 24.04 | 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 |
1414
| Debian | DEB | 10, 11, 12 | 5.6, 7.0, 7.1, 7.2, 7.3, 7.4, 8.0, 8.1, 8.2, 8.3, 8.4 |
15-
| Windows | - | Windows Server 2019, 2022, 2025 | 5.6, 7.4 |
15+
| Windows | - | Windows Server 2019, 2022, 2025 | 5.6, 7.2, 7.3, 7.4 , 8.0, 8.1 |
1616

1717
Other distros and architectures upon request.
1818

@@ -157,111 +157,170 @@ Each version of PHP can be installed individually or all versions at once.
157157
1. Obtain the required license to get access to the service.
158158
2. Contact [[email protected]](mailto:[email protected]) to receive instructions for generating your unique access link (tokenized URL). Anonymous access is restricted.
159159

160-
### Download TuxCare PHP Windows
160+
### Download and Install TuxCare PHP Windows
161+
162+
TuxCare provides a Windows Installer that allows you to install and manage ELS PHP versions.
161163

162164
1. Follow the instructions provided by [[email protected]](mailto:[email protected]) to create your secure download link.
163-
2. Use this link to download the latest version of PHP.
164-
3. Extract the downloaded archive (ZIP file) to a preferred directory, for example`C:\PHP`.
165-
4. PHP doesn't have a traditional "installer" on Windows, it’s a portable application. Once you extract the files and set up a few things, it's ready to use.
165+
2. Use this link to download the latest version of the installer.
166+
3. Launch the installer. After the first run, it will appear under **Settings > Apps**.
167+
4. Provide you access credentials:
168+
* **Register** - if this is your first time using the installer or you're installing on a new system, choose the "Register" option. You’ll be asked to provide your license key or authentication token. You can also save your token for future use.
169+
170+
![image](/images/php-installer-token.png)
166171

167-
### Configure PHP
172+
* **Use previous token** - if you’ve already registered on this machine and chose to save your credentials, the installer will detect and use the saved token automatically. You won’t need to enter your credentials again unless the token is missing or expired.
168173

169-
Configure TuxCare ELS PHP for Windows to work as intended on Windows:
174+
5. Select a PHP version and tick the checkbox next to it. **Only 1 version can be installed per installation**.
175+
176+
![image](/images/php-installer-version.png)
170177

171-
1. Navigate to your PHP directory (e.g. `C:\PHP`).
172-
2. Find and rename the `php.ini-development` file to `php.ini`. This is the main configuration file PHP uses when running.
178+
:::tip
179+
If you already have a version installed, it will appear highlighted in green. When another version is selected, the installer will ask whether to **replace** the existing one or install it **alongside**.
180+
181+
![image](/images/php-installer-versions-2.png)
182+
:::
173183

174-
### Additional configurations (optional)
184+
6. Choose Installation Path. By default, the installer will use `C:\Program Files`. Click **Change** if you want to install to a different location.
185+
7. Click **Load** to fetch the required PHP archive. Once the archive is loaded, a list of available PHP modules will appear. Select the modules you need and click **Continue** to confirm.
175186

176-
Depending on your ELS PHP usage purpose, additional configurations may be required. Here are some commonly useful configurations.
187+
![image](/images/php-installer-load.png)
177188

178-
### Extensions
189+
8. During installation, the installer will create a folder with PHP configuration and selected modules, and add TuxCare PHP to the **System PATH** (advanced settings).
179190

180-
Many PHP features come as extensions and are disabled by default to keep PHP lightweight. TuxCare provides the required `.dll` files to support these extensions.
181-
To enable the functionality you need, update the `php.ini` file:
191+
<details>
192+
<summary>Click to see more</summary>
182193

183-
1. Open the `php.ini` file in an editor of your choice (e.g. Notepad).
184-
2. Uncomment necessary extensions by removing the `;` like so:
194+
1. Right-click **This PC** and select **Properties**, or search for **Settings > System > About** in the Start menu.
195+
2. Click **Advanced system settings**.
185196

186-
<CodeWithCopy>
197+
![image](/images/php-windows-advanced-settings.png)
187198

188-
```text
189-
extension=curl
190-
extension=gd2
191-
extension=mbstring
192-
extension=mysqli
193-
extension=pdo_mysql
194-
```
199+
3. Click on **Environment Variables**.
195200

196-
</CodeWithCopy>
201+
![image](/images/php-windows-environment-variables.png)
197202

198-
### Increase Upload/Memory Limits
203+
4. Under *System variables*, find **Path** and click **Edit**.
199204

200-
If you're integrating PHP with applications like WordPress, you might need to increase memory and upload size limits:
205+
![image](/images/php-windows-add-path.png)
201206

202-
1. Open the `php.ini` file in an editor of your choice (e.g. Notepad).
203-
2. Set the limits as needed, e.g:
207+
5. You will see your PHP `C:\PHP` directory added.
208+
209+
![image](/images/php-windows-add-path-2.png)
210+
</details>
211+
212+
9. Wait for the installation process to complete.
213+
214+
### Validate the Installation
215+
216+
To confirm PHP is working:
217+
218+
1. Open **Command Prompt**, **PowerShell**, or **Terminal**.
219+
2. Run the following command:
204220

205221
<CodeWithCopy>
206222

207223
```text
208-
upload_max_filesize=40M
209-
post_max_size=40M
210-
memory_limit=256M
224+
php -v
211225
```
212226
213227
</CodeWithCopy>
214228
215-
### Add PHP to the System Path
229+
You should see output like this:
216230
217-
Adding PHP to the system PATH lets you run the `php` command from a terminal window without typing its full location. This is useful for running scripts and using PHP with other tools.
231+
```text
232+
PHP 5.6.40 (cli) (built: May 30 2025 15:43:43)
233+
Copyright (c) 1997-2016 The PHP Group
234+
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
235+
```
218236
219-
1. Right-click **This PC** and select **Properties**, or search for **Settings > System > About** in the Start menu.
220-
2. Click **Advanced system settings**.
237+
### Additional configurations (optional)
221238
222-
![image](/images/php-windows-advanced-settings.png)
239+
Depending on your ELS PHP usage purpose, additional configurations may be required. Here are some commonly useful configurations.
223240
224-
3. Click on **Environment Variables**.
241+
#### Change Default PHP Version
225242
226-
![image](/images/php-windows-environment-variables.png)
243+
If you have multiple PHP versions installed and want to change the default, update your *System Path* environment variable:
227244
245+
1. Open **Settings > System > About** in the Start menu.
246+
2. Click **Advanced system settings**.
247+
3. Click on **Environment Variables**.
228248
4. Under *System variables*, find **Path** and click **Edit**.
249+
* Move the desired PHP version’s path to the top.
250+
* Remove or move down other PHP paths.
251+
5. Click OK and restart your terminal
252+
6. Verify the active PHP version by running:
229253
230-
![image](/images/php-windows-add-path.png)
254+
<CodeWithCopy>
231255
232-
5. Click **New** and add your PHP `C:\PHP` directory.
256+
```text
257+
php -v
258+
```
233259
234-
![image](/images/php-windows-add-path-2.png)
260+
</CodeWithCopy>
235261
236-
6. Click **OK** to save the changes.
262+
#### Extensions
237263
238-
### Validate the Installation
264+
To enable or disable extensions in your installed PHP version:
239265
240-
To confirm PHP is working:
266+
1. Navigate to your PHP installation directory, e.g. `C:\PHP` directory.
267+
2. Open the `php.ini` file in an editor of your choice (e.g. Notepad).
268+
3. Edit the list of extensions:
269+
* To enable an extension, remove the semicolon `;` at the beginning of the line.
270+
* To disable an extension, add a semicolon `;` at the beginning of the line.
241271
242-
1. Open **Command Prompt**, **PowerShell**, or **Terminal**.
243-
2. Run the following command:
272+
**Example:**
244273
245274
<CodeWithCopy>
246275
247276
```text
248-
php -v
277+
;extension=curl
278+
extension=gd2
279+
;extension=mbstring
280+
extension=mysqli
281+
extension=pdo_mysql
249282
```
250283
251284
</CodeWithCopy>
252285
253-
You should see output like:
286+
#### Increase Upload/Memory Limits
287+
288+
If you're integrating PHP with applications like WordPress, you might need to increase memory and upload size limits:
289+
290+
1. Open the `php.ini` file in an editor of your choice (e.g. Notepad).
291+
2. Set the limits as needed, e.g:
292+
293+
<CodeWithCopy>
254294
255295
```text
256-
PHP 7.4.33 (cli) (built: Mar 14 2025 04:59:07) ( NTS Visual C++ 2017 x64 )
257-
Copyright (c) The PHP Group
258-
Zend Engine v3.4.0, Copyright (c) Zend Technologies
296+
upload_max_filesize=40M
297+
post_max_size=40M
298+
memory_limit=256M
259299
```
260300
261-
### Example Use Cases
301+
</CodeWithCopy>
302+
303+
#### Example Use Cases
262304
263305
You can integrate PHP with other tools, for example, IIS or WordPress. For further details and documentation, refer to the [official PHP documentation](https://www.php.net/manual/en/index.php).
264306
307+
### Uninstallation
308+
309+
#### Uninstall a PHP version,
310+
311+
To uninstall a PHP version:
312+
313+
1. Manually delete the PHP installation directory (e.g., `C:\Program Files\TuxCare\php-version`).
314+
315+
2. Remove the PHP path from **System Path**.
316+
317+
#### Uninstall TuxCare Installer
318+
319+
To uninstall TuxCare Installer:
320+
321+
1. Open **Settings > Apps**.
322+
323+
2. Find *TuxCare Installer* and click **Uninstall** to remove it from the list of installed apps.
265324
266325
## OVAL data
267326

0 commit comments

Comments
 (0)