Last active
March 4, 2024 17:54
-
-
Save UbuntuEvangelist/fb8985ec2583b3b7a879b5a6a3c667ff to your computer and use it in GitHub Desktop.
Edit php.ini Linux
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
added tags