~alpine/users

6 3

[alpine-user] LAMP setup

Details
Message ID
<FrBJwtk_rsSlcINPL9k-0TEj0s7RCeeZa3D5OGL80Z0h74tO8uX48uHQb70kXCUd1MtmT5169lcTuiZQrP52aa2CemURtrXrMEB6UZd7csI=@protonmail.ch>
Sender timestamp
1551549044
DKIM signature
missing
Download raw message
I'm new to alpine and am planning to set up a dedicated LAMP on it. Is there anything I should know going into it that differs greatly from setting it up on an Ubuntu machine for which I have practical experience?
Chloe Kudryavtsev <toast@toastin.space>
Details
Message ID
<ef062f95-4217-b3fd-7940-1948114de54c@toastin.space>
In-Reply-To
<FrBJwtk_rsSlcINPL9k-0TEj0s7RCeeZa3D5OGL80Z0h74tO8uX48uHQb70kXCUd1MtmT5169lcTuiZQrP52aa2CemURtrXrMEB6UZd7csI=@protonmail.ch> (view parent)
Sender timestamp
1551556451
DKIM signature
missing
Download raw message
Hi,

On 3/2/2019 12:50 PM, daffodil-11@protonmail.ch wrote:
> I'm new to alpine and am planning to set up a dedicated LAMP on it. Is there anything I should know going into it that differs greatly from setting it up on an Ubuntu machine for which I have practical experience?

Alpine has two large (technical) differentiating details from Ubuntu.
1. We use the musl libc instead of glibc.

This should not mean much in your use-case, since Apache, MySQL and PHP 
are all available.

2. We use openrc instead of systemd/sysv/upstart (and so on).

This *will* affect you, but it should not be particularly significant.
It basically means that enabling/disabling/starting/stopping services 
will work a bit differently.
However, such basic usage is quite simple, and you should not have any 
particular problems.


---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
PICCORO McKAY Lenz <mckaygerhard@gmail.com>
Details
Message ID
<CALci+FS=k_2Bpg2gcQ4MRNCdjPE5fKcJbn8K3bVVo0cQdJX11g@mail.gmail.com>
In-Reply-To
<ef062f95-4217-b3fd-7940-1948114de54c@toastin.space> (view parent)
Sender timestamp
1551575665
DKIM signature
missing
Download raw message
ummm sorry but there-s too much differences beetween winbutu to alpine

if you apt instal apache phpmyadmin
in winbutnu quickly you have inmmediatelly at localhost/phpmyadmin the
result

in apine not all are like that! due alpine it-s more like old school debian
was
and that's i love it

Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com


El sáb., 2 de mar. de 2019 a la(s) 15:54, Chloe Kudryavtsev
(toast@toastin.space) escribió:

> Hi,
>
> On 3/2/2019 12:50 PM, daffodil-11@protonmail.ch wrote:
> > I'm new to alpine and am planning to set up a dedicated LAMP on it. Is
> there anything I should know going into it that differs greatly from
> setting it up on an Ubuntu machine for which I have practical experience?
>
> Alpine has two large (technical) differentiating details from Ubuntu.
> 1. We use the musl libc instead of glibc.
>
> This should not mean much in your use-case, since Apache, MySQL and PHP
> are all available.
>
> 2. We use openrc instead of systemd/sysv/upstart (and so on).
>
> This *will* affect you, but it should not be particularly significant.
> It basically means that enabling/disabling/starting/stopping services
> will work a bit differently.
> However, such basic usage is quite simple, and you should not have any
> particular problems.
>
>
> ---
> Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
> Help:         alpine-user+help@lists.alpinelinux.org
> ---
>
>
Marco Dickert <marco@misterunknown.de>
Details
Message ID
<20190304083832.GB25800@marco.lxc>
In-Reply-To
<CALci+FS=k_2Bpg2gcQ4MRNCdjPE5fKcJbn8K3bVVo0cQdJX11g@mail.gmail.com> (view parent)
Sender timestamp
1551688713
DKIM signature
missing
Download raw message
On 2019-03-02 21:14:25, PICCORO McKAY Lenz wrote:
> ummm sorry but there-s too much differences beetween winbutu to alpine
> 
> if you apt instal apache phpmyadmin
> in winbutnu quickly you have inmmediatelly at localhost/phpmyadmin the
> result
> 
> in apine not all are like that!

