Comments on The Perfect Server - CentOS 6.5 x86_64 (Apache2, MySQL, PHP, PureFTPD, Postfix, Dovecot and ISPConfig 3)
The Perfect Server - CentOS 6.5 x86_64 (Apache2, Dovecot, ISPConfig 3) This tutorial shows how to prepare a CentOS 6.5 x86_64 server for the installation of ISPConfig 3, and how to install ISPConfig 3. ISPConfig 3 is a webhosting control panel that allows you to configure the following services through a web browser: Apache web server, Postfix mail server, MySQL, BIND nameserver, PureFTPd, SpamAssassin, ClamAV, Mailman, and many more. Since version 3.0.4, ISPConfig comes with full support for the nginx web server in addition to Apache; this tutorial covers the setup of a server that uses Apache, not nginx.
25 Comment(s)
Comments
I installed this Perfect Server onto two vps machines last year, and everything worked as planned. I just tried installing it on a third vps and had a few issues.
system-config-firewall-ui errored with a dbus error message. I had to 'service messagebus restart' to correct that.
Also, when installing phpMyAdmin, there was no config.inc.php file to edit. Copying this file from a previous install caused a lot of errors when starting phpMyAdmin, although it did run. Error messages were like:
$cfg['Servers'][$i]['pmadb'] ... not OK [ Documentation ] $cfg['Servers'][$i]['relation'] ... not OK [ Documentation ] General relation features: Disabled $cfg['Servers'][$i]['table_info'] ... not OK [ Documentation ]Display Features: Disabled
...
Great tutorial, just did it on CentOS 6.6. ISPConfig site says Debian is recommended, but I want ISPConfig to manage OpenVZ containers too and can't install OpenVZ on Debian 7.8.0. Maybe someday I can... Can I expect weird stuff when using ISPConfig on CentOS instead of Debian?
A few things regarding my installation, perhaps some readers may benefit with it...
(1) CentOS 6.6 using a "Basic Server" install has a broken system-config-firewall-tui package. This can be solved by installing some missing dependencies:
# yum install system-config-firewall (yes, without the "tui")
I experienced a mysterious crash after doing this (something failed when shutting down the system) so I wasn't very confident about my installation. So I did this: a "Minimal" install, and when finished I manually installed the "Basic Server" packages like this:
# yum groupinstall "base" "console-internet" "core" "debugging" "directory-client" "hardware-monitoring" "java-platform" "large-systems" "network-file-system-client" "performance" "perl-runtime" "server-platform"
(2) RPMForge has renamed itself to RepoForge, and EPEL can be installed more easily (yum install epel-release). Don't forget to set EPEL's priority to 10.
(3) I was playing with my repo's priorities. I recommend: just don't. I installed the antivirus stuff from RepoForge instead of EPEL which caused the following command to fail:
# chkconfig --levels 235 clamd.amivisd on
...just because /etc/init.d/clamd.amivisd was missing.
When installing PureFTPd one uncomments the line "TLS 1" in /etc/pure-ftpd/pure-ftpd.conf. This setting is lost after the last step of this howto (installing ISPConfig), so as a last step... uncomment it again and restart the PureFTPd service.
Or else... trouble connecting using FTP. :)
Just discovered an easier workaround for failing system-config-firewall-tui on CentOS 6.6...
Just install CentOS as "Basic Server". When installed, first do "yum -y update" and reboot.
I've succesfuly setup the server and everything works like charm. Also installed vnc+xrdp to have remote desktop for like cloud use.
The thing is, from webmail and thunderbird using localhost from the vnc session my emails connect send and receive ok.
I can't connect from outside the server, i've started by testing SSL/TLS, and no encryption, plain password all ports for imap + smtp, nothing works when i try to connect from home. Maybe these ports are blocked thru the firewall (iptables), is there a way to check these out cause i'm out of ideas..
Please respond, thank you!
what is the default user name and password for squirrelmail ...
we have not configured it when installing. please help me
There is no default user or password. You login to squirrelmail with the email address and password of a mail account that you created in ISPConfig.
do ispconfig manage fail2ban config?i don't see any log came out from it,while i see a lot of failed attempt in /var/log/secure
No, ISPConfig is not managing the Fail2ban configuration.
creating certificate for pure-ftpd doesn't work. where does pure-ftpd load certificate?
the right setting for Pure-FTPd certificate location is /etc/pki/pure-ftpd/pure-ftpd.pem
Just follow the tutorial. Choosing a different path will cause the setup to fail later as ISPConfig expects the pure-ftpd certificate in the path that is used in this tutorial.
Actually when accessing the phpmyadmin, it said: You don't have permission to access /phpmyadmin on this server. What happend?
Hi Bim,
I need to modify the file /etc/httpd/conf.d/phpMyAdmin.conf in order to allow remote users and add following Lines to reduce the error.
<Directory "/usr/share/phpMyAdmin/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Allow,Deny Allow from all </Directory>
I have installed ISP Config but the iptables are not updated with the firewall rules set in ispconfig control panel.
Am I missing something?
I successfully installed ISPConfig 3 from the begining of the tutorial. when i try to browse https://:8080 then i am directed to the Apache default page rather than ispconfig login. help in it. My os is Centos 6.5.
because due to missing of virtual hosting in your server
Correct link for suphp:
wget http://www.suphp.org/download/suphp-0.7.2.tar.gz
404 not found anyone have the new link ?
rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
8 Quota
(If you have chosen a different partitioning scheme than I did, you must adjust this chapter so that quota applies to the partitions where you need it.)
It means that if have separated home partiton I should implement quota on "/home" partition? Right?
Yes and no. The /home partition is not used at all, so it does not need any quota. But if you have a separate /var partition, then you would have to enable quota for that.
"Edit /etc/fstab and add ,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 to the / partition (/dev/mapper/vg_server1-lv_root): "
If I have separated partition /home , /var should I implement quota for this partitions instead of " / " partition?
Add quota to the /var partition instead as the websites are located there. /home is not used on this setup.
Sorry, newbie here. There seems to be something worng with step 7: "rpm --import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt" I get:
curl: (6) Couldn't resolve host 'apt.sw.be'
error: http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt: import read failed(2).
quick search shows the repositiry no longer exists, is there another?
Thank you
CentOS 6 is really old and outdated, don't use it anymore for new installations. Better use CentOS 7 if it has to be CentOS https://www.howtoforge.com/tutorial/perfect-server-centos-7-apache-mysql-php-pureftpd-postfix-dovecot-and-ispconfig/ or even better Ubuntu 18.04 or Debian 10 which are easier to install and maintain.