LAPP Stack for PI: Difference between revisions
Jump to navigation
Jump to search
(Created page with "The '''LAPP''' stack is an open source web platform that can be used to run dynamic web sites and servers. It is considered by many to be a powerful alternative to the more po...") |
No edit summary |
||
Line 1: | Line 1: | ||
The '''LAPP''' stack is an open source web platform that can be used to run dynamic web sites and servers. It is considered by many to be a powerful alternative to the more popular '''LAMP''' stack and includes '''L'''inux, '''A'''pache, '''P'''ostgreSQL (instead of MySQL) and '''P'''HP, '''P'''ython or '''P'''erl. | The '''LAPP''' stack is an open source web platform that can be used to run dynamic web sites and servers. It is considered by many to be a powerful alternative to the more popular '''LAMP''' stack and includes '''L'''inux, '''A'''pache, '''P'''ostgreSQL (instead of MySQL) and '''P'''HP, '''P'''ython or '''P'''erl. | ||
==Install== | |||
===Apache=== | |||
<source lang="bash"> | |||
apt install apache2/stable | |||
SERVER_NAME=localhost && | |||
cat > /etc/apache2/conf-available/servername.conf << EOF | |||
ServerName $SERVER_NAME | |||
EOF | |||
a2enconf servername | |||
systemctl reload apache2 | |||
apachectl -t | |||
</source> | |||
===PHP=== | |||
<source lang="bash"> | |||
apt install php7.3/stable libapache2-mod-php7.3/stable | |||
a2enmod php7.3 | |||
apt install php7.3-fpm/stable | |||
a2enmod proxy_fcgi setenvif | |||
a2enconf php7.3-fpm | |||
systemctl restart apache2 | |||
</source> | |||
===Postgres=== | |||
<source lang="bash"> | |||
apt install postgresql-11/stable | |||
apt install phppgadmin/stable | |||
sed -i "s/NOT pp.proisagg/pp.prokind='f'/g" /usr/share/phppgadmin/classes/database/Postgres.php | |||
sed -i "s/NOT p.proisagg/p.prokind='f'/g" /usr/share/phppgadmin/classes/database/Postgres.php | |||
systemctl restart apache2 | |||
</source> |
Revision as of 18:21, 18 August 2019
The LAPP stack is an open source web platform that can be used to run dynamic web sites and servers. It is considered by many to be a powerful alternative to the more popular LAMP stack and includes Linux, Apache, PostgreSQL (instead of MySQL) and PHP, Python or Perl.
Install
Apache
apt install apache2/stable
SERVER_NAME=localhost &&
cat > /etc/apache2/conf-available/servername.conf << EOF
ServerName $SERVER_NAME
EOF
a2enconf servername
systemctl reload apache2
apachectl -t
PHP
apt install php7.3/stable libapache2-mod-php7.3/stable
a2enmod php7.3
apt install php7.3-fpm/stable
a2enmod proxy_fcgi setenvif
a2enconf php7.3-fpm
systemctl restart apache2
Postgres
apt install postgresql-11/stable
apt install phppgadmin/stable
sed -i "s/NOT pp.proisagg/pp.prokind='f'/g" /usr/share/phppgadmin/classes/database/Postgres.php
sed -i "s/NOT p.proisagg/p.prokind='f'/g" /usr/share/phppgadmin/classes/database/Postgres.php
systemctl restart apache2