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 -y
sudo update-alternatives --set php /usr/bin/php8.2
sudo apt install libapache2-mod-php8.2
sudo a2dismod php7.4
sudo a2enmod php8.2
sudo systemctl restart apache2
sudo apt install python-software-properties
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php7.3
sudo 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-mysql
sudo update-alternatives --set php /usr/bin/php7.3
sudo a2dismod php7.0
sudo a2enmod php7.3
sudo systemctl restart apache2
php -i | grep "Loaded Configuration File"
sudo nano /etc/php/7.3/apache2/php.ini
sudo nano /etc/php/7.3/cli/php.ini
max_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-common
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo 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 -y
sudo update-alternatives --set php /usr/bin/php7.4
sudo apt install libapache2-mod-php7.4
sudo a2dismod php7.3
sudo a2enmod php7.4
sudo systemctl restart apache2
sudo 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-mysql
sudo 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 -y
sudo update-alternatives --set php /usr/bin/php8.1
sudo apt install libapache2-mod-php8.1
sudo a2dismod php7.4
sudo a2enmod php8.1
sudo systemctl restart apache2
sudo apt-get remove apache2 php7.0
sudo apt-get update
sudo apt-get install apache2
sudo apt-get install php7.0 php7.0-mcrypt php7.0-pgsql php7.0-gd php7.0-intl php7.0-xsl php7.0-mbstring
sudo apt-get install php libapache2-mod-php
sudo nano /etc/apache2/apache2.conf
serverName localhost
sudo systemctl restart apache2
sudo service apache2 restart
https://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.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer
composer "--ansi" "--no-interaction" "update" "--no-dev"
sudo chown -R $USER $HOME/.composer
sudo phpenmod gd
sudo apt-get install php7.0-gd
sudo apt-get install php7.0-intl
sudo apt-get install php7.0-xsl
sudo apt-get install php7.0-mbstring
sudo apt-get install php7.0-curl
##ver gd
php --info | grep -i gd
composer require phpmailer/phpmailer
sudo systemctl restart apache2
sudo service apache2 restart
sudo a2enmod rewrite
service apache2 restart
sudo 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.0
sudo a2enmod php7.2
https://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.ini
max_input_vars = 6000
sudo service apache2 restart
#Valor padrão max_execution_time = 30
sudo nano /etc/php/7.0/apache2/php.ini
max_execution_time = 600
sudo service apache2 restart
sudo nano /etc/php/7.0/apache2/php.ini
post_max_size = 2560M upload_max_filesize = 2560M
sudo service apache2 restart