XAMPP For Linux - PHP Version

General Tech Bugs & Fixes 2 years ago

0 1 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (1)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

I installed LAMPP by downloading installer and running (I already had older version installed):

chmod 755 xampp-linux-*-installer.run

sudo ./xampp-linux-*-installer.run

Once I start LAMPP:

sudo /opt/lampp/lampp start

I get the following output:

Starting XAMPP for Linux 7.3.2-0...
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.

I would assume that PHP version is 7.3.2 But when I run:

sudo /opt/lampp/bin/php -v

I get the following:

PHP 7.1.15 (cli) (built: Mar 13 2018 23:32:04) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2018 Zend Technologies

Can someone, please, explain me what's going on here and how can I run latest (7.3.2) PHP version in LAMPP

Also, when trying:

ls -l /opt/lampp/bin/php

I get the following output:

lrwxrwxrwx 1 root root 10 апр 10  2018 /opt/lampp/bin/php -> php-7.1.15

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.