sudo apt install php8.2-pgsql php8.2-gd php8.2-intl php8.2-xsl php8.2-mbstring php8.2-curl php8.2-cli php8.2-xml php8.2-opcache php8.2-gmp php8.2-zip php8.2-mysql php8.2-common php8.2-xmlrpc php8.2-imagick php8.2-dev php8.2-imap php8.2-soap php8.2-pcov php8.2-xdebug -ysudo update-alternatives --set php /usr/bin/php8.2sudo apt install libapache2-mod-php8.2sudo a2dismod php7.4sudo a2enmod php8.2sudo systemctl restart apache2sudo apt install python-software-propertiessudo add-apt-repository ppa:ondrej/phpsudo apt updatesudo apt install php7.3sudo apt install php7.3-pgsql php7.3-gd php7.3-intl php7.3-xsl php7.3-mbstring php7.3-curl php7.3-cli php7.3-json php7.3-xml php7.3-opcache php7.3-gmp php7.3-zip php7.3-mysqlsudo update-alternatives --set php /usr/bin/php7.3sudo a2dismod php7.0sudo a2enmod php7.3sudo systemctl restart apache2php -i | grep "Loaded Configuration File"sudo nano /etc/php/7.3/apache2/php.inisudo nano /etc/php/7.3/cli/php.inimax_input_vars = 6000
sudo service apache2 restart(https://www.cloudbooklet.com/upgrade-php-version-to-php-7-4-on-ubuntu/)
sudo apt install software-properties-commonsudo add-apt-repository ppa:ondrej/phpsudo apt updatesudo apt install php7.4-common php7.4-pgsql php7.4-gd php7.4-intl php7.4-xsl php7.4-mbstring php7.4-curl php7.4-cli php7.4-json php7.4-xml php7.4-opcache php7.4-gmp php7.4-zip php7.4-mysql php7.4-xmlrpc php7.4-imagick php7.4-dev php7.4-imap php7.4-soap -ysudo update-alternatives --set php /usr/bin/php7.4sudo apt install libapache2-mod-php7.4sudo a2dismod php7.3sudo a2enmod php7.4sudo systemctl restart apache2sudo apt install php8.1-pgsql php8.1-gd php8.1-intl php8.1-xsl php8.1-mbstring php8.1-curl php8.1-cli php8.1-xml php8.1-opcache php8.1-gmp php8.1-zip php8.1-mysqlsudo apt install php8.1-common php8.1-mysql php8.1-xml php8.1-xmlrpc php8.1-curl php8.1-gd php8.1-imagick php8.1-cli php8.1-dev php8.1-imap php8.1-mbstring php8.1-opcache php8.1-soap php8.1-zip php8.1-intl -ysudo update-alternatives --set php /usr/bin/php8.1sudo apt install libapache2-mod-php8.1sudo a2dismod php7.4sudo a2enmod php8.1sudo systemctl restart apache2sudo apt-get remove apache2 php7.0sudo apt-get updatesudo apt-get install apache2sudo apt-get install php7.0 php7.0-mcrypt php7.0-pgsql php7.0-gd php7.0-intl php7.0-xsl php7.0-mbstringsudo apt-get install php libapache2-mod-phpsudo nano /etc/apache2/apache2.confserverName localhost
sudo systemctl restart apache2sudo service apache2 restarthttps://getcomposer.org/download/ https://www.phpmaranhao.com.br/tag/instalando-o-composer/
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"php composer-setup.phpphp -r "unlink('composer-setup.php');"sudo mv composer.phar /usr/local/bin/composercomposer "--ansi" "--no-interaction" "update" "--no-dev"sudo chown -R $USER $HOME/.composersudo phpenmod gdsudo apt-get install php7.0-gdsudo apt-get install php7.0-intlsudo apt-get install php7.0-xslsudo apt-get install php7.0-mbstringsudo apt-get install php7.0-curl##ver gd
php --info | grep -i gdcomposer require phpmailer/phpmailersudo systemctl restart apache2sudo service apache2 restartsudo a2enmod rewriteservice apache2 restartsudo nano /etc/apache2/apache2.conf<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted E altera para:
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted
sudo service apache2 restart
sudo a2dismod php7.0sudo a2enmod php7.2https://thishosting.rocks/install-php-on-ubuntu/ https://jakelprice.com/article/how-to-upgrade-from-php-70-to-php-71
sudo nano /etc/php/7.0/apache2/php.inimax_input_vars = 6000
sudo service apache2 restart#Valor padrão max_execution_time = 30
sudo nano /etc/php/7.0/apache2/php.inimax_execution_time = 600
sudo service apache2 restartsudo nano /etc/php/7.0/apache2/php.inipost_max_size = 2560M upload_max_filesize = 2560M
sudo service apache2 restart