OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Switch to php8.2 in .htaccess not working

  • Thread starter Thread starter user24710148
  • Start date Start date
U

user24710148

Guest
I just try to switch from php7.4 to php8.2 changing .httaccess like this:

Code:
DirectoryIndex index.php
AddHandler application/x-httpd-php82 .php
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>

I am not succeeding. This is output of

Code:
sudo update-alternatives --config php

enter image description here

.htaccess is stored in same folder info.php is stored. Why is php8.2 not version being used for? I want to switch between different php versions depending on code being used for different subdomains. This is output of info.php:

enter image description here

Here is an extraction of Vhost:

Code:
<Directory /var/www/testshop.leitner-sales.at>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
<p>I just try to switch from php7.4 to php8.2 changing .httaccess like this:</p>
<pre><code>DirectoryIndex index.php
AddHandler application/x-httpd-php82 .php
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
</code></pre>
<p>I am not succeeding. This is output of</p>
<pre><code>sudo update-alternatives --config php
</code></pre>
<p><a href="https://i.sstatic.net/820Pzr9T.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/820Pzr9T.png" alt="enter image description here" /></a></p>
<p>.htaccess is stored in same folder info.php is stored. Why is php8.2 not version being used for? I want to switch between different php versions depending on code being used for different subdomains. This is output of info.php:</p>
<p><a href="https://i.sstatic.net/t4WCcVyf.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/t4WCcVyf.png" alt="enter image description here" /></a></p>
<p>Here is an extraction of Vhost:</p>
<pre><code><Directory /var/www/testshop.leitner-sales.at>
Options -Indexes +FollowSymLinks +MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
</code></pre>
Continue reading...
 

Latest posts

A
Replies
0
Views
1
Amar Kalabić
A
Top