Installing A LAMP System With Fedora Core 6 - Page 4

7 Quota

To install quota, we run this command:

yum install quota

Edit /etc/fstab and add ,usrquota,grpquota to the / partition (/dev/VolGroup00/LogVol00):

vi /etc/fstab

/dev/VolGroup00/LogVol00 /                       ext3    defaults,usrquota,grpquota        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
sysfs                   /sys                    sysfs   defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0

Then run

touch /aquota.user /aquota.group
chmod 600 /aquota.*
mount -o remount /
quotacheck -avugm
quotaon -avug

to enable quota.

 

8 Install A Chrooted DNS Server (BIND9)

To install a chrooted BIND9, we do this:

yum install bind-chroot

Next, we change a few permissions and start BIND:

chmod 755 /var/named/
chmod 775 /var/named/chroot/
chmod 775 /var/named/chroot/var/
chmod 775 /var/named/chroot/var/named/
chmod 775 /var/named/chroot/var/run/
chmod 777 /var/named/chroot/var/run/named/
cd /var/named/chroot/var/named/
ln -s ../../ chroot
chkconfig --levels 235 named on
/etc/init.d/named start

BIND will run in a chroot jail under /var/named/chroot/var/named/. I will use ISPConfig to configure BIND (zones, etc.).

 

9 MySQL (5.0)

To install MySQL, we do this:

yum install mysql mysql-devel mysql-server

Then we create the system startup links for MySQL (so that MySQL starts automatically whenever the system boots) and start the MySQL server:

chkconfig --levels 235 mysqld on
/etc/init.d/mysqld start

Now check that networking is enabled. Run

netstat -tap

It should show a line like this:

tcp        0      0 *:mysql                     *:*                         LISTEN      2008/mysqld

If it does not, edit /etc/my.cnf and comment out the option skip-networking:

vi /etc/my.cnf

#skip-networking

and restart your MySQL server:

/etc/init.d/mysqld restart

Run

mysqladmin -u root password yourrootsqlpassword
mysqladmin -h server1.example.com -u root password yourrootsqlpassword

to set a password for the user root (otherwise anybody can access your MySQL database!).

Share this page:

10 Comment(s)

Add comment

Comments

From: statiic at: 2006-10-28 07:51:01

What about an anti virus program??

From: at: 2006-10-28 13:05:58

The ClamAV antivirus for the email is part of ISPConfig.

From: at: 2007-01-17 17:30:56

If you are going to install ISPConfig you have to be careful on the MySQL password.  Do not put !@#$%^&*() type characters in it.  While it works fine when you log onto mysql at the prompt, ISPConfig prompts you for a password which it then passes into a script.  If you use these characters you can get a strange command-line substitution.

Stick with [A-Z][a-z][0-9] and you should be fine

 -Roger

From: at: 2007-01-21 21:54:53

If you're planning tpo install the ISPconfig support, you'll need to have the MySQL headers installed in the system prior to trying to install  that package. 

 To do so, while on the PACKAGE GROUPS INSTALL page, select SERVERS, then, from in that group, select MYSQL DATABASE, then click on the OPTIONAL PACKAGES button in the lower left corner of the page.  In the dialog that opens, check the box next to "mysql-devel".

Close the OPTIONAL dialog and continue as indicated in these instructions.

From: admin at: 2007-01-22 14:05:16

...or just install mysql-devel, as shown on page 4:

yum install mysql mysql-devel mysql-server

From: at: 2006-12-26 15:56:21

please add openssl-devel to the yum install, openssl alone is not enough for ispconfig, the installation will fail without this package

From: at: 2007-04-22 05:53:43

first, I'd like to thank Falko for his tremendous patience in coming up with this how to.

 I have been using his how to tutorials since he releases it for FC5 and I really make good use of it being an IT professionnal.

 I recently tried this install and got very minor problems like in "named" but one thing that really got me itching is https.  For some reason, mod_ssl was included in one of the packages but it turns out tha mod_ssl is now not integrated.  This was the reason why I couldn't make https work.

 So there you go,  yum install mod_ssl

 Cheers!

From: at: 2007-07-06 16:20:38

Found one little hiccup, if you try to do step 6 without first doing an update, step 6 fails with transaction errors. Do the updates either through yum or the gui before step 6 and everything works like a charm. Great walkthrough.

From: at: 2007-04-01 14:15:10

Install command should be:

yum install bind-chroot caching-nameserver

Without caching-nameserver package, named start will not start. 

From: at: 2006-12-26 15:51:17

for 64 bit systems please use

vi /usr/lib64/sasl2/smtpd.conf

instead of

vi /usr/lib/sasl2/smtpd.conf

the library sits in another directory