- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 !

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Alma9 XAMPP (LAMPP) Apache httpd using wrong php - getting ready to install Magento CE 2.4.7
Ellen