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

Advanced

Change History

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

Changed By: Hsinping Wang
Change Date: February 02, 2019 03:17PM

Install a LAPP Stack (Apache 2.4/PHP 7/PostgreSQL 10) on openSUSE Tumbleweed
Assume the Tumbleweed linux is ready.

I. Install the database first (PostgreSQL 10)
1. Install database
<div style="background:#ddd;padding-left:1em">zypper install postgresql10 postgresql10-contrib postgresql10-server</div>

2. Enable auto-start on boot
<div style="background:#ddd;padding-left:1em">chkconfig -a postgresql</div>

3. Start PostgreSQL
<div style="background:#ddd;padding-left:1em">systemctl start postgresql.service</div>

4. Set password for postgres
Switch user to postgres:
<div style="background:#ddd;padding-left:1em">su postgres
psql</div>
In the psql console, set the password:
<div style="background:#ddd;padding-left:1em">\password postgres</div>

II. Web Server
1. Install apache2
<div style="background:#ddd;padding-left:1em">zypper install apache</div>

2. Add commonly-used modules
Add modules:
<div style="background:#ddd;padding-left:1em">a2enmod php</div>
<div style="background:#ddd;padding-left:1em">a2enmod rewrite</div>
List apache loaded modules:
<div style="background:#ddd;padding-left:1em">apachectl -M</div>

II. PHP
<div style="background:#ddd;padding-left:1em">zypper install php7 php7-pgsql</div>


<div style="background:#ddd;padding-left:1em"></div>
<div style="background:#ddd;padding-left:1em"></div>
<div style="background:#ddd;padding-left:1em"></div>

References:
<a href=http://mepopedia.com/forum/read.php?135,76348>Install a LAPP server: openSUSE 42 / Apahce 2.4/PostgreSQL 9.4/ PHP 5.6</a>
<a href=https://www.howtoforge.com/tutorial/how-to-install-postgresql-and-phppgadmin-on-opensuse-leap-42.1/>How to Install PostgreSQL and phpPgAdmin on OpenSUSE Leap 42.1</a>
Changed By: Hsinping Wang
Change Date: February 02, 2019 03:13PM

Install a LAPP Stack (Apache 2.4/PHP 7/PostgreSQL 10) on openSUSE Tumbleweed
Assume the Tumbleweed linux is ready.

I. Install the database first (PostgreSQL 10)
1. Install database
<div style="background:#ddd;padding-left:1em">zypper install postgresql10 postgresql10-contrib postgresql10-server</div>

2. Enable auto-start on boot
<div style="background:#ddd;padding-left:1em">chkconfig -a postgresql</div>

3. Start PostgreSQL
<div style="background:#ddd;padding-left:1em">systemctl start postgresql.service</div>

4. Set password for postgres
Switch user to postgres
:
<div style="background:#ddd;padding-left:1em">su postgres
psql</div>
In the psql console, set the password:
<div style="background:#ddd;padding-left:1em">\password postgres</div>

II. Web Server
1. Install apache2
<div style="background:#ddd;padding-left:1em">zypper install apache</div>

2. Add commonly-used modules
Add modules:
<div style="background:#ddd;padding-left:1em">a2enmod php</div>
<div style="background:#ddd;padding-left:1em">a2enmod rewrite</div>
List apache loaded modules:
<div style="background:#ddd;padding-left:1em">apachectl -M</div>

II. PHP
<div style="background:#ddd;padding-left:1em">zypper install php7 php7-pgsql</div>


<div style="background:#ddd;padding-left:1em"></div>
<div style="background:#ddd;padding-left:1em"></div>
<div style="background:#ddd;padding-left:1em"></div>
Changed By: Hsinping Wang
Change Date: February 02, 2019 03:11PM

Install a LAPP Stack (Apache 2.4/PHP 7/PostgreSQL 10) on openSUSE Tumbleweed
Assume the Tumbleweed linux is ready.

I. Install the database first (PostgreSQL 10)
1. Install database
<div style="background:#ddd;padding-left:1em">zypper install postgresql10 postgresql10-contrib postgresql10-server</div>

2. Enable auto-start on boot
<div style="background:#ddd;padding-left:1em">chkconfig -a postgresql</div>

3. Start PostgreSQL
<div style="background:#ddd;padding-left:1em">systemctl start postgresql.service</div>

4. Set password for postgres
Switch user to postgres
<div style="background:#ddd;padding-left:1em">su postgres
psql</div>
In the psql console, set the password:
<div style="background:#ddd;padding-left:1em">\password postgres</div>

II. Web Server
1. Install apache2
<div style="background:#ddd;padding-left:1em">zypper install apache</div>

2. Add common modules
<div style="background:#ddd;padding-left:1em">a2enmod php</div>
<div style="background:#ddd;padding-left:1em">a2enmod rewrite</div>

II. PHP
<div style="background:#ddd;padding-left:1em">zypper install php7 php7-pgsql</div>


<div style="background:#ddd;padding-left:1em"></div>
<div style="background:#ddd;padding-left:1em"></div>
<div style="background:#ddd;padding-left:1em"></div>

Original Message

作者: Hsinping Wang
Date: February 02, 2019 01:12PM

Install a LAPP Stack (Apache 2.4/PHP 7/PostgreSQL 10) on openSUSE Tumbleweed
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
su postgres
psql

In the psql console, set the password:
\password postgres