From Campworld

LinuxServersFC7: HOWTO Fedora Core 7 Base Server Setup

History / Status

Introduction

All of our servers will start with this install. This base server is based on Fedora Core 7.

Initial Install

Boot the install DVD or CD.

The graphical install loads and we're ready to go.

First boot

Reboot the machine when the install finishes. The OS will boot. Let the config screen time out. Then log in.

Now we need to disable selinux.

1. Edit /boot/grub/grub.conf and add selinux=0 to the kernel line. Here's an example grub file with the change.

 
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/xvda3
#          initrd /initrd-version.img
#boot=/dev/xvda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.15-1.2054_FC5xenU)
        root (hd0,0)
        kernel /vmlinuz-2.6.15-1.2054_FC5xenU ro root=LABEL=/ selinux=0
        initrd /initrd-2.6.15-1.2054_FC5xenU.img

2. Edit /etc/selinux/config and change SELINUX=enforcing to SELINUX=disabled
3. now reboot the server.

The Second Boot

Login and type:
> yum upgrade
Agree to what it wants to do then set back and wait. when done reboot.

Installing Additional Packages

Webmin Configuration

Installing phpMyAdmin

I perfer to phpMyAdmin to manage my MySQL databases. There is no rpm for this package. This package is easy to install.

  1. If you haven't already done so, start MySQL.
  2. Its time to set the root password.
    > /usr/bin/mysqladmin -u root password 'thepassword'
    > /usr/bin/mysqladmin -p -u root -h localhost.localdomain password 'thepassword'
  3. Download the latest version of phpMyAdmin from www.phpmyadmin.net
  4. unpack the package
    > tar -xzvf phpMyAdmin.tar.gz
  5. Move it to the appropriate place.
    > mv phpMyAdmin /usr/share/
  6. Create the apache config file for phpmyadmin and restart apache.
    > echo "alias /webdb /usr/share/phpMyAdmin" > /etc/httpd/conf.d/phpMyAdmin.conf
    > service httpd restart
  7. Configure phpMyAdmin
    > cd /usr/share/phpMyAdmin
    > cp libraries/config.default.php config.inc.php
    > nano -w config.inc.php
  8. Locate each of the following lines and be sure each has the following settings.
    $cfg['Servers'][$i]['auth_type'] = 'http'; // Authentication method (con$
    $cfg['Servers'][$i]['user'] = 'root'; // MySQL user
    $cfg['Servers'][$i]['password'] = ''; // MySQL password (only nee$
  9. Save the file.
  10. now test it out.

Getting root's and other's mail

You need to get some local system user's mail. We'll use postfix's virtual file to get the emails to the right place.

1. Add the following to /etc/postfix/virtual

 
root       admin@yourdomain.com
postmaster admin@yourdomain.com
abuse      admin@yourdomain.com

2. Now add the configuration option to main.cf
> postconf -e "virtual_alias_maps = hash:/etc/postfix/virtual"
3. Just a couple commands to wrap everything up.
> postmap /etc/postfix/virtual
> /etc/init.d/postfix restart

Conclusion

That's it for the basic server setup. This is an example of a standard linux server setup. See the other pages for info on configuring servers for virtual webhosting or virtual email hosting.

Comments

TB?01 August 2010, 05:18

you are not specifying the full directory of what you are doing, it is very important, for those who are just following your step, try to specify your directory.

TB?01 August 2010, 05:13

If everybody is a prof like you then there is no need to come to your site

You are training as if all are prof.

sorry to say this is not good for beginner.

anyway thanks for the little you have done

there is a little problem here: try to run this on a new linux yourself.

Installing phpMyAdmin

I perfer to phpMyAdmin to manage my MySQL databases. There is no rpm for this package. This package is easy to install.

   1. If you haven't already done so, start MySQL.
   2. Its time to set the root password.
      > /usr/bin/mysqladmin -u root password 'thepassword'
      > /usr/bin/mysqladmin -p -u root -h localhost.localdomain password 'thepassword'
   3. Download the latest version of phpMyAdmin from www.phpmyadmin.net
   4. unpack the package
      > tar -xzvf phpMyAdmin.tar.gz 

thanks.

you are not specifying the full directory of what you are doing, if is very important, for you are just following you step my step, not just only the code

Wthompson?24 September 2007, 13:23

i have been using your guide to setup my base server. but your link to your repos says they do not exist. is it possible to get a new link to these files?

RE: -- wget http://www.campworld.net/repos/FC7/campworld.repo

Retrieved from http://www.campworld.net/thewiki/pmwiki.php/LinuxServersFC7/FC7BaseServer
Page last modified on August 01, 2010, at 05:18 AM