A
A
astrotrain2016-01-30 18:21:43
PHP
astrotrain, 2016-01-30 18:21:43

How to install different version of php on xampp?

I have xampp with php 5.5, but I want to use the new version of php7 in it, what is the right way to change the apache config for this? Thank you.
Edited httpd-xampp.conf

LoadFile "C:/php7/php7ts.dll"
LoadFile "C:/php7/libpq.dll"
LoadModule php7_module "C:/php7/php7apache2_4.dll"

<IfModule php7_module>
    PHPINIDir "C:/php7"
</IfModule>

But now I'm getting an error:
C:\xampp\apache\bin>httpd.exe
httpd.exe: Syntax error on line 519 of C:/xampp/apache/conf/httpd.conf: Syntax e
rror on line 18 of C:/xampp/apache/conf/extra/httpd-xampp.conf: Cannot load C:/p
hp7/php7ts.dll into server: %1 \xed\xe5 \xff\xe2\xeb\xff\xe5\xf2\xf1\xff \xef\xf
0\xe8\xeb\xee\xe6\xe5\xed\xe8\xe5\xec Win32.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
DmitryScaletta, 2016-01-30
@DmitryScaletta

You can download the latest version of XAMPP from PHP 7
sourceforge.net/projects/xampp/files/XAMPP%20Windows

K
Konstantin Velichko, 2016-01-30
@Zoxon

There is a XAMPP version with PHP7 use it https://www.apachefriends.org/download.html

A
Andrew, 2016-01-31
@AndHacker

Can be rebuilt - install apache and MySQL

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question