Am urmat acest tutorial de a rula 2 versiuni de PHP pe XAMPP: How to use Multiple xampp Like xampp php version 5, xampp php version 7, version 8. I also install it but problem new laravel project npm not install - Stack Overflow
Insa fara succes, cand accesez link-ul cu proiectul de PHP 8, spre exemplu (php8-project.test) primesc:
Care ar fi cauza? Precizez ca proiectele precedente cu PHP 7 functioneaza ok.
Configurare:
<VirtualHost *>
DocumentRoot "C:/xampp/htdocs/php8-project"
ServerName php8-project.test
<Directory "C:/xampp/htdocs/php8-project">
Options All
AllowOverride All
Order Allow,Deny
Allow from all
Require local
<FilesMatch "\.php$">
SetHandler application/x-httpd-php8-cgi
</FilesMatch>
</Directory>
</VirtualHost>