1、crate virtualbox vm, install ubuntu 16
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.
1、backup
/opt/lamp/etc/extra/httpd-xampp.conf
or
/opt/lamp/etc/extra/ any conf be edited
/opt/lamp/etc/php.ini
/opt/lamp/etc/httpd.conf
any conf、ini or your edit file backup .
2、download xampp newst install sh then install again
3、Don’t copy backup file overwrite old ini conf file
use note++ to compare different, then change or no change.
4、finish try to ./lamp restart
====================================
Maybe other way
You can see /opt/lampp/properties.ini
maybe use apt-get install php or mysql, then change this path, then restart……I Not Sure can or not.
1、找不到 httpd-xampp.conf 的話,locate httpd-xampp.conf
/opt/lampp/etc/extra/httpd-xampp.conf
2、Don’t change <Directory “/opt/lampp/phpmyadmin”>
Change <LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status…………
<LocationMatch “^/(?i:(?:xampp|security|licenses|phpmyadmin|webalizer|server-status|server-info))">
#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
3、sudo /opt/lampp/lampp restart