Welcome! 登入 註冊
美寶首頁 美寶百科 美寶論壇 美寶落格 美寶地圖

Advanced

Install a LAPP Stack (Apache 2.4/PHP 7/PostgreSQL 10) on openSUSE Tumbleweed

Posted by Hsinping Wang 
Assume the Tumbleweed linux is ready.

I. Install the database first (PostgreSQL 10)
1. Install database
zypper install postgresql10 postgresql10-contrib postgresql10-server

2. Enable auto-start on boot
chkconfig -a postgresql

3. Start PostgreSQL
systemctl start postgresql.service

4. Set password for postgres
Switch user to postgres:
su postgres
psql
In the psql console, set the password:
\password postgres

II. Web Server
1. Install apache2
zypper install apache

2. Add commonly-used modules
Add modules:
a2enmod php
a2enmod rewrite
List apache loaded modules:
apachectl -M

II. PHP
zypper install php7 php7-pgsql



References:
Install a LAPP server: openSUSE 42 / Apahce 2.4/PostgreSQL 9.4/ PHP 5.6
How to Install PostgreSQL and phpPgAdmin on OpenSUSE Leap 42.1



Edited 3 time(s). Last edit at 02/02/2019 03:17PM by Hsinping Wang.
(編輯記錄)