This step have many tech, just find on google
ps: start Virtual Box in background
make link, link content is
vboxheadless -startvm "your vm's name"check internet is ok~~
2、Use account that when you install ubuntu, create user account. Now example username is "Ubuntu".
Login Ubuntu use "Ubuntu" account.
see https://www.apachefriends.org/download.html
choese 7.0.13 / PHP 7.0.13
wget https://www.apachefriends.org/xampp-files/7.0.13/xampp-linux-x64-7.0.13-1-installer.run
chmod +x xampp-linux-x64-7.0.13-1-installer.runinstall
sudo ./xampp-linux-x64-7.0.13-1-installer.runthen Yes Yes Yes Yes
PS:so now have permit have three : root 、 daemon、 ubuntu
/opt/lampp and /opt/lampp/* some directory is root, some is ubuntu or daemon.
2-1、need phpmyadmin, so see this
http://sueboy.blogspot.tw/2016/01/xampp-phpmyadmin-httpd-xamppconf.html
put
<LocationMatch "^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">xxx.ooo.xxx.ooo/24 can remove, by yourself use.
#Require local
Require all granted
Order deny,allow
Deny from all
Allow from ::1 127.0.0.0/8 192.168.0.0/8 xxx.ooo.xxx.ooo/24
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</LocationMatch>
then check http://192.168.xxx.xxx/phpmyadmin is ok
PS:Usually I move /opt/lampp/htdocs all files to allbackup directory that be create by myself.
3、install magento
download Magento-CE-2_1_3_tar_gz , just download from magento website, then upload ubuntu, copy file to /opt/lampp/htdocs
tar zxvf Magento-CE-2_1_3_tar_gzPS: IF you upload use root, maybe use "sudo tar"
3-1、 check /opt/lampp/etc/httpd.conf
http://www.computernetworkingnotes.com/ubuntu-12-04-tips-and-tricks/how-to-fix-permission-of-htdocs-in-ubuntu.html
User
Group
usually is "daemon"
3-2、Set ownership and permissions for the shared group
http://devdocs.magento.com/guides/v2.1/install-gde/prereq/file-system-perms.html
cd /opt/lampp/htdocs
find var vendor pub/static pub/media app/etc -type f -exec chmod g+w {} \;
find var vendor pub/static pub/media app/etc -type d -exec chmod g+ws {} \;
chown -R :daemon .
chmod u+x bin/magentoPS: when you "sudo tar", maybe now this step need use "sudo"
4、now see http://192.168.xxx.xxx , start install magento......