openSUSE

openSUSE 15.2 apache2 PHP7 mariaDB 安装和配置

docs根目录  /srv/www/htdocs

conf  /etc/apache2/default-server.conf

虚拟主机配置 必须修改为conf 位置在 /etc/apache2/vhosts.d/m.gbca.cn.conf

安装 apache 和PHP7

sudo zypper install apache2

sudo zypper install php7 php7-mysql apache2-mod_php7 php7-fpm

其他模块以下必须安装 
zypper -n in php7-gd php7-mbstring php7-zip  php7-curl php7-openssl php7-zlib php7-intl php7-opcache php7-fileinfo php7-xmlrpc php7-soap php7-sodium

安装数据库

sudo zypper install mariadb

sudo a2enmod php7

sudo systemctl start apache2 mysql

标签
订阅 openSUSE