Skip to content

Instantly share code, notes, and snippets.

@UbuntuEvangelist
Last active March 4, 2024 17:54
Show Gist options
  • Save UbuntuEvangelist/fb8985ec2583b3b7a879b5a6a3c667ff to your computer and use it in GitHub Desktop.
Save UbuntuEvangelist/fb8985ec2583b3b7a879b5a6a3c667ff to your computer and use it in GitHub Desktop.
Edit php.ini Linux
sudo apt update && sudo apt upgrade
sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https
LC_ALL=C.UTF-8 sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php8.1
# Check active php version php -v
php -v
# Check system php version
php --version
# To install another php version same machine
sudo apt install php8.2
# Switch Default PHP Version
sudo update-alternatives --config php
sudo nano /etc/php/8.1/apache2/php.ini
#Find each line using ctrl+w terminal and hit enter. After update save and exit using ctrl+s and ctrl+x
file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 1024M
upload_max_filesize = 1024M
max_execution_time = 3600
date.timezone = GMT+6
#php.ini #ubuntu
@UbuntuEvangelist
Copy link
Author

added tags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment