Xampp как посмотреть версию php

Update PHP Version to PHP 8 In XAMPP On Windows

It provides all the steps required to update and upgrade the PHP version to PHP 8 in XAMPP on Windows 10.

XAMPP is a complete package to install the Apache Web Server, MySQL, PHP, Perl, FTP Server, and phpMyAdmin for Linux, Solaris, Windows, and Mac OS X. It also provides an interface to admin Apache Web Server, MySQL, and PHP. Though XAMPP is being released frequently, it might be required to use the most recent version of PHP till XAMPP include it in its distribution. This tutorial provides all the steps required to update or upgrade the PHP version to PHP 8 in XAMPP.

You can also follow the tutorials How To Install XAMPP On Windows and How To Install PHP 8 On Windows to install the most recent version of XAMPP and PHP on Windows.

Step 1 — Open XAMPP Control Panel

Open the XAMPP Control Panel as shown in Fig 1.

Step 2 — Open Apache Config Panel

Click the Config Button next to apache. It will show the configuration options as shown in Fig 2.

Step 3 — Open Config File

Choose the option Apache(httpd-xampp.conf) as highlighted in Fig 2. It will open the configuration file httpd-xampp.conf as shown in Fig 3.

Step 4 — Update PHP Installation Path

I have highlighted some of the PHP configurations in Fig 3. I have installed the most recent version of PHP i.e. PHP 7.4.0 while writing this tutorial by following How To Install PHP 7 On Windows. Also, I have updated the PHP installation path as highlighted in Fig 4.

Step 5 — Save Configuration and Start Apache

Now save the changes and start the Apache Web Server. It will show the Apache status as shown in Fig 5.

Step 6 — Verify PHP

In this step, we will verify the PHP version used by XAMPP. Open the Browser and type the URL http://localhost. It will show the XAMPP Dashboard. Now click the PHPInfo Link to open the PHP info page as shown in Fig 6.

It reflects the most recent version of PHP i.e. PHP 8.0.3.

Summary

In this tutorial, we have discussed using the multiple versions of PHP using XAMPP by configuring the apache configuration file. I have provided all the steps required to upgrade the PHP distributed by XAMPP to the most recent version of PHP i.e. PHP 8.0.3.

Источник

How to Check PHP Version Windows Xampp, Linux Ubuntu

Check php version xampp windows, linux ubuntu, mac; In this tutorial, you will learn how to check php in Windows, Linux, and Mac using command prompt or cmd and PHP script.

Читайте также:  Arraylist element to string java

PHP is a popular programming language used for web development. If you are a developer or a system administrator, it’s important to know which version of PHP is installed on your system. In this article, we’ll show you how to check the PHP version using different methods.

How to Check PHP Version Windows Xampp, Linux Ubuntu

  • Method 1: Using the Command Line Interface
  • Method 2: Using a PHP Script
  • Method 3: Using a PHP Framework

Method 1: Using the Command Line Interface

  1. Open the command prompt (Windows) or terminal (Linux/Mac).
  2. Type the following command and press Enter:
    • php -v
  3. The PHP version installed on your system will be displayed in the output. Example output:
    • PHP 7.4.23 (cli) (built: Sep 2 2021 16:11:53) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies

Method 2: Using a PHP Script

You can also check the PHP version by creating a PHP script and running it on your web server. Follow these steps:

  1. Create a new file named “phpinfo.php” in the document root directory of your web server.
  2. Open the file in a text editor and add the following code:
    • Save the file and open it in a web browser. For example, if your web server is running on localhost, you can access the file by typing “http://localhost/phpinfo.php” in the browser address bar.
    • The PHP version installed on your system will be displayed on the top of the page.
      • PHP Version 7.4.23
      • System Windows NT LAPTOP-123 10.0 build 19042 (Windows 10) AMD64
      • Build Date Sep 2 2021 16:12:01

Method 3: Using a PHP Framework

  1. Open the terminal and navigate to the root directory of your PHP project.
  2. Type the following command and press Enter:
    • php artisan —version
  3. The PHP version used by the framework will be displayed in the output.Example output (for Laravel):
    • Laravel Framework 8.55.0 PHP 7.4.23 (cli) (built: Sep 2 2021 16:11:53) ( NTS ) .

Conclusion

In this tutorial, we have shown you how to check the PHP version on your system using different methods. By knowing the PHP version, you can ensure that your web applications are compatible with the PHP version installed on your server.

Источник

How to Update Change PHP Version in XAMPP

How to Update PHP Version in XAMPP

While using XAMPP for web development, there can be a point when you may require to update or change PHP version or say MySQL version in order to obtain some specific result. In this tutorial for beginners, I will show you how to change PHP version in XAMPP that too without reinstalling XAMPP.

To update the PHP version in XAMPP, you don’t have to reinstall XAMPP. Rather you can change PHP version by following a few simple steps explained below. And this approach saves you a lot of time and effort you may have consumed in reinstalling XAMPP. And those who still struggling about how to install XAMPP would surely find this article helpful. The PHP version requirement varies with the project specifications. You may need to employ a different version of PHP in XAMPP for one of your particular project.

Now I will show you how quickly you can check PHP version in XAMPP. Also, how to update PHP version in XAMPP and change PHP version XAMPP. Check out what is php? Let’s get started !!

How to Change PHP Version XAMPP

As we know XAMPP is an open source solution that serves as a local web server to develop and test PHP projects. And every project has its own requirement of PHP as well as MySQL version and you are bound to set up the required versions so as to get the desired results. The latest version of PHP 7 has come up with incredible features and compatibility. If you are planning to reinstall XAMPP (thinking to make it compatible with the latest or the previous version of PHP) then you should have the clarity of method. And the process of reinstalling XAMPP comprises the following:

  • phpMyAdmin back up
  • Copying htdocs files
  • Copy the php.ini file content (required ones)
  • Take back up of the entire XAMPP folder in a new folder.
  • Delete older XAMPP (after back up)

Be extremely careful while backing up required data and deleting older XAMPP in order to install the new one.

Certainly, you won’t prefer to get caught up in this intricate situation where you’re likely to lose data. And the chances of losing data are greater if you make any mistake. Hence, no room for negligence and unprepared actions.

However, this makes sense to omit this crucial sitch by opting the other feasible solution that will help you update PHP version XAMPP in a few simple steps.

Steps to Update PHP Version in XAMPP

Step 1: First off download the needed version of PHP from https://windows.php.net/download#php-7.0 and unzip the folder and name it. Make sure you don’t name it something confusing with simple PHP. And now extract the content of the zip file.

Step 2: If there’s any custom configuration in the php.ini file, then you need to copy and replace the entire content with the new one. However, if you haven’t made any changes to this file then you can skip this step.

Step 3: Now, open the XAMPP server. And click on the ‘Config’ button in the Action column parallel to Apache. Now you can see the configuration files of Apache, open the “httpd-xampp.config” from here.

How to change PHP version in XAMPP

Step 4: Go to PHP-Module section, and comment the following lines of code and add the new two lines instead.

# # PHP-Module setup # #LoadFile “C:/xampp/php/php5ts.dll” #LoadModule php5_module “C:/xampp/php/php5apache2_4.dll” LoadFile “C:/xampp/php/php7ts.dll” LoadModule php7_module “C:/xampp/php/php7apache2_4.dll”

That’s all. Simply restart the XAMPP and you’re good to go.

Now, you are ready to Change PHP Version in XAMPP

So this is how you can check PHP version in XAMPP and also update PHP version in XAMPP hassle-free. Since PHP is the foundation of any project so you need to keep it updated all the time. And XAMPP, on the other hand, it yields you the platform to test your project with ease. In case you have an old installation of XAMPP that is messed up with lots of file, you may refer to this article in order to completely update XAMPP. If you are a beginner, then the chances of getting stuck in the web development process are higher. Whereas, using a website builder can help you achieve that in no time. And if you’re using TemplateToaster website builder software then you don’t have to bother about anything. It is one of the strongest website builders present in the market. Try it to believe it!! And don’t forget to share your experience with me in the comments below. Also, if you need any support or face any issues, while XAMPP change PHP version, then do let me know.

Источник

Как проверить версию XAMPP в Windows?

В Linux все просто. Я просто набираю / opt / lampp / lampp status, и он говорит мне о версии XAMPP.

Version: XAMPP for Linux 5.6.35-0 Apache is running. MySQL is running. ProFTPD is running. 

Какая команда эквивалентна для XAMPP в Windows?

7 ответов

Откройте панель управления XAMPP, нажмите кнопку «Справка», а затем «View ReadMe» . Откроется файл «Блокнот» с первой строкой в ​​виде:

«###### ApacheFriends XAMPP Version xyx ######»

Перейдите к удалению программного обеспечения, если вы работаете в Windows, и там вы увидите версию вашего xammp.

введите описание изображения здесь

На панели управления XAMPP рядом с модулем MySQL нажмите «Стоп», затем «Пуск», затем «Журналы» и прокрутите до последней записи. Последняя строка будет выглядеть примерно так: 2018-09-27 10:38:04 17812 [Примечание] c:\xampp\mysql\bin\mysqld.exe: готов к подключению. Версия: ‘10.1.31-MariaDB’сокет: »порт: 3306 бинарный дистрибутив mariadb.org

Неловко — но единственный способ найти это.

Моя версия XAMPP — 3.2.4, и вы можете найти версию вашего xampp в верхней части панели управления.

Чтобы проверить версию компонентов xampp:

  1. Для Apache:
    • Перейдите туда, где вы установили xampp и откройте папку xampp.
    • Обходит через следующие папки:

xampp -> apache -> bin -> щелкните правой кнопкой мыши на httpd.exe -> параметр Properties -> вкладка Details

  • Проверьте версию файла, как показано на следующем экране:
    1. Если вы хотите использовать оболочку XAMPP, перейдите на панель управления xampp и нажмите кнопку Shell в черном цвете справа, после ее открытия введите следующие команды, чтобы проверить версию для каждого apache, php и mysql:
  • для типа Apache: httpd -v
  • для типа PHP: php -v
  • для типа mysql: mysql —version , и это будет отображать вашу версию MariaDB тоже.

Версия пакета Xampp также находится в файле properties.ini, а не только в файле readme.

Содержимое properties.ini :

C:\xampp>type properties.ini type properties.ini [General] installdir=C:\xampp base_stack_name=XAMPP base_stack_key= base_stack_version=7.3.23-0 base_stack_platform=windows-x64 . 

Содержимое readme_en.txt :

C:\xampp>type readme_en.txt ###### ApacheFriends XAMPP Version 7.3.23 ###### Important! PHP in this package needs the Microsoft Visual C++ 2015 Redistributable package from http://www.microsoft.com/en-us/download/. Please ensure that the VC++ 2015 runtime libraries are installed on your system. + Apache 2.4.46 + MariaDB 10.4.14 + PHP 7.3.23 (VC15 X86 64bit thread safe) + PEAR + phpMyAdmin 5.0.3 + OpenSSL 1.1.0g + ADOdb 518a + Mercury Mail Transport System v4.63 (not included in the portable version) + FileZilla FTP Server 0.9.41 (not included in the portable version) + Webalizer 2.23-04 (not included in the portable version) + Strawberry Perl 5.32.0.1 Portable + Tomcat 7.0.106 + XAMPP Control Panel Version 3.2.4. + XAMPP mailToDisk 1.0 (write emails via PHP on local disk in \mailoutput. Activated in the php.ini as mail default.) . 

Источник

Оцените статью