LinuxQuestions.org
Help answer threads with 0 replies.
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, 12:22 PM   #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, 12:29 PM   #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, 01:12 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,331

Rep: Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406Reputation: 1406
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, 01: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, 02:15 PM   #5
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,218

Rep: Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517Reputation: 2517
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 02:20 PM.
 
Old 06-05-2015, 02: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, 02: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, 03:12 PM   #8
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,573
Blog Entries: 15

Rep: Reputation: Disabled
DistrosDefaultLayout - Httpd Wiki
 
Old 06-05-2015, 05: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, 12:00 PM   #10
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: OSX Sierra
Posts: 8,573
Blog Entries: 15

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 07: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 05:13 PM
What's the easiest multimedia-wise distro right now? KeeperOS Linux - Newbie 3 02-04-2008 10:01 PM
GENTOO ROCKS !!!!! after a long search, im home distro wise ! qwijibow Linux - Distributions 28 08-30-2004 09:06 AM
bandwidth allocation by user wise and ip wise basbosco Linux - Networking 1 11-12-2003 03:54 AM

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

All times are GMT -5. The time now is 05:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration