Comments on The Perfect Server - CentOS 7 x86_64 (nginx, Dovecot, ISPConfig 3)
The Perfect Server - CentOS 7 x86_64 (nginx, Dovecot, ISPConfig 3) This tutorial shows how to prepare a CentOS 7 x86_64 server for the installation of ISPConfig 3, and how to install ISPConfig 3 on it. ISPConfig 3 is a webhosting control panel that allows you to configure the following services through a web browser: nginx 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 nginx, not Apache. The ISPConfig 3 apache perfect server tutorial is available here.
41 Comment(s)
Comments
Hello,
GREAT Instructions, Thank you. It was a big help for someone that is extremely new at this. I have 1 suggestion and 1 correction I would like to recomend for #18.
For the BIND install command, I would like to suggest to run the chroot version from the start as that will set up a jailed environment for BIND initially rather then making the change later.
# yum -y install bind-chroot bind-utils
The second item is a typo in the named.conf internal file information. On line 21 you have file "data/named.run"; it is missing a / before the data directory. It should be file "/data/named.run";.
Again, thank you.
Bill.. .. .
Me too
I have fourth Gen i5 CPU and unable to install CentOS on my System any solutions it gives error unsupported hardware.
Any Solution to it
Regards,
Nice instruction. One thing to note:
Choose the mysql-password wisely. The ISPConfig Installation script doesnt detect/convert special characters. If you use eg ", the install script runs wild and it apparently breaks the later ISPConfig installation.
Hi, thanks for really great tutorial but I have problem with phpMyAdmin. I can't access..
Here is log from /var/log/php-fpm/www.error.log :
PHP Fatal error: Call to undefined function __() in /usr/share/phpMyAdmin/libraries/core.lib.php on line 242
I set chown 755 on directory (/etc/phpMyAdmin) but it doesn't work.
When i try install server on virtualbox this problem appear too...
Can anybody help me ?
Got stuck at the end of Number 4, it tried all the mirrors and failed
yum -y install net-tools NetworkManager-tuiError downloading packages: 1:NetworkManager-tui-0.9.9.1-29.git20140326.4dba720.el7_0.x86_64: [Errno 256] No more mirrors to try. 1:NetworkManager-glib-0.9.9.1-29.git20140326.4dba720.el7_0.x86_64: [Errno 256] No more mirrors to try. 1:NetworkManager-0.9.9.1-29.git20140326.4dba720.el7_0.x86_64: [Errno 256] No more mirrors to try.
Hello,
after install all my service like webserver ftp ...are offline
Web-Server: Online FTP-Server: Online SMTP-Server: Online POP3-Server: Offline IMAP-Server: Offline DNS-Server: Online mySQL-Server: Onlinehow to solve this?
Regards.
Hello,
now is ok maybe the service start after some second/minutes...
Hello,
howto set file2ban for sent admin mail when system is under attack?
Regards.
There is a little bug here, the roundcubmail configuration installer path was not working for me : Insetad of :
http://serverIp:8081/roundcubemail/installer
I used :
http://serverIp:8081/webmail/installer or http://serverIp:8081/squirrelmail/installer
Hope It helps Someone
Where was phpmyadmin installed?
https://myipaddress:8080/phpmyadmin
I'm getting a 404 error when trying to manage a new database I created.
Are there seperate instructions for installing phpmyadmin?
PHPmyadmin is on:
https://myipaddress:8081/phpmyadmin
Hi,
What is roundcubemail logging ID/PW?
The email address and password of the mail account that you created in ISPConfig.
I've gone through most of the steps without problems, however when trying to access domain on port 8080 or 8081 I get ERR_CONNECTION_REFUSED
These instructions worked fairly well, but for some reason I'm not getting the [ok] or [failed] message when restarting services.
Also when attempting to finish the roundcube installation I'm getting a 404 when I try to access http://my.ip.address:8081/roundcubemail/installer
I can access the ispconfig login just fine and I get a nice nginx test page when I just use my ip address for a url.
My IP is not resolving any of the above, but the install was successful... UGH.
DO NOT INSTALL ON VPS ( yum -y install net-tools NetworkManager-tui )
How do i Update the PHP version do to the High risk vulnerabilities
The PHP packages are from CentOS, you update the with the usual yum update command.
i try yum update still my version is 5.4 i want to upgrade to 5.5 or 5.6
with yum update php wont work to...
[root@htp ~]# yum update php
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirror.dionipe.net
* epel: mirror.dionipe.net
* extras: mirror.dionipe.net
* updates: mirror.dionipe.net
192 packages excluded due to repository priority protections
No packages marked for update
[root@htp ~]# yum update php
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* base: mirror.dionipe.net
* epel: mirror.dionipe.net
* extras: mirror.dionipe.net
* updates: mirror.dionipe.net
192 packages excluded due to repository priority protections
No packages marked for update
Thank you. I received a big help by your guidance. I have completed the installation of Ispconfig3 on the Centos7. I am now upgrading php 5.4.16 to php 5.5 +. I hope that your guidance is upgraded. Thank you.
I was interested in this until the author recommended disabling SELinux because it's easier than making it work...
As you might know, the package builders from CentOS miss to publish SELinux Rule sets for most of their packages in the main and epel repository, that's why most CentOS software will stop working with SELinux on. So that's not specific to this setup and not related to the use of ISPConfig. It would be nice off course to use SELinux, so feel free to contribute a rule set.
If using this setup, and you're messing around with permissions for nginx, you'd do well to backup your current set of permissions just incase:
find /var/www/*/web/ -printf 'chmod %#m "%p"\n' > /root/permission-backup_`date +%s`.sh ; find /var/www/*/web/ -printf 'chown %u:%g "%p"\n' > /root/owner-backup_`date +%s`.sh
Are you serious ?
Configuring a firewall means to disable it ?
Sure. I guess you never used ispconfig, otherwise you would know that it ships with its own firewall engine so the centos firewall has to be disabled as it collides with the ispconfig firewall.
Is it possible to use VSFTPD instead of PureFTPD and if so what is needed to do it? Can I just replace the instructions for PureFTPD and use VSFTPD and configure that?
Thanks
No, that's not possible as vsftpd does not support virtual users in MySQL.
Hi.
I couldn't install roundcube using the intaller link. (The one in the screenshot works !)
It should be : http://192.168.0.100:8081/squirrelmail/installer instead of http://192.168.0.100:8081/roundcubemail/installer
I had many errors like : connect to /var/run/clamd.amavisd/clamd.sock failed, attempt #1: Can't connect to a UNIX socket /var/run/clamd.amavisd/clamd.sock
In your other tutorial with Apache instead of nginx, there are aditional packages installed for clam, at step 13 :
yum install amavisd-new spamassassin clamav-server clamav-data clamav-update clamav-filesystem clamav clamav-scanner-systemd clamav-devel clamav-lib clamav-server-systemd unzip bzip2 perl-DBD-mysql
Also, ISPConfig created /etc/amavisd.conf, but amavis uses /etc/amavisd/amavisd.conf.
So rename the conf file and create a symlink to the file created by ispconfig :
ln -s /etc/amavisd.conf /etc/amavisd/amavisd.conf
I've used CentOS 7.2
The tutorial on this page tutorial is for CentOS 7.0 only and not 7.2. The perfect server tutorial for CentOS 7.2 is here: https://www.howtoforge.com/tutorial/perfect-server-centos-7-2-apache-mysql-php-pureftpd-postfix-dovecot-and-ispconfig/
Disabled selinux, Disabled Firewall...What?????
ISPConfig ships with it's own firewall, so the CentOS firewall has to be disabled as you can not run two firewalls at the same time and regarding SELinux, the setup won't work when it is on, but feel free to write a rule set and post it if you want to use SELinux.
Thanks for the guide, it's really easy for me to follow. But I am having this problem with the roundcube.
I logged in and tried to send emails, but it popped up the error message:
SMTP Error (451): Failed to add recipient "**@**.com" (4.3.0 <*****@****.com>: Temporary lookup failure).
I have searched online for help, changed to utf8_general in phpmyadmin, rebooted and I don't know what else to do.
Thank you!
After adding quota to the root partition and restarting, I have lost ssh access. The connection keeps timing out. Any clue to what could be causing this? I have to reinstall centos now.
xfs quota is handled by xfs_quota, these instructions are for ext fs
Quota did not work for me.
BUt what's more important the ssl seems not correct, although FIrefox complains and whe i call a php file from another program to read something from db then i get an 443 error so there is something with https, how do i fix this? thanks for the further great tutorial
SSL is probably fine, it's just a self-signed cert which means that you have to accept the SSL error message in Firefox to continue.
Thank you for this tutorial. I was wondering if you would ever do an update for CentOS 7.6 and PHP7.3 as thiese instructions seem a little outdated. The part where user and group is changed to apache due to some programs like Mailman should be able to work with nginx as user and group by now, right?
Thanks again!
I believe in chapter 13 Install Amavisd-new, SpamAssassin, And ClamAV the string
yum -y install amavisd-new spamassassin clamav clamd clamav-update unzip bzip2 unrar perl-DBD-mysql
should be
yum -y install amavisd-new spamassassin clamav clamd clamav-update unzip bzip2 unar perl-DBD-mysql
in section 20 on CentOS need to add symlink for python : ln -s /usr/bin/python3 /usr/bin/python
add the link before you start ./configure