https://github.com/ageborn-dev/plesk-php-ini
This script `configure_php.sh` modifies the `php.ini` files for all installed PHP versions on a Plesk server to optimize performance for WordPress sites
https://github.com/ageborn-dev/plesk-php-ini
Last synced: about 2 months ago
JSON representation
This script `configure_php.sh` modifies the `php.ini` files for all installed PHP versions on a Plesk server to optimize performance for WordPress sites
- Host: GitHub
- URL: https://github.com/ageborn-dev/plesk-php-ini
- Owner: ageborn-dev
- License: gpl-3.0
- Created: 2023-05-31T11:43:41.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-31T15:37:13.000Z (about 3 years ago)
- Last Synced: 2025-03-21T09:47:48.165Z (about 1 year ago)
- Language: Shell
- Size: 17.6 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# :globe_with_meridians: PHP Configuration Script
This script `configure_php.sh` modifies the `php.ini` files for all installed PHP versions on a Plesk server to optimize performance for WordPress sites.
---
## :rocket: Usage
1. **Download the script:**
```bash
wget https://github.com/GeorgeChatzitaskos/raw/main/plesk-php-ini.sh
```
2. **Make the script executable:**
```bash
chmod +x plesk-php-ini.sh
```
3. **Run the script as root:**
```bash
sudo ./plesk-php-ini.sh
```
---
## :bulb: What does this script do?
This script makes changes to PHP settings like `max_execution_time`, `memory_limit`, `post_max_size`, `upload_max_filesize`, `max_input_vars`, and various `opcache` settings. A backup of the original `php.ini` file is created before any changes are applied.
---
## :warning: Disclaimer
Always test scripts in a non-production environment first. Monitor your server's performance and error logs after making changes. Adjust as necessary based on your specific circumstances.