LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-02-2015, 02:40 AM   #1
jaydul
Member
 
Registered: Sep 2012
Posts: 69

Rep: Reputation: Disabled
Question How to install Centos 7.1 LAMP Stack


I want a Centos 7.1 LAMP Stack In addition to PHP, MySQL and Apache, it includes FastCGI, OpenSSL, phpMyAdmin, ModSecurity, SQLite, redis, Varnish, ImageMagick, xDebug, Xcache, OpenLDAP, ModSecurity, Memcache, OAuth, PEAR, PECL, APC, GD, cURL
COMPONENTS
- Apache 2.4.17
- MySQL 5.6.27
- PHP 7.0.0RC5
- PHPMyAdmin 4.4.13.1
- Varnish 3.0.5
- Redis 3.0.5
- ImageMagick 6.7.5
- SQLite 3.7.15.1
- ModSecurity 2.6.7
- Libraries for Couchbase 2.0.5
- Heroku client
- Git 2.6.1
- Ruby 2.2.3

How to do that my PC.My PC running with CENTOS 7.1 Minimal?

Last edited by jaydul; 11-02-2015 at 02:44 AM.
 
Old 11-02-2015, 03:09 AM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
You just need to login as root at the cli and run
Code:
yum install <pkg name>
Incidentally, you don't need the version numbers, just the name (NB: the pkg for Apache is actually called 'httpd' )
Also, yum auto-installs dependencies

You can also use
Code:
yum search <name>

# or 
yum info <name>
to get more info.

HTH
 
Old 11-02-2015, 03:16 AM   #3
jaydul
Member
 
Registered: Sep 2012
Posts: 69

Original Poster
Rep: Reputation: Disabled
yum install Redis
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.solarvps.com
* extras: mirror.us.oneandone.net
* updates: pubmirrors.dal.corespace.com
No package Redis available.
Error: Nothing to do
 
Old 11-02-2015, 03:29 AM   #4
AdultFoundry
Member
 
Registered: Jun 2015
Posts: 282

Rep: Reputation: Disabled
I've been working on this now. I started here, and it seems like it was a good start:

http://www.servermom.org/complete-ne...host-websites/

I created a non-root user, enabled key based authentication for it, you can disable root login, password login, use a password for the public key, to make everything very secure. Then you just install everything one by one yum install <package name>. Dont go for MySQL, just use the MariaDB, as it is a better choice, and it may be easier. I was stuck on MySQL for almost two days. I was troubleshooting the logs, going very deep into things, unnecessarily. One person told me - delete these four files / folders, run yum install mariadb, and it just worked right away. So if you are stuck with something, you can try that. Another thing that you can do is to look at my posts here, as like I said, I was just going over this (for the first time, my first unmanaged server).

Nano is a good text editor that you can use. It just works normally, you can enter whatever you need right away. There is other, but it may be confusing when you are new (dual mode - command / insert - I mean, nothing hard, but just use nano now, I guess).

Make notes of all the things that you are doing, and commands that you use. I personally increased the command line history to unlimited, so I can always come back to it, and learn more about commands that were used. Some people say that this is insecure, and delete the command history, especially for root, after every session, dont save any commands there too.

Here is some links that I bookmarked, along the way:

http://www.tecmint.com/things-to-do-...-installation/
how-to-install-lamp-linux-apache-mariadb-php-on-centos-7
http://www.linuxveda.com/2015/06/17/...ure-configure/
https://www.howtoforge.com/apache_ph..._centos_7_lamp
https://wiki.centos.org/HowTos/Network/SecuringSSH
https://www.digitalocean.com/communi...ld-on-centos-7

You may want to run yum install firewalld. It may be blocking all the ports by default, so you need to open them with certain commands (find my thread about it here).

I think that I should start getting used to running commands lime man <command> or <command> --help, and learning from there. It could be one of the best and fastest ways of moving forward with this.
 
Old 11-02-2015, 03:30 AM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
Linux is case sensitive...
Code:
 yum search redis

..

redis.x86_64 : A persistent key-value database
 
  


Reply

Tags
lamp



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bitnami LAMP Stack Which folder to install Applications Aus007 Linux - Newbie 1 06-26-2015 07:28 PM
LXer: How To Install LAMP Stack On Ubuntu 15.04 LXer Syndicated Linux News 0 04-29-2015 04:33 PM
LXer: How to install LAMP stack (Apache, MariaDB/MySQL and PHP) on CentOS LXer Syndicated Linux News 0 11-04-2014 09:32 AM
[SOLVED] How to install LAMP stack on PCLinux OS? cybervd Linux - Software 3 01-12-2014 12:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration