LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-15-2005, 09:47 AM   #1
FiveFlat
Member
 
Registered: May 2003
Location: N. California
Distribution: FC3 2.6.9
Posts: 110

Rep: Reputation: 15
manually install mysql, php, and apache or install from CD?


I have been using Fedora Core 1 on my old PentiumII 550 machine for years. When I was learning (I still am) about mysql, php, and apache, all the tutorials talked as though these packages were manually installed in /usr/local/ so I removed all those packages via add/remove programs and then manually installed and compiled.

I recently 'inherited' and new HP 2.4GHz P4 and since I 'played' around with my old install's kernel so much, I decided to start fresh with this new machine.
So now my question is, does Fedora install these packages in odd places? Is it important that I compile myself and place them in /usr/local or is it just fine to install these packages from the CD and accept the odd location Fedora places them? (if they are infact odd locations)
 
Old 12-15-2005, 10:03 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
RPM/default install

When it comes to installing software, at least for newbies like me,
it's in general a good idea to stick to 2 simple rules:
-always use the latest, stable version available (if possible);
-use as much as you can the "standard" installations (eg on CD, from RPMs)
You can find RPMs on the internet easily.

In case of Apache, configuration can be difficult (you need to install additional modules,
etc).

You can practically always go for the "compilation and install" (typically tar -xvzf; ./configure; ./make;
sudo ./make install, in which case you can mostly configure where your software is installed.
If so, I advise you to:
-either stick with the defaults that the software installation uses (easiest way);
-or put all software in a few directories, to make your system configuration easier:
for instance, put all your locally installed software in /usr/local; your system stuff
goes in /usr and /bin, system administration stuff in /sbin or /usr/sbin; etc.

When you don't go for the compile&install, but use let's say an RPM or an installation CD,
the installation will put the software in it's default place for you. This means you don't
really need to worry where it's put.
 
Old 12-15-2005, 11:04 AM   #3
azucaro
Member
 
Registered: Jan 2005
Location: Washington, D.C.
Distribution: Arch (Custom), CentOS
Posts: 239

Rep: Reputation: 30
I think the Apache RPM on Redhat uses the configuration directive --enable-layout=RedHat. That means that the data directory is /home/httpd/html and the configuration directory is /etc/httpd/conf/. While a lot of people use that, it isn't what is defined as the "standard" layout (./configure --enable-layout=Apache).

From Apache 'configure' page:
Quote:
Define a directory layout
--enable-layout=LAYOUT
Configure the source code and build scripts to assume an installation tree based on the layout LAYOUT. This allows you to separately specify the locations for each type of file within the Apache HTTP Server installation. The config.layout file contains several example configurations, and you can also create your own custom configuration following the examples. The different layouts in this file are grouped into <Layout FOO>...</Layout> sections and referred to by name as in FOO. The default layout is Apache.

Last edited by azucaro; 12-15-2005 at 11:10 AM.
 
Old 12-15-2005, 01:04 PM   #4
FiveFlat
Member
 
Registered: May 2003
Location: N. California
Distribution: FC3 2.6.9
Posts: 110

Original Poster
Rep: Reputation: 15
Okay - so being at work I decided to try to "yum install php mysql mysql-server php-mysql" I tried them individually, together, I cannot get past dependencies. I have always had these kinda problems with yum. This is always so frustrating. Will I have these dependency problems when I get home and try to install off the CD?
 
Old 12-15-2005, 01:05 PM   #5
FiveFlat
Member
 
Registered: May 2003
Location: N. California
Distribution: FC3 2.6.9
Posts: 110

Original Poster
Rep: Reputation: 15
btw - Apache was installed, even though I unchecked it on the initial installation! It was installed in /etc/httpd/conf/ too, so I was okay there.
Just need mysql and php
 
Old 12-15-2005, 01:12 PM   #6
azucaro
Member
 
Registered: Jan 2005
Location: Washington, D.C.
Distribution: Arch (Custom), CentOS
Posts: 239

Rep: Reputation: 30
You'll have the same dependencies, because they are the same packages.

If you have package maintenance built into your install cds (yes, Fedora does), that would be your best bet because while you will still have your dependencies there, the cd should figure out which rpms you need off of the cd to satisfy them. The downside is that you are getting dated rpms. The upside...it works!

The command to get you to the package menu on Fedora escapes me since it has been a while since I ran FC, but I remember selecting checkboxes for the packages I wanted and it would prompt me to put the appropriate install CD# into the drive.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
apache 2, php 5 and mysql 5 install and configure librano Linux - Enterprise 3 11-13-2005 05:52 AM
Apache, PHP, MySQL Install SpiderIRE Linux - Software 3 10-03-2005 04:50 AM
Install/Upgrade Apache, PHP and Mysql RHEL WS 3.0 LotekDBA Red Hat 0 05-10-2004 12:32 PM
how do i install apache php and mysql ashokn Linux - Software 2 04-30-2004 06:20 AM
How do I find and install MySQL/Apache/PHP? jefx Linux - Software 3 04-26-2003 04:33 PM


All times are GMT -5. The time now is 12:31 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration