![]() Now we have some swap, and the commands are self explanatory so you understand if you want to add 2GB or more how to do it. ![]() Swap: 1023 0 composer create-project -prefer-dist laravel/laravel test Mem: 985 194 740 5 50 fallocate -l 1G chmod 600 swapon free -m Total used free shared buff/cache available The issue is that the VM is running with only 1GB ram and no swap, so let’s add 1GB swap file free -m ![]() Once we started creating the Laravel project we hit the second issue ! Can’t allocate memory. So simply run the commands below : apt apt apt install unzip curl -s | mv composer.phar composer create-project -prefer-dist laravel/laravel test You will find yourself in a terminal like this one, and as you can see it’s a Debian 4.19.0.9 VMįirst thing to do is to update apt, upgrade necessary packages then install few additional packages to install Laravel : unzip, composer and probably a text editor like vi or nano. From XAMPP general tab hit the “Open Terminal” button : Now we have a new XAMPP installed, let’s start by updating and installing the necessary packages. Ls from your local directory /opt/lampp and you will see the VM content. So let’s mount the folder locally so we can access it as a local folder : sudo mkdir sudo mount -t nfs -o resvport,rw 192.168.64.2:/opt/lampp /opt/lampp So what’s missing ?Īs you can see in the screenshot, the /opt/lampp folder is opened from nfs://192.168.64.2/opt/lampp thing what can finder do without having to mount the folder locally. So this was the first issue faced as the XAMPP seems to not being able to mount the disk locally, but if you hit the explore button it will open the files in the VM. Now after running XAMPP server, make sure to mount the volume of the VM so you can access it directly from your mac. You will get a VM in dmg format that you can drag and drop into your applications folder. First download the version you want to install of XAMPP from : Notice that this was tested on MacOS Catalina 10.15.6. New XAMPP release is using VM to run, however it’s quite limited so here is how to quickly get it up and running. We noticed that Laravel installation for XAMPP users in Mac is a little problematic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |