cancel
Showing results for 
Search instead for 
Did you mean: 

Alma9 XAMPP (LAMPP) Apache httpd using wrong php - getting ready to install Magento CE 2.4.7

Alma9 XAMPP (LAMPP) Apache httpd using wrong php - getting ready to install Magento CE 2.4.7

I have installed and setup php via the Remi Repo and when I run the command which php, php -info it shows that the system is using the correct php8.3 that I installed and setup.  But when I run a phpinfo.php file on the apache localhost it shows that Apache is still using the version that was installed with LAMPP.

System php - php83:     /opt/remi/php83/root/usr/bin/php

System php.ini:  /etc/opt/remi/php83/php.ini

How do I get my Apache httpd server to use this php and its ini file?

Apache is using the following

PHP version: 8.2.12

php.ini: /opt/lampp/etc/

 

The php executable located in /usr/bin/php is a shortcut that eventually leads to the php83 executable. I don't understand where the php executable is even located that Apache is using, I have looked through all the directories and can only find the Remi ones I installed. 

2 REPLIES 2

Re: Alma9 XAMPP (LAMPP) Apache httpd using wrong php - getting ready to install Magento CE 2.4.7

Hello @ellenmainsbf63,

 

XAMPP/LAMPP comes with their own PHP versions and I believe you are changing php version in a way that it is only applicable on CLI commands, you may need to install different XAMPP/LAMPP with correct PHP version or you can setup those services separately without XAMPP, you will have more control over things if you install them separately.

But with default PHP version comes with XAMPP/LAMPP, there are less chances to change the version of PHP without changing the XAMPP installation.

 

I hope it helps !

Problem Solved ? Click on 'Kudos' & Accept as Solution ! Smiley Happy

Re: Alma9 XAMPP (LAMPP) Apache httpd using wrong php - getting ready to install Magento CE 2.4.7

I have rolled my server back to fresh install and this time I did not install lampp. I have learned enough in the last two weeks to install the individual components individually. This time my install had a fee errors that I was able to resolve on my own. The installation was successful and I can run commands on the store bin/Magento and they all work but I can not open the store via a web browser and that means I can’t view the admin URI either.

Ellen