You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/els-for-languages/php/README.md
+33-9Lines changed: 33 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -238,27 +238,51 @@ To confirm PHP is working:
238
238
239
239
Depending on your ELS PHP usage purpose, additional configurations may be required. Here are some commonly useful configurations.
240
240
241
-
<!--
242
-
### Extensions
241
+
#### Change Default PHP Version
243
242
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:
246
244
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:**
249
273
250
274
<CodeWithCopy>
251
275
252
276
```text
253
-
extension=curl
277
+
;extension=curl
254
278
extension=gd2
255
-
extension=mbstring
279
+
;extension=mbstring
256
280
extension=mysqli
257
281
extension=pdo_mysql
258
282
```
259
283
260
284
</CodeWithCopy>
261
-
-->
285
+
262
286
#### Increase Upload/Memory Limits
263
287
264
288
If you're integrating PHP with applications like WordPress, you might need to increase memory and upload size limits:
0 commit comments