Ask Your Question
0

What is the easiest way to install LAMP on Fedora?

asked 2013-05-15 17:57:19 -0500

3Joe3 gravatar image

Hey there, I just came over from Ubuntu after 3 years.

What is the easiest way to install LAMP? I did it about a year ago and it was a little bit involved. However, I was recently told I could do it with one line in the terminal.

Is this true?

In Ubuntu, it would be something like:

sudo apt-get install LAMP

Can I use something like:

su yum install LAMP
edit retag flag offensive close merge delete

Comments

There's a difference in the way that you invoke su and the way you use sudo. More correct is su -c 'yum install $PACKAGENAME' because otherwise su won't know what's a command, what's a switch for it and what's an argument. To learn more about yum, use "man yum" without the quotes. What it doesn't mention is that if you're just searching for a program or getting info, you don't need root.

sideburns gravatar imagesideburns ( 2013-09-21 21:09:10 -0500 )edit

3 Answers

Sort by ยป oldest newest most voted
3

answered 2013-05-15 18:23:56 -0500

fantom gravatar image

Hi,

on a already existent fedora installation you can install the package group that provides Apache/MySQL/PHP rpms with this single command-line:

su -lc 'yum install @web-server'

Then just enable and activate systemd services for Apache and MySQL, open the port 80, and your LAMP is ready to use.

edit flag offensive delete link more

Comments

That command seems to have worked. How do I complete the last 2 steps? I.e. activating systemd services and opening port 80?

3Joe3 gravatar image3Joe3 ( 2013-05-15 18:29:16 -0500 )edit
fantom gravatar imagefantom ( 2013-05-15 19:46:07 -0500 )edit

When I try to enable I get "no such directory."

3Joe3 gravatar image3Joe3 ( 2013-05-15 20:55:19 -0500 )edit

I guess the most frustrating thing about this is if you Google "How to install LAMP on Fedora 18" you will get a TON of different answers. When trying to follow a step by step, the terminal always throws some random argument that hampers the whole thing.

Can someone please tell me where I'm going wrong?

3Joe3 gravatar image3Joe3 ( 2013-05-15 21:00:53 -0500 )edit

I read that opening ports, specifically port 80 is only for pre-Fedora 10 installs.

3Joe3 gravatar image3Joe3 ( 2013-05-15 21:32:40 -0500 )edit
0

answered 2013-05-15 21:35:07 -0500

3Joe3 gravatar image

Solved!

Found a tutorial but my Karma is not high enough to post.

DEFINITELY not one line in the Terminal but highly effective. I basically installed and configured MySQL, PHP, and MyPHPAdmin separately.

edit flag offensive delete link more

Comments

You are saying your karma isn't high enough to post. In a post. It is OK to answer your own question.

randomuser gravatar imagerandomuser ( 2013-09-22 02:21:08 -0500 )edit
0

answered 2013-09-21 20:03:44 -0500

maramyfriend gravatar image

I've got it all installed and working. My question is, now what? Does anyone know if a simple tutorial web site to get up and running with a database, set one up, query it, etc?

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-05-15 17:57:19 -0500

Seen: 4,587 times

Last updated: Sep 21 '13