The Perfect Server - CentOS 5.3 x86_64 [ISPConfig 3] - Page 5
14 Set MySQL Passwords And Configure phpMyAdminStart MySQL: chkconfig --levels 235 mysqld on Then set passwords for the MySQL root account: mysqladmin -u root password yourrootsqlpassword Now we configure phpMyAdmin. We change the Apache configuration so that phpMyAdmin allows connections not just from localhost (by commenting out the <Directory "/usr/share/phpmyadmin"> stanza): vi /etc/httpd/conf.d/phpmyadmin.conf
Next we change the authentication in phpMyAdmin from cookie to http: vi /usr/share/phpmyadmin/config.inc.php
Then we create the system startup links for Apache and start it: chkconfig --levels 235 httpd on Now you can direct your browser to http://server1.example.com/phpmyadmin/ or http://192.168.0.100/phpmyadmin/ and log in with the user name root and your new root MySQL password.
15 Install Amavisd-new, SpamAssassin And ClamAVTo install amavisd-new, spamassassin and clamav, run the following command: yum install amavisd-new spamassassin clamav clamd unzip bzip2 unrar perl-DBD-mysql Then we start freshclam, amavisd, and clamd... chkconfig --levels 235 amavisd on ... and create some necessary directories: mkdir /var/run/amavisd /var/spool/amavisd /var/spool/amavisd/tmp /var/spool/amavisd/db
16 Installing Apache2 With mod_php, mod_fcgi/PHP5, And suPHPISPConfig 3 allows you to use mod_php, mod_fcgi/PHP5, cgi/PHP5, and suPHP on a per website basis. mod_fcgid is not available in the official CentOS repositories, but there's a package for CentOS 5.x in the centos.karan.org testing repository. We enable the repository as follows: cd /etc/yum.repos.d/ Next we open /etc/yum.repos.d/kbsingh-CentOS-Extras.repo... vi /etc/yum.repos.d/kbsingh-CentOS-Extras.repo ... and set gpgcheck to 0 and enabled to 1 in the [kbs-CentOS-Testing] section:
Afterwards we can install Apache2with mod_php5, mod_fcgid, and PHP5: yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-mbstring php-mcrypt php-mhash php-mssql php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel mod_fcgid php-cli httpd-devel Next we open /etc/php.ini... vi /etc/php.ini ... and change the error reporting (so that notices aren't shown any longer) and add cgi.fix_pathinfo = 1 at the end of the file:
Next we install suPHP: cd /tmp Then we add the suPHP module to our Apache configuration... vi /etc/httpd/conf.d/suphp.conf
... and create the file /etc/suphp.conf as follows: vi /etc/suphp.conf
Finally we restart Apache: /etc/init.d/httpd restart
17 Install PureFTPdPureFTPd can be installed with the following command: yum install pure-ftpd Then create the system startup links and start PureFTPd: chkconfig --levels 235 pure-ftpd on
18 Install MyDNSThere's no MyDNS rpm package for the x86_64 architecture, and building MyDNS from the sources on CentOS 5.3 x86_64 fails because of some incompatibilities with the mysql-devel package. Therefore we install the MyDNS rpm package for i386 which works on x86_64 as well: wget http://mydns.bboy.net/download/mydns-mysql-1.1.0-1.i386.rpm When the system boots, MyDNS must be started after MySQL. The MySQL startup link has the priority 64 on CentOS, so the MyDNS startup link must have a priority between 65 and 99. Therefore we open the MyDNS init script... vi /etc/init.d/mydns ... and change
to
Then we create the startup links: chkconfig --levels 235 mydns on We don't start MyDNS now because it must be configured first - this will be done automatically by the ISPConfig 3 installer later on.
19 Install Vlogger And WebalizerVlogger and webalizer can be installed as follows: yum install webalizer perl-DateTime-Format-HTTP perl-DateTime-Format-Builder cd /tmp
20 Install JailkitJailkit is needed only if you want to chroot SSH users. It can be installed as follows (important: Jailkit must be installed before ISPConfig - it cannot be installed afterwards!): cd /tmp
21 Install fail2banThis is optional but recommended, because the ISPConfig monitor tries to show the log: yum install fail2ban chkconfig --levels 235 fail2ban on
22 Install rkhunterrkhunter can be installed as follows: yum install rkhunter
|
www.seamlessenterprise.com
One number. One voicemail. Seize the lead. Sprint Mobile Integration.
www.seamlessenterprise.com
One Number. One Voicemail.
Make it easier for clients to reach you. Turn your desk phone and mobile phone into one with Sprint Mobile Integration.
www.seamlessenterprise.com
One number. One voicemail. Sprint Mobile Integration.
www.seamlessenterprise.com
AT&T Synaptic Compute as a Service. Boost your power on demand.
Trial: IBM Cognos Express Reporting, Analysis & Planning
Learn benefits of Simpana software.
View the Gartner Video




print: 

Recent comments
13 hours 16 min ago
16 hours 5 sec ago
21 hours 25 min ago
23 hours 52 min ago
1 day 36 min ago
1 day 1 hour ago
1 day 3 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 13 hours ago