Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Issues in installation of PHP in MacBook air M1 chip [closed]

I recently bought a new MacBook Air M1 chipset. Now the issue that I am facing is that while I was trying to install PHP 7.4, Apache, MySQL, and PHPMyAdmin on the system it couldn't allow me to complete the installation process. As we all know that all this software is not currently providing support on the M1 chipset.

Is there any other alternative way to install this software with this chipset?

I have installed XAMPP server in my MacBook Air M1 but it is throwing me error Please check enter image description here

Thanks in Advance.

like image 658
Rajdipsinhji Hada Avatar asked Feb 16 '21 06:02

Rajdipsinhji Hada


People also ask

Does xampp work on M1 Mac?

Anyway, I concluded that Xampp was probably not compatible with the M1 (like many software) and moved on to other options. Alas! Today, I found myself in a similar position. I needed to self host a Learning Management System using Drupal, and I needed Xampp (to be my server) for that.


Video Answer


1 Answers

I would suggest you go through Is apple silicon ready? first. Here You can get acknowledgement if your software is M1 optimized or not.

Also they have mentioned is the software support is available through Rosetta2 or not too.

For PHP, It's not advisable to upgrade the system-provided PHP, but it's also not necessary.

brew link can be used to decide which PHP is utilized. brew link [email protected] should do the trick; this can be also used to switch PHP versions around, i.e. brew link [email protected] will switch you over to that while leaving both versions installed and available directly.

like image 96
Kishan sharma Avatar answered Oct 20 '22 12:10

Kishan sharma