opensuse 安装APACHE2+MYSQL+PHP5

sudo zypper in apache2-mod_php5 apache2 mariadb

 装好后, 记得启动APACHE2对PHP的支持:

 a2enmod php5

 默认mysql密码为空, 可用如下命令配置:

sudo mysql_secure_installation

 此命令会提示配置MYSQL密码等信息。

还有一点要说明的是, apache2对应的用户与组在如下配置文 件中:

/etc/apache2/uid.conf

 有时页面打不开记得设置此用户为所有组或设置 此用户有相应的权限。

opensuse 启动与关闭服务, 可用如下命令:

sudo systemctl start apache2
sudo systemctl restart apache2
#开机启动
sudo systemctl enable apache2

 详细文档如下链接:

https://en.opensuse.org/SDB:LAMP_setup

原文地址:https://www.cnblogs.com/perl6/p/8088081.html