Skip to content

Commit 333975f

Browse files
authored
Merge pull request #143 from sboldyreva/php-windows
PHP Windows instructions
2 parents 346b432 + 11e6fce commit 333975f

File tree

5 files changed

+89
-0
lines changed

5 files changed

+89
-0
lines changed
22.5 KB
Loading
26.1 KB
Loading
115 KB
Loading
13.9 KB
Loading

docs/els-for-languages/README.md

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,95 @@ To install all versions at the same time, it is necessary to use the alt-php met
151151
apt-get install alt-php
152152
```
153153

154+
### Installation Instructions for Windows
155+
156+
#### Get user credentials
157+
158+
* Obtain the required license to get access to the service.
159+
* Contact [[email protected]](mailto:[email protected]) to receive instructions for generating your unique access link (tokenized URL). Anonymous access is restricted.
160+
161+
#### Download TuxCare PHP Windows
162+
163+
* Follow the instructions provided by [[email protected]](mailto:[email protected]) to create your secure download link.
164+
* Use this link to download the latest version of PHP.
165+
* Extract the downloaded archive (ZIP file) to a preferred directory, for example`C:\PHP`.
166+
* 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.
167+
168+
#### Configure PHP
169+
170+
Configure TuxCare ELS PHP for Windows to work as intended on Windows:
171+
172+
* Navigate to your PHP directory (e.g. `C:\PHP`).
173+
* Find and rename the `php.ini-development` file to `php.ini`. This is the main configuration file PHP uses when running.
174+
175+
#### Additional configurations (optional)
176+
177+
Depending on your ELS PHP usage purpose, additional configurations may be required. Here are some commonly useful configurations.
178+
179+
#### Extensions
180+
181+
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.
182+
To enable the functionality you need, update the `php.ini` file:
183+
* Open the `php.ini` file in an editor of your choice (e.g. Notepad).
184+
* Uncomment necessary extensions by removing `;`:
185+
```
186+
extension=curl
187+
extension=gd2
188+
extension=mbstring
189+
extension=mysqli
190+
extension=pdo_mysql
191+
```
192+
193+
#### Increase Upload/Memory Limits
194+
If you're integrating PHP with applications like WordPress, you might need to increase memory and upload size limits:
195+
* Open the `php.ini` file in an editor of your choice (e.g. Notepad).
196+
* Set the limits as needed, e.g:
197+
```
198+
upload_max_filesize=40M
199+
post_max_size=40M
200+
memory_limit=256M
201+
```
202+
203+
#### Add PHP to System Path
204+
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.
205+
* Right-click **This PC** and select **Properties**, or search for **Settings > System > About** in the Start menu.
206+
* Click **Advanced system settings**.
207+
208+
![image](/images/php-windows-advanced-settings.png)
209+
210+
* Click on **Environment Variables**.
211+
212+
![image](/images/php-windows-environment-variables.png)
213+
214+
* Under *System variables*, find **Path** and click **Edit**.
215+
216+
![image](/images/php-windows-add-path.png)
217+
218+
* Click **New** and add your PHP `C:\PHP` directory.
219+
220+
![image](/images/php-windows-add-path-2.png)
221+
222+
* Click **OK** to save the changes.
223+
224+
#### Validate the Installation
225+
226+
To confirm PHP is working:
227+
* Open **Command Prompt**, **PowerShell**, or **Terminal**.
228+
* Run the following command:
229+
```
230+
php -v
231+
```
232+
You should see an output like:
233+
```
234+
PHP 7.4.33 (cli) (built: Mar 14 2025 04:59:07) ( NTS Visual C++ 2017 x64 )
235+
Copyright (c) The PHP Group
236+
Zend Engine v3.4.0, Copyright (c) Zend Technologies
237+
```
238+
239+
#### Example Use Cases
240+
241+
You can integrate your 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).
242+
154243
### OVAL data
155244

156245
#### Introduction

0 commit comments

Comments
 (0)