History / Status
Introduction
All of our servers will start with this install. This base server is based on Fedora Core 4.
Initial Install
- Boot from the Fedora Core 4 CD
- At the boot prompt enter: linux ext3
- Move through the installer. Choose the Server install.
- Partition your hard drive as desired.
- Stick with the DHCP for the networking.
- Disable the firewall and SELinux.
- Choose customize packages.
- On the packages screen go to the Server section. Be sure the following are selected: Server Configuration Tools, Web Servvvrs, DNS Name Serer, and MySQL Database. Click next.
- Run through the rest of the install and reboot when done.
The First Boot
- login and type: yum upgrade
- Agree to it. Then reboot.
Installing Additional Packages
- Let's get some php modules installed. Type the following:
> yum install php-gd php-imap php-mysql php-ncurses php-snmp php-mbstring
- I perfer to use postfix as my mail agent. for the mail server we recompile postfix.
> yum install postfix
- Some misc commands
> yum install createrepo ncftp
- I have some rpms that are not in the standard repos or they need to be recompiled. So we need setup a new repo. Here is the repo I created.
> nano -w /etc/yum.repos.d/campworld.repo
[campworld]
name=Campworld repo
baseurl=http://www.campworld.net/repos/FC4/
enabled=1
gpgcheck=0
- Now lets install webmin.
> yum -y install webmin
- We are going to need gcc.
> yum -y install gcc
- We need SSL support in perl
> yum -y perl-Net-SSLeay
Webmin Configuration
- connct to the webmin server. Use the ip assigned to your server. Currently SSL is not enabled. an example URL would be http://192.168.2.2:10000
- First thing to do is enable SSL for webmin. Click on the SSL Encryption icon. Some errors will appear. Click on the link for webmin to download and install.
- You will see the progress of the download. At the bottom of the page click the click to continue button. The bottom of the page should say the install is successfull.
- Log out of webmin.
- Now restart webmin.
> /etc/init.d/webmin restart
- Now log back into webmin over SSL and configure your server.
Installing phpMyAdmin
I perfer to phpMyAdmin to manage my MySQL databases. There is no rpm for this package. This package is easy to install.
- Download the latest version of phpMyAdmin from www.phpmyadmin.net
- unpack the package
> tar -xzvf phpMyAdmin-2.7.0-pl1.tar.gz
- Move it to the appropriate place.
> mv phpMyAdmin-2.7.0-pl1 /usr/share/
- Configure phpMyAdmin
> cd /usr/share/phpMyAdmin-2.7.0-pl1
> cp config.default.php config.inc.php
> nano -w config.inc.php
- 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$
- Save the file.
- Create the apache config file for phpmyadmin and restart apache.
> echo "alias /webdb /usr/share/phpMyAdmin-2.7.0-pl1" > /etc/httpd/conf.d/phpMyAdmin.conf
> service httpd restart
- now test it out. Be sure to set a root password
Getting root's mail
You need to get root's mail. Create a .forward file in root's directory and enter the email address you want root's mail to go to.
Conclusion
That's it for the basic server setup. See the other pages for info on configuring servers for virtual webhosting or virtual email hosting.
Comments