The Perfect Server - OEL 5.4 [ISPConfig 3] - Page 3
3.2 Common configurationOn all computers, we must to do some additional configuration.
Edit /etc/hostsEdit the /etc/hosts file to include all the computers names/IPs: vi /etc/hosts The file must have: # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.netbck.com localhost 192.168.1.211 mysql.netbck.com mysql 192.168.1.212 http.netbck.com http 192.168.1.213 email.netbck.com email
Check internet accessSimply, ping any Internet address. ping -c 5 www.google.com You must receive an answer like: PING www.l.google.com (209.85.229.99) 56(84) bytes of data. If you have problems accessing the Internet try adding the default Gateway Device: vi /etc/sysconfig/network The file will look like (substitute eth0 with the device you use to access the Internet): NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=mysql.netbck.com GATEWAY=192.168.1.1 GATEWAYDEV=eth0 And then execute: service network restart
Prepare the system to download online softwareWe will download software online. Now, we add the needed repositories. Execute: cd /etc/yum.repos.d Change all occurrences of enable=0 with enable=1. The file must contain: name=Enterprise Linux $releasever GA - $basearch - base baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/0/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=1 [el5_u1_base] name=Enterprise Linux $releasever U1 - $basearch - base baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/1/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=1 [el5_u2_base] name=Enterprise Linux $releasever U2 - $basearch - base baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/2/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=1 [el5_u3_base] name=Enterprise Linux $releasever U3 - $basearch - base baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/3/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=1 [el5_u4_base] name=Enterprise Linux $releasever U4 - $basearch - base baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/4/base/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=1 [el5_addons] name=Enterprise Linux $releasever - $basearch - addons baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/addons/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=1 [el5_oracle_addons] name=Enterprise Linux $releasever - $basearch - oracle_addons baseurl=http://public-yum.oracle.com/repo/EnterpriseLinux/EL5/oracle_addons/$basearch/ gpgkey=http://public-yum.oracle.com/RPM-GPG-KEY-oracle-el5 gpgcheck=1 enabled=1 Add more repositories and upgrade the installed packages: rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
Synchronize the server clockTo maintain all systems synchronized, simply execute: chkconfig --levels 235 ntpd on
4 Install MySQLNow, we are ready to install MySQL, Phpmyadmin and ISPConfig on computer mysql.
Install MySQL itselfThe installation of MySQL is very simple. Execute: yum install mysql-server mysql This simple command installs MySQL and its dependencies. If you want that MySQL databases are created on another disk or partition, now you can mount it at /var/lib/mysql and give permission to mysql:mysql Start the mysql engine and set the password for the main user root. Execute: chkconfig --level 235 mysqld on Now, we can login into mysql: mysql -u root -p Welcome to the MySQL monitor. Commands end with ; or \g. We can connect to mysql from localhost. In order to allow the conexion from mysql.netbck.com, we need to execute (connected to mysql): mysql> SET PASSWORD FOR 'root'@'mysql.netbck.com' = PASSWORD('xxxx');
Install phpMyAdmin (optional)phpMyAdmin is a free software tool written in PHP intended to handle the administration of MySQL over the World Wide Web. First, install Apache and PHP and allow Autostart of Apache by executing: yum install httpd php php-mysql php-mbstring mysql-devel mhash gcc libmcrypt Install php_mcrypt. Execute: cd /tmp And install phpMyAdmin: yum install phpmyadmin By default, phpMyAdmin is only accessible from localhost. You can allow the access from other computers by editing the /etc/httpd/conf.d/phpmyadmin.conf file. vi /etc/httpd/conf.d/phpmyadmin.conf Add lines of type Allow. Example of a complete file: # # Web application to manage MySQL # You must fill the phpMyAdmin blowfish_secret with some sentence. vi /usr/share/phpmyadmin/config.inc.php Put some string in the line $cfg['blowfish_secret'] = ''; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ Example: $cfg['blowfish_secret'] = 'something'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */ Restart Apache... service httpd restart ... and, now, phpMyAdmin is accessible at http://mysql.netbck.com/phpmyadmin.
Install and configure ISPConfigOn a distributed configuration, it is needed to install and configure ISPConfig on every computer. All ISPConfig needs is a local MySQL database and all ISPConfigs, except the first to install, must join the existing environment. On the other hand, we must define the computers that can be ISPConfig webservers. For this installation, the first computer to install ISPConfig and the unique ISPConfig WebServer is mysql.netbck.com. To install and configure ISPConfig, we must execute: cd /tmp
ISPConfig is accessible at http://mail.netbck.com.
By default, all options are enabled.
We must entry in mysql.netbck.com option and uncheck all options but DB-Server:
|






Recent comments
15 hours 54 min ago
1 day 1 hour ago
1 day 2 hours ago
1 day 5 hours ago
1 day 10 hours ago
1 day 10 hours ago
1 day 12 hours ago
1 day 22 hours ago
2 days 3 hours ago
2 days 5 hours ago