0

On Antergos I have installed php7.0 from AUR and want to use this inspite of the default php7.3 on a project in my userdir.

I added AddHandler application/x-httpd-php70 .php to my local .htaccess file, but phpinfo still shows php7.3 is used.

I ave this in my httpd.conf file

LoadModule php7_module modules/libphp7.so
LoadModule php7_module modules/libphp70.so
AddHandler php7-script php
Include conf/extra/php7_module.conf

I am pretty sure I was missing something simple but can not find out what.

rrd
  • 1,441
  • 2
  • 15
  • 36

1 Answers1

0

Only load one module at a time. To fix current issue, add comment to the first LoadModule declaration.

#LoadModule php7_module modules/libphp7.so
LoadModule php7_module modules/libphp70.so
AddHandler php7-script php
Include conf/extra/php7_module.conf

I think running multiple versions can be done with some setup. Maybe this will help: Running two PHP versions on the same server

Jeremy Harris
  • 24,318
  • 13
  • 79
  • 133