Well, I understand your point, but you choose a very bad example to argue:

$ apk add apache2 php7-apache2 phpmyadmin
[...]
* If you use apache2:
*     1) Change the ownership of the config directory:
*            chown -R apache:apache /etc/phpmyadmin
*     2) See if you need to modify the apache2 config:
*            /etc/apache2/conf.d/phpmyadmin.conf
*     3) Restart apache2 when done.
*
OK: 524 MiB in 321 packages
$ chown -R apache:apache /etc/phpmyadmin
$ /etc/init.d/apache2 restart

This works instantly^^

Cheers,
Marco
-- 
Marco Dickert
marco@misterunknown.de
https://misterunknown.de
PICCORO McKAY Lenz <mckaygerhard@gmail.com>
Details
Message ID
<CALci+FT9xwtLRKH0U1fdn881hDz8yj7TT0GOt9KimJk0N-Qg4A@mail.gmail.com>
In-Reply-To
<20190304083832.GB25800@marco.lxc> (view parent)
Sender timestamp
1551718967
DKIM signature
missing
Download raw message
not!  /etc/apache2/conf.d/ are deprecated! a common mistake if you are
not close to system changes respect upstream projects.. another
inheritcs by using windo-like distributions

also there's no need to change ownershiop of the conf file.. system
must own the changes and users only must "use" ... the "apache" user
must not have access to system files, that are a security misctake
inherits from "muti-vendor" sites how to..

2019-03-04 4:08 GMT-04:30, Marco Dickert <marco@misterunknown.de>:
> On 2019-03-02 21:14:25, PICCORO McKAY Lenz wrote:
>> ummm sorry but there-s too much differences beetween winbutu to alpine
>>
>> if you apt instal apache phpmyadmin
>> in winbutnu quickly you have inmmediatelly at localhost/phpmyadmin the
>> result
>>
>> in apine not all are like that!
>
> Well, I understand your point, but you choose a very bad example to argue:
>
> $ apk add apache2 php7-apache2 phpmyadmin
> [...]
> * If you use apache2:
> *     1) Change the ownership of the config directory:
> *            chown -R apache:apache /etc/phpmyadmin
> *     2) See if you need to modify the apache2 config:
> *            /etc/apache2/conf.d/phpmyadmin.conf
> *     3) Restart apache2 when done.
> *
> OK: 524 MiB in 321 packages
> $ chown -R apache:apache /etc/phpmyadmin
> $ /etc/init.d/apache2 restart
>
> This works instantly^^
>
> Cheers,
> Marco
> --
> Marco Dickert
> marco@misterunknown.de
> https://misterunknown.de
>


-- 
Lenz McKAY Gerardo (PICCORO)
http://qgqlochekone.blogspot.com


---
Unsubscribe:  alpine-user+unsubscribe@lists.alpinelinux.org
Help:         alpine-user+help@lists.alpinelinux.org
---
PICCORO McKAY Lenz <mckaygerhard@gmail.com>
Details
Message ID
<CALci+FRe9xWSo7U2bZ2ESReLR_FA_Fkj7Kp=1abU_kVfBRPyuQ@mail.gmail.com>
In-Reply-To
<20190305083608.GA3227@marco.lxc> (view parent)
Sender timestamp
1551787409
DKIM signature
missing
Download raw message
El mar., 5 de mar. de 2019 a la(s) 04:36, Marco Dickert (
marco@misterunknown.de) escribió:

> On 2019-03-04 12:32:47, PICCORO McKAY Lenz wrote:
> > not!
> I just tried it on my local alpine edge machine. It works.
> > /etc/apache2/conf.d/ are deprecated!
> At least the alpine default configuration includes it...
>

deprecated means that works for a while.. later does noT


> > also there's no need to change ownershiop of the conf file..
> Changing the group would be sufficient, but /etc/phpmyadmin is not
> readable by
> others, because it may contain server credentials. So I guess it would be
> better
> to change the postinstall hint to:
> $ chgrp -R apache /etc/phpmyadmin
> $ chmod -R g+w /etc/phpmyadmin
>

that's better but i prefer admins must know what must be done manually


