PDA

View Full Version : Non-Perfect Server CentOS 6 + LAMP (webserver) + ISPCongig 3 setup tutorial



Fli
06-20-2013, 02:44 PM
This is sumarized and compressed installation tutorial of this one: http://www.howtoforge.com/perfect-server-centos-6.0-x86_64-ispconfig-3-p3

This whole tutorial alas DO NOT works!, we are getting this error:
http://www.howtoforge.com/forums/showthread.php?t=61848
http://www.howtoforge.com/forums/showthread.php?t=61227


The commands are coppied to this tutorial and made so it minimises most of the time. If you are experienced server admin, you will go thru each provided command and check it whether it suits your needs.

The tutorial is made for Centos 6 x86, 64bit. If you have other release, look bellow is bold, ornage text in first command, you may need to add another version file.

Note, Disclaimer: I dont guarantee that following guide, following text will work for you. Be sure you can restore your server from backup before proceeding.

Installing Webserver, ISPConfig on Centos: (quick way) :)

cd /etc/yum.repos.d;rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm;yum install mod_fcgid httpd-itk

Run:

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY*;rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt;wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm;rpm -ivh rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm;rm -rf rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm;yum update -y;yum install ntp httpd mod_ssl mysql-server php php-mysql php-mbstring phpmyadmin -y;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-mssql php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel mod_fcgid php-cli httpd-devel -y;yum install pure-ftpd bind bind-utils -y;yum install fail2ban -y;chkconfig --levels 235 fail2ban on;/etc/init.d/fail2ban start;yum install rkhunter -y;chkconfig --levels 235 httpd on;/etc/init.d/httpd start;chkconfig --levels 235 pure-ftpd on;/etc/init.d/pure-ftpd start;yum install postfix -y;chkconfig --levels 235 mysqld on;/etc/init.d/mysqld start;chkconfig --levels 235 sendmail off;chkconfig --levels 235 postfix on;/etc/init.d/sendmail stop;/etc/init.d/postfix start;service mysqld restart;service httpd restart;yum remove dovecot dovecot-mysql;mysql_secure_installation
it will add important repository, download and install webserver components and start mysql setup. Above command can take like 10 minutes of time. You will then see: Enter current password for root (Enter for none)"

So do this:
1. 2x Enter key
2. enter your new mysql root password
3. re-enter your new mysql root password
4. 4x Enter key

Run:

vi /usr/share/phpmyadmin/config.inc.php

Find:

$cfg['Servers'][$i]['auth_type'] = 'cookie';
keyboard up and down and when found hit "a" key and then change word "cookie" to "http". When changed, do Ctrl+C keyboard shortcut and then write :wq

# Maybe you can (I COULD NOT) login PHPMyAdmin with user root and your mysql root password:
http://YOUR_SERVER_IP/phpmyadmin/

Optional: IF YOU WANT to use SSL on your server, you will need to install it here (http://www.howtoforge.com/perfect-server-centos-6.0-x86_64-ispconfig-3-p5) in the middle of the page "Now we configure PureFTPd to allow FTP and TLS sessions"

Optional: IF YOU WANT to install Squirelmail webmail manager, find out how here: http://www.howtoforge.com/perfect-server-centos-6.0-x86_64-ispconfig-3-p6

Run:

cp /etc/named.conf /etc/named.conf_bak;cat /dev/null > /etc/named.conf;vi /etc/named.conf

Then hit "a" key and copy & paste following text:

//
// named.conf
//
// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS
// server as a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//
options {
listen-on port 53 { any; };
listen-on-v6 port 53 { any; };
directory "/var/named";
dump-file "/var/named/data/cache_dump.db";
statistics-file "/var/named/data/named_stats.txt";
memstatistics-file "/var/named/data/named_mem_stats.txt";
allow-query { any; };
recursion yes;
};
logging {
channel default_debug {
file "data/named.run";
severity dynamic;
};
};
zone "." IN {
type hint;
file "named.ca";
};
include "/etc/named.conf.local";
Then after paste (right mouse click), do Ctrl+c shortcut to stop editing, then write :wq

Run:

touch /etc/named.conf.local;chkconfig --levels 235 named on;/etc/init.d/named start
wait a minute, it will generate key

Optional: Webalizer AWstats install

yum install webalizer awstats perl-DateTime-Format-HTTP perl-DateTime-Format-Builder -y;cd /tmp;wget http://mirrorservice.org/sites/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/vlogger-1.3.tar.gz;tar xvfz vlogger-1.3.tar.gz;mv vlogger-1.3/vlogger /usr/sbin/;rm -rf vlogger*

ISPConfig (control panel itself) install

wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz;tar xfz ISPConfig-3-stable.tar.gz;cd ispconfig3_install/install/;php -q install.php;rm -rf ../../ISPConfig-3-stable.tar.gz;rm -rf ../../ispconfig3_install

Then do:
1. 5x Enter key
2. your mysql root password
3. 10x Enter key
4. "n" key as not to use SSL + enter

Done. Access your ISPConfig via web browser: yourserverIP:8080 or yourhostname:8080

purs
07-07-2013, 08:31 PM
Hi,

Thank you for your post, it worked for me on Installation

But when I login as

https://my server ip:8080

I get message of

Apache 2 Test Page
powered by CentOS

But can not find Ispconfig login screen

Let me know

Thanks