Skip to content

Commit 1b3aaa2

Browse files
committed
updated PHP ELS:Windows - Additional configurations
1 parent 500169b commit 1b3aaa2

File tree

1 file changed

+33
-9
lines changed

1 file changed

+33
-9
lines changed

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

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -238,27 +238,51 @@ To confirm PHP is working:
238238
239239
Depending on your ELS PHP usage purpose, additional configurations may be required. Here are some commonly useful configurations.
240240
241-
<!--
242-
### Extensions
241+
#### Change Default PHP Version
243242
244-
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.
245-
To enable the functionality you need, update the `php.ini` file:
243+
If you have multiple PHP versions installed and want to change the default, update your *System Path* environment variable:
246244
247-
1. Open the `php.ini` file in an editor of your choice (e.g. Notepad).
248-
2. Uncomment necessary extensions by removing the `;` like so:
245+
1. Open **Settings > System > About** in the Start menu.
246+
2. Click **Advanced system settings**.
247+
3. Click on **Environment Variables**.
248+
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:
253+
254+
<CodeWithCopy>
255+
256+
```text
257+
php -v
258+
```
259+
260+
</CodeWithCopy>
261+
262+
#### Extensions
263+
264+
To enable or disable extensions in your installed PHP version:
265+
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.
271+
272+
**Example:**
249273
250274
<CodeWithCopy>
251275
252276
```text
253-
extension=curl
277+
;extension=curl
254278
extension=gd2
255-
extension=mbstring
279+
;extension=mbstring
256280
extension=mysqli
257281
extension=pdo_mysql
258282
```
259283
260284
</CodeWithCopy>
261-
-->
285+
262286
#### Increase Upload/Memory Limits
263287
264288
If you're integrating PHP with applications like WordPress, you might need to increase memory and upload size limits:

0 commit comments

Comments
 (0)