Comments on The Perfect Server CentOS 7.2 with Apache, Postfix, Dovecot, Pure-FTPD, BIND and ISPConfig 3.1
This tutorial shows how to install ISPConfig 3.1 on a CentOS 7.2 (64Bit) server. ISPConfig 3 is a web hosting 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.
47 Comment(s)
Comments
It would be cool to have this with the Horde 5 webmail front end.
python gives a .git error solve it by running this in the install dir
sed \ -e 's/(git describe --always)/(git describe --always 2>\/dev\/null)/g' \ -e 's/`git describe --always`/`git describe --always 2>\/dev\/null`/g' \ -i $( find . -type f -name Makefile\* -o -name version.sh )
Item 12 refers to "ISPConfig 3 allows you to use mod_php, mod_fcgi/PHP5, cgi/PHP5, and suPHP on a per website basis". Whereas the tutorial for 7.1 includes instruction to build suPHP the 7.2 tutorial doesn't. Is it still necessary to build it?
SuPHP should not be used anymore, that's why it was removed from this tutorial. Nevertheless, ISPConfig supports it for downwards compatibility.
I am getting an error when I do a security check "Deprecated SSL Protocol Usage"..
how do I to SSL 2.0 and SSL 3.0, and use TLS 1.0 or newer?
Why don't you edit /etc/hostname here like you do in the debian perfect server tutorials...
In the second step you have us run the command "cat /dev/null > /etc/named.conf" for me this completely wipes my named.conf file. Am I getting the syntax wrong or did I miss a vital step where this data was written to /dev/null? Also, thanks for such a great tutorial!
Yes, thats the intention of the command as its easier to wipe the whole file then deleting each line inside one by one. Then in the next command you edit the file with nano and insert the content as shown in the tutorial. and proceed with the next steps of the tutorial. There is no syntax error, just follow the tutorial step by step until the end, I just tested it here again. The tutorial is finished after you installed ispconfig, the servicces are configured by ispconfig so do not try to test them in unfinished installation stabe before you installed ispconfig
How to fix following error?
I can't sent mail to other mail server.
Aug 19 22:59:01 whm.server.com systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
Aug 19 22:59:01 whm.server.com systemd[1]: Unit amavisd.service entered failed state.
Aug 19 22:59:01 whm.server.com systemd[1]: amavisd.service failed.
Aug 19 22:59:01 whm.server.com systemd[1]: amavisd.service holdoff time over, scheduling restart.
Aug 19 22:59:01 whm.server.com systemd[1]: start request repeated too quickly for amavisd.service
Aug 19 22:59:01 whm.server.com systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
Aug 19 22:59:01 whm.server.com systemd[1]: Unit amavisd.service entered failed state.
Aug 19 22:59:01 whm.server.com systemd[1]: amavisd.service failed.
you need to configure the server's hostname. It needs to respond to the fqdn.
hostname -f
server.example.com
Also check in /etc/amavisd/amavisd.conf, if the variable $ mydomain is the FQDN.
$ Domain = 'server.example.com';
Thanks for the (always) great tutorial!
Just wanted to note that I had to write ",usrquota,grpquota" in /etc/fstab for the /var partition. I used standard partitioning, not LVM.
If I don't want mail and DNS, can I just skip the install of Postfix, Dovecot and BIND? Or will I run into trouble while installing ISPConfig?
I received this error while installing ISPConfig
[INFO] service Postgrey not detected
yum -y install postgrey; systemctl enable postgrey; systemctl start postgrey
Thank you for a great walk thru / tutorial on CentOS server setup, I have my website running now and it works perfectly. The downside is that Roundcube will not connect to the server no matter what I try. I believe that I am missing something (setup wise) in the roundcube section, as when reached the "installer page" on the browser it did not match your guide at all.
Everytime I start roundcube it errors out immediately "cannot find /config.inc.php" and tells me to read installation instructions... Strange as I have verified the file exists and is as it should be in /etc/roundcubemail/config.inc.php on my servier.
Any thoughts?
CB
I installed that configuration server with ovh domain name and i receive :"Rejected request from RFC1918 IP to public server address".
does someone can help me to resolve that problem.
thanks..
Just installed:
1. postgrey not available unless "yum install postgrey"
2. mailman installed as per howto however upon ispconfig installation i get [INFO] service Mailman not detected
although
[root@ares install]# systemctl status mailman
? mailman.service - GNU Mailing List Manager
Loaded: loaded (/usr/lib/systemd/system/mailman.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2016-09-28 22:52:16 EEST; 39min ago
Main PID: 23422 (mailmanctl)
CGroup: /system.slice/mailman.service
??23422 /usr/bin/python /usr/lib/mailman/bin/mailmanctl -s start
??23423 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=ArchRunner:0:1 -s
??23424 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=BounceRunner:0:1 -s
??23425 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=CommandRunner:0:1 -s
??23426 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=IncomingRunner:0:1 -s
??23427 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=NewsRunner:0:1 -s
??23428 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=OutgoingRunner:0:1 -s
??23429 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=VirginRunner:0:1 -s
??23430 /usr/bin/python /usr/lib/mailman/bin/qrunner --runner=RetryRunner:0:1 -s
The second part regarding mailman not detected by ISPconfig although it is enabled and running.. now I've reverted back to the snapshot taken right before ispconfig installation.. so until I install ISPconfig again, where should I look to ensure ispconfig will detect mailman?
ISPConfig uses the which command to find mailman. Seems as if CentOS installs mailman outside of the path so that the which command can not find it. Find out where mailman is installed and add its path to the PATH variable or alternativly place a symlink to mailman in a place that is in the path like /usr/bin.
"which" indeed didn't ring any bell. Searching for a file named mailman produced the below.
/usr/lib/mailman/mail/mailman
/usr/lib/mailman/scripts/mailman
Probably the first is worth creating a link to.. I'll give it a try.
To fix the Mailman issue:
ln -s /usr/lib/mailman/mail/mailman /usr/bin/mailman
One addition so dnssec works:
After installing haveged we need to enable the "init" script. :-)
systemctl enable haveged
@Till,
What about [INFO] service Metronome XMPP Server not detected? Can't see any info on it in the tutorial.
Hi, I'm at the step where I've added rootflags=uquota,gquota to grub and rebooted. I can no longer log in through Putty, but I can access the server through a web console. My server is in Emergency mode. Here is the error that I'm receiving:
[1.444280] EXT4-fs (vda1): Unrecognized mount option "uquota" or missing value
Could someone point me in the right direction to correct this?
Thanks
I've same issue. Do you resolve the issue?
I've destroy server after add rootflags=uquota,gquota to grub and rebooted.
Same issue here. As soon as I reboot after modifying grun the server goes into emergency mode. Assuming the grub changes didn't work. It is a dedicated server for my websites, ok to skip this entire section?
Works fine here on a dedicated server. But you can skip that of you don't want to limit web site sizes.
Hi, I had the same issue. Its maybe a little late to fix your issue, but hopefully this helps others. I'm with Digital Ocean so I had them switch me out of "Emergency Mode" and into "Recovery Mode". From there I mounted my file system so I could have access to my files. I opened up the grub file "/etc/default/grub" and removed "rootflags=uquota,gquota" from one of the lines. After rebooting still the same error. I then went back into "Recovery Mode" and located the file "/boot/grub2/grub.cfg" and copied it to "/boot/grub2/grub.cfg_bak2" to create a backup for safe keeping. I then replaced "/boot/grub2/grub.cfg" with the backup file "/boot/grub2/grub.cfg_bak". After that everything worked again, YAY!!! It took a lot of faithless research to accomplish this. It saved me from having to redo my server, with my 30 hour long setup. Every other article I came across recommended starting from scratch, which was not an option. Good luck to anyone that has this problem.
hellohave installed the perfect server centos 7.2 with ispconfig.but if i want to see the webinterface there is no connection.apache is running, have firewall and NAT to the internal ip, all ports are forwarding.i always get connection timeout. putty is working with the offizial ip, so portforwarding is working correctly.have installed the vmware image ( OVA )what can i do?thanks a lot
Please make a post in the forum so we can help you to find out what is blocking port 8080 in your setup.
Help. Amavisd service status=255 when trying to start.
Are there not changes required to be made of the configuration file in order for this to start?
Thanks
Hi, thanks for the guide, this is really useful.
I'm trying to figure out why you choosed to place certbot in /opt/ while jailkit goes under /usr/local/src.
Thanks
Great tutorial - thanks.
Freshclam also needs an edit to /etc/sysconfig/freshclam which disables Freshclam by default.
Hello,
I passed the error below:
status=deferred (SASL authentication failed; cannot authenticate to server 127.0.0.1[127.0.0.1]: no mechanism available)
Fix:
yum install cyrus-sasl-sql cyrus-sasl-plain cyrus-sasl-lib
Thanks
Hello,
I followed the example stepp by step and I always end in the same place:
[Tue Nov 08 14:58:31.182430 2016] [mpm_prefork:notice] [pid 1393] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.1e-fips mod_fcgid/2.3.9 PHP/5.4.16 mod_python/3.5.0- Python/2.7.5 configured -- resuming normal operations
[Tue Nov 08 14:58:31.182464 2016] [core:notice] [pid 1393] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Nov 08 14:58:46.253038 2016] [fcgid:warn] [pid 1401] (104)Connection reset by peer: [client 172.26.10.254:52818] mod_fcgid: error reading data from FastCGI server
[Tue Nov 08 14:58:46.253110 2016] [core:error] [pid 1401] [client 172.26.10.254:52818] End of script output before headers: index.php
and I got 500 error in the website. Any suggestion?
There was an error in the tutorial. "uquota" should be "usrquota" and "gquota" should be "grpquota".
The part of letscert doesn't work for me. Yesterday I had my websites installed with a certificate and my browser accepted the certificate and the site as save. It had a green url. Today all the site are marked as unsafe again. Also one site is not reacheble anymore, the url is redirected to another site on the server. Any idea what might be wrong?
If your sites were working before then the letsencrypt part of this tutorial must have worked for you, otherwise, your sites would not had "green" ssl. Post your problem in the forum if you need help to find out what has been changed in your setup so that lets encrypt stopped working.
I have some problems after following these instructions. The mailman gives me some errors. I'm gonna explain,
In the panel of the ISP I created a list named All-users, but when I click on the icon with the envelope the link gives me a 404 error, because it places port 8080 and the link ends in mailman, that is: https://mail.domain.com:8080/mailman If I correct the link and place https://mail.domain.com/mailman/listinfo it opens OK but it only shows the list I created when I installed mailman, ie the list called mailman, not showing the list I created in the ISPconfig panel ( The list called All-users)
Any help on this 2 errors (bad link, and bad lists)?
Thank you
Hi; this package does not exist...
yum -y install getmail
I tried http://repoforge.org/use/
but the archive does not seem to be available
Thanks
I have issues with amavisd with this tutorial (not using clamd). I managed to start amavis by adding :
"ln -s /etc/amavisd/amavisd.conf /etc/amavisd.conf"
then going to
"/etc/init.d/"
and starting manually
amavisd
but I'm not sure if it will work after server restart. How can I fix error after starting:
systemctl start amavisd.service
throws:
â amavisd.service - Amavisd-new is an interface between MTA and content checkers.
Loaded: loaded (/usr/lib/systemd/system/amavisd.service; enabled; vendor preset: disabled)
Active: failed (Result: start-limit) since Wed 2017-01-04 22:27:59 CET; 7s ago
Docs: http://www.ijs.si/software/amavisd/#doc
Process: 4781 ExecStart=/usr/sbin/amavisd -c /etc/amavisd/amavisd.conf (code=exited, status=13)
Main PID: 21101 (code=exited, status=0/SUCCESS)
Jan 04 22:27:58 cp.weboteka.net systemd[1]: amavisd.service: control process exited, code=exited status=13
Jan 04 22:27:58 cp.weboteka.net systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
Jan 04 22:27:58 cp.weboteka.net systemd[1]: Unit amavisd.service entered failed state.
Jan 04 22:27:58 cp.weboteka.net systemd[1]: amavisd.service failed.
Jan 04 22:27:59 cp.weboteka.net systemd[1]: amavisd.service holdoff time over, scheduling restart.
Jan 04 22:27:59 cp.weboteka.net systemd[1]: start request repeated too quickly for amavisd.service
Jan 04 22:27:59 cp.weboteka.net systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..
Jan 04 22:27:59 cp.weboteka.net systemd[1]: Unit amavisd.service entered failed state.
Jan 04 22:27:59 cp.weboteka.net systemd[1]: amavisd.service failed.
Hello, i don´t know, but at the finished of configuration everything seems ok, but i can not connect email server, i create a domain a an email account but through email client the SMTP and IMAP does not response.
I did have the same problem with amavis, I made /etc/amavisd/amavisd.conf 755 -> chmod 755 /etc/amavisd/amavisd.conf this worked for me.
I now also have the mailproblem, I finished the tut succesfull but the mail doesn't work, I made a client, add a mail domain, add a mailaccount, roundcube doesn't let me in
Thank you for your very comprehensive turorial,
For the benefit of those who follow I encountered the following issues (some of which are mentioned above)
install of modphp fails.
This post outlines the error and the fixhttp://www.aboutmonitoring.com/compiling-apache-mod_python-module-centos-7-redhat-7/
mailman does not work by default. The following fixes it
ln -s /usr/lib/mailman/mail/mailman /usr/bin/mailman
heveged needs to be enabled:
systemctl enable haveged
postgrey is not installed, solution is:
yum -y install postgrey; systemctl enable postgrey; systemctl start postgrey
amavisd needed to be enabled as per above.
Will report back once I have done some more testing
Again many thanks
Gary
HP microserver Gen8
Centos 7.2
Tutorial as at 20 Jan 2017
in step 13, if you get an error with:
File "/usr/lib64/python2.7/site-packages/mod_python/version.py", line 3 version = "fatal: Not a git repository (or any of the parent directories): .git
SyntaxError: EOL while scanning string literal
Edit the dist/version.sh file
#GIT=`git describe --always`
And remove the .$PCH from the line: echo $MAJ.$MIN.$PCH
I have followed this guide and everything went fine.
However when I load https://myip:8080, I was getting the Apache test page. I commented out the /etc/httpd/conf.d/welcome.conf lines and restarted Apache. Now I get a directory listing instead of any page. If I try to go to https://myip:8080/ispconfig then I get a 404 error. Ideas?
port no. 8080 is not listening.....