>
> > system must own the changes and users only must "use" ... the "apache"
> user
> > must not have access to system files, that are a security misctake
> inherits
> > from "muti-vendor" sites how to..
> >
> > 2019-03-04 4:08 GMT-04:30, Marco Dickert <marco@misterunknown.de>:
> > > On 2019-03-02 21:14:25, PICCORO McKAY Lenz wrote:
> > >> ummm sorry but there-s too much differences beetween winbutu to alpine
> > >>
> > >> if you apt instal apache phpmyadmin
> > >> in winbutnu quickly you have inmmediatelly at localhost/phpmyadmin the
> > >> result
> > >>
> > >> in apine not all are like that!
> > >
> > > Well, I understand your point, but you choose a very bad example to
> argue:
> > >
> > > $ apk add apache2 php7-apache2 phpmyadmin
> > > [...]
> > > * If you use apache2:
> > > *     1) Change the ownership of the config directory:
> > > *            chown -R apache:apache /etc/phpmyadmin
> > > *     2) See if you need to modify the apache2 config:
> > > *            /etc/apache2/conf.d/phpmyadmin.conf
> > > *     3) Restart apache2 when done.
> > > *
> > > OK: 524 MiB in 321 packages
> > > $ chown -R apache:apache /etc/phpmyadmin
> > > $ /etc/init.d/apache2 restart
> > >
> > > This works instantly^^
> > >
> > > Cheers,
> > > Marco
> > > --
> > > Marco Dickert
> > > marco@misterunknown.de
> > > https://misterunknown.de
> > >
> >
> >
> > --
> > Lenz McKAY Gerardo (PICCORO)
> > http://qgqlochekone.blogspot.com
>
> --
> Marco Dickert
> marco@misterunknown.de
> https://misterunknown.de
>
Marco Dickert <marco@misterunknown.de>
Details
Message ID
<20190305083608.GA3227@marco.lxc>
In-Reply-To
<CALci+FT9xwtLRKH0U1fdn881hDz8yj7TT0GOt9KimJk0N-Qg4A@mail.gmail.com> (view parent)
Sender timestamp
1551774968
DKIM signature
missing
Download raw message
On 2019-03-04 12:32:47, PICCORO McKAY Lenz wrote:
> not!

I just tried it on my local alpine edge machine. It works.

> /etc/apache2/conf.d/ are deprecated!

At least the alpine default configuration includes it...

> also there's no need to change ownershiop of the conf file..

Changing the group would be sufficient, but /etc/phpmyadmin is not readable by
others, because it may contain server credentials. So I guess it would be better
to change the postinstall hint to:

$ chgrp -R apache /etc/phpmyadmin
$ chmod -R g+w /etc/phpmyadmin

> system must own the changes and users only must "use" ... the "apache" user
> must not have access to system files, that are a security misctake inherits
> from "muti-vendor" sites how to..
> 
> 2019-03-04 4:08 GMT-04:30, Marco Dickert <marco@misterunknown.de>:
> > On 2019-03-02 21:14:25, PICCORO McKAY Lenz wrote:
> >> ummm sorry but there-s too much differences beetween winbutu to alpine
> >>
> >> if you apt instal apache phpmyadmin
> >> in winbutnu quickly you have inmmediatelly at localhost/phpmyadmin the
> >> result
> >>
> >> in apine not all are like that!
> >
> > Well, I understand your point, but you choose a very bad example to argue:
> >
> > $ apk add apache2 php7-apache2 phpmyadmin
> > [...]
> > * If you use apache2:
> > *     1) Change the ownership of the config directory:
> > *            chown -R apache:apache /etc/phpmyadmin
> > *     2) See if you need to modify the apache2 config:
> > *            /etc/apache2/conf.d/phpmyadmin.conf
> > *     3) Restart apache2 when done.
> > *
> > OK: 524 MiB in 321 packages
> > $ chown -R apache:apache /etc/phpmyadmin
> > $ /etc/init.d/apache2 restart
> >
> > This works instantly^^
> >
> > Cheers,
> > Marco
> > --
> > Marco Dickert
> > marco@misterunknown.de
> > https://misterunknown.de
> >
> 
> 
> -- 
> Lenz McKAY Gerardo (PICCORO)
> http://qgqlochekone.blogspot.com

-- 
Marco Dickert
marco@misterunknown.de
https://misterunknown.de
Reply to thread Export thread (mbox)