檢查 OS 版本
#cat /etc/os-release
更新
#zypper update
查 PHP 版本
#php -v
安裝 PHP 5
must add php repository to server. For example add php5.6 repository to SLES12SP3 you must add below command:
#zypper addrepo http://download.opensuse.org/repositories/devel:/languages:/php:/php56/SLE_12_SP3/devel:languages:php:php56.repo
查目前工作
#ps -aux
登入 MySQL
#mysql -u root -p
MySQL 指令 查版本
>SHOW VARIABLES LIKE "%version%";
建立 DB (utf8_general_ci)
>CREATE DATABASE mydatabase CHARACTER SET utf8 COLLATE utf8_general_ci;
LAMP 安裝參考:https://en.opensuse.org/SDB:LAMP_setup