LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-05-2015, 11:22 AM   #1
papakota
Member
 
Registered: May 2015
Distribution: Ubuntu 14.04
Posts: 56

Rep: Reputation: Disabled
Need advice on distro differences LAMP-wise


Hello!
I've got Ubuntu Desktop 14.04 and I plan to install LAMP on it. One of my friends (he uses SUSE) has this nice video course here: LinuxCBT SLES-10 Edition
My question is if I can borrow and follow along its lessons in regards to configuring (NOT installing -- that I would do myself) Apache directives, change Apache's config files etc.
That's the main thing that interests me, but in your answer you can also touch other aspects that you see as relevant to my question.
Thx!
 
Old 06-05-2015, 11:29 AM   #2
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 291

Rep: Reputation: 70
About the only thing you might have problems with is different distros set the httpd.conf file in various different locations. Once you figure out which is the correct conf file to edit, everything you need to know would come from the Apache website. BEST place for good documentation is from the source!

Configuration Files
http://httpd.apache.org/docs/2.2/configuring.html
 
Old 06-05-2015, 12:12 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,501

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
I think you would be better off reading through the official Ubuntu documentation at the link below. Many Linux distributions use apache:apache as the user:group for apache while Ubuntu uses www-data:www-data. There is also no httpd.conf file in Ubuntu 14.04 (current LTS) but rather an apache2.conf file in the /etc/apache2 directory and there are different files than commonly used.

https://help.ubuntu.com/community/ApacheMySQLPHP
 
1 members found this post helpful.
Old 06-05-2015, 12:57 PM   #4
papakota
Member
 
Registered: May 2015
Distribution: Ubuntu 14.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Thank you for your replies! Well, of course, I'm NOT gonna rely solely on that particular SLES video course. I just found it very thorough and deep. I'm aware that the location of certain Apache configuration files in a system might vary, but I think I will figure that out. What worries me a little is that they use Apache 2.2 in there and I'm gonna use a current version which is 2.4 What do you think of that?
 
Old 06-05-2015, 01:15 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
my personal likes so....

suse but with the SELinux kernel ( custom built )
or
RHEL and the clones ( CentOS and ScientificLinux )

i like SE and on a server it is a nice bit of added security

now suse being well SUSE!!!!

they are doing things DIFFERENTLY!!! than every other rpm based system

the httpd.conf is broken up into a few different parts

easy to figure out IF you have built and manually installed
-- Apache,phpmyadmin,mariadb,awstats , and so on --

a few times


so for SUSE you CAN NOT!!!!!! use the rpm/redhat guides
you MUST!!! use the SUSE guides

Last edited by John VV; 06-05-2015 at 01:20 PM.
 
Old 06-05-2015, 01:16 PM   #6
joec@home
Member
 
Registered: Sep 2009
Location: Galveston Tx
Posts: 291

Rep: Reputation: 70
Quote:
Originally Posted by papakota View Post
Thank you for your replies! Well, of course, I'm NOT gonna rely solely on that particular SLES video course. I just found it very thorough and deep. I'm aware that the location of certain Apache configuration files in a system might vary, but I think I will figure that out. What worries me a little is that they use Apache 2.2 in there and I'm gonna use a current version which is 2.4 What do you think of that?
I would just double check the information between the two knowledge bases. I am a bit rusty with Apache so somewhat out of date, but typically there is not a whole lot of differences between minor renditions. At most you might find some obscure feature in a newer addition compared to an older one. I don't think it will give you much trouble though.

Apache HTTP Server Documentation (Current for 2.0 2.2 2.4)
http://httpd.apache.org/docs/

The primary config information on all three versions, the pages pretty much all have the same information:

2.0
http://httpd.apache.org/docs/2.0/mod/core.html
2.2
http://httpd.apache.org/docs/2.2/mod/core.html
2.4
http://httpd.apache.org/docs/2.4/mod/core.html


The main thing at least for starting out is how to build individual hosts, and how to load balance the server:

<VirtualHost> Directive
http://httpd.apache.org/docs/2.4/mod...ml#virtualhost

Apache MPM prefork
http://httpd.apache.org/docs/2.4/mod/prefork.html

RLimitCPU Directive
http://httpd.apache.org/docs/2.4/mod...html#rlimitcpu

RLimitMEM Directive
http://httpd.apache.org/docs/2.4/mod...html#rlimitmem

RLimitNPROC Directive
http://httpd.apache.org/docs/2.4/mod...ml#rlimitnproc

Those are really the primary things to know about Apache, but of course there is always something else, thus tons of additional available directives. Most of it though you will leave as default and never need to touch except for very rare occasions. Beyond that, you would then get into modules that technically are separate but plug into Apache such as PHP. So while you commonly think of PHP as part of the web server, it really is a plugin for the web server.

SetHandler Directive
http://httpd.apache.org/docs/2.4/mod...tml#sethandler

PHP Documentation
http://php.net/docs.php

Good Luck!
 
Old 06-05-2015, 01:33 PM   #7
papakota
Member
 
Registered: May 2015
Distribution: Ubuntu 14.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Okay, great! Thank you both for your replies!
 
Old 06-05-2015, 02:12 PM   #8
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
DistrosDefaultLayout - Httpd Wiki
 
Old 06-05-2015, 04:00 PM   #9
papakota
Member
 
Registered: May 2015
Distribution: Ubuntu 14.04
Posts: 56

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Habitual View Post
Thanks, it's very useful info!
 
Old 06-08-2015, 11:00 AM   #10
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by papakota View Post
Thanks, it's very useful info!
You are welcome, Patrik
 
  


Reply



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
Split a file, byte-wise, not character-wise. stf92 Linux - Newbie 4 11-17-2010 06:43 AM
how to Block a site in a Firewall or Router by Protocol wise & host wise. shahid khan Linux - Security 2 06-26-2009 04:13 PM
What's the easiest multimedia-wise distro right now? KeeperOS Linux - Newbie 3 02-04-2008 09:01 PM
GENTOO ROCKS !!!!! after a long search, im home distro wise ! qwijibow Linux - Distributions 28 08-30-2004 08:06 AM
bandwidth allocation by user wise and ip wise basbosco Linux - Networking 1 11-12-2003 02:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:19 AM.

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