🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.php
2 messages
2 total messages Started by Jivanmukta Fri, 21 Apr 2023 16:46
php -v pokazuje 5.6 a phpinfo 8.2
#232611
Author: Jivanmukta
Date: Fri, 21 Apr 2023 16:46
30 lines
1825 bytes
Mam na moim Ubuntu 22 dwie wersje php: 5.6 i 8.2. Przełączam się między 
nimi skryptami:

set-php5.sh:

stop apache2ctl stop
sudo a2dismod php8.2
sudo a2enmod php5.6
sudo update-alternatives --set php /usr/bin/php5.6
sudo update-alternatives --set phar /usr/bin/phar5.6
sudo update-alternatives --set phar.phar /usr/bin/phar.phar5.6
sudo update-alternatives --set phpize /usr/bin/phpize5.6
sudo update-alternatives --set php-config /usr/bin/php-config5.6
sudo apache2ctl start

set-php8.sh:

sudo apache2ctl stop
sudo a2dismod php5.6
sudo a2enmod php8.2
sudo update-alternatives --set php /usr/bin/php8.2
sudo update-alternatives --set phar /usr/bin/phar8.2
sudo update-alternatives --set phar.phar /usr/bin/phar.phar8.2
sudo update-alternatives --set phpize /usr/bin/phpize8.2
sudo update-alternatives --set php-config /usr/bin/php-config8.2
sudo apache2ctl start

Problem jest taki:
przy wybranym php 8.2 po wywołaniu set-php5.sh polecenie php -v pokazuje 
mi 5.6 a phpinfo nadal 8.2. Dlaczego i co z tym zrobić?
Re: php -v pokazuje 5.6 a phpinfo 8.2
#232612
Author: Roman Tyczka
Date: Fri, 21 Apr 2023 19:14
11 lines
1420 bytes
On 21.04.2023 18:46, Jivanmukta wrote:
> Problem jest taki:
> przy wybranym php 8.2 po wywołaniu set-php5.sh polecenie php -v pokazuje 
> mi 5.6 a phpinfo nadal 8.2. Dlaczego i co z tym zrobić?

Zacząć używać dockera? I przestać się kurwa kopać z problemami nie 
dotykającymi programistów :-)

-- 
pzdr
Roman
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads