/opt/lampp/xampp スクリプトで、OS誤判定してるっぽい?
[vagrant@localhost ~]$ cat -n /opt/lampp/xampp | sed -n 24,35p
24 osguess() {
25 if test -f /etc/redhat-release
26 then
27 if egrep "9 " /etc/redhat-release > /dev/null
28 then
29 echo "rh9"
30 return 0
31 else
32 echo "linux"
33 return 0
34 fi
35 elif test "$(uname)" = "Darwin"
[vagrant@localhost ~]$ cat /etc/redhat-release
CentOS release 6.9 (Final)
[vagrant@localhost ~]$
"9
" が、/etc/redhat-release
に含まれていたら、rh9
としていて、
CentOS 6.9の場合、"CentOS release 6.9
(Final)"が引っかかってる。
簡単な修正として、"rh9"を返しているのを、"linux"を返すようにする。
[vagrant@localhost ~]$ sudo sed -i -e 's/echo "rh9"/echo "linux"/' /opt/lampp/xampp
[vagrant@localhost ~]$ sudo /opt/lampp/xampp restart
XAMPP: SELinux is activated. Making XAMPP fit SELinux...
chcon: cannot access `/opt/lampp/lib/mysql/*.so': No such file or directory
Restarting XAMPP for Linux 7.2.0-0...
XAMPP: Stopping Apache...ok.
XAMPP: Stopping MySQL...ok.
XAMPP: Stopping ProFTPD...ok.
XAMPP: Starting Apache...ok.
XAMPP: Starting MySQL...ok.
XAMPP: Starting ProFTPD...ok.
[vagrant@localhost ~]$
環境メモ
ホスト
仮想機
- Virtualbox: 5.2.4
- Vagrant: 2.0.1
- boxイメージ: bento/centos-6.9
Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "bento/centos-6.9"
config.vm.network "forwarded_port", guest: 80, host: 8080
end
xampp
- インストールは[Enter]押していっただけ。
/opt/lampp
にインストールされる。以下のもので確認。
xampp-linux-x64-5.6.32-0-installer.run
xampp-linux-x64-7.2.0-0-installer.run
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。