简体   繁体   中英

XAMPP installation on ubuntu trusty inside vagrant

I was trying to learn how to make custom made WordPress themes when I encountered some issues and decided to learn PHP. following the instructions in the official apachefriends website , when I tried the command sudo ./xampp-linux-*-installer.run everything went as expected expect in the last step it suddenly stops. I put a screenshot of my terminal here:

在此处输入图片说明

I do not understand what is the problem. I have tested many other applications on vagrant without any issues. I would appreciate if anybody could help me.

first of all a general tip for using vagrant: whenever something weird happens and you don't know how to solve it activate the GUI. to do that open the Vagrantfile in the folder where your vagrant VM is. uncomment the lines below:

config.vm.provider "virtualbox" do |vb|

vb.gui = true

and add "end" right after.

most of the time there are some messages from VM which are not shown in the ssh or vagrant terminal output.

in this case apparently the system was out of memory. the error shown in virtualbox was:

Out of memory: Kill process

so I had to add some memory to the vagrant VM. to do so you need to open the Vagrantfile again

and uncomment the line

vb.memory = "1024"

and add some code on top and an "end" after.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM