HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   ISPConfig 3.0.3.3, postfix error during clean install (http://www.howtoforge.com/forums/showthread.php?t=54577)

louitz 19th October 2011 12:26

ISPConfig 3.0.3.3, postfix error during clean install
 
-Issue resolved-

Hi,
I followed the tutorial for Ubuntu 10.04 lts to install ISPConfig 3.0.3.3. During the actual install of ISPConfig (last part) I receive the following error so I assume the install failed and would need to reinstall (preferably not of course)?

1. How to remove failed install to reinstall?
2. Error:
PHP Warning: copy(/etc/postfix/main.cf): failed to open stream: No such file or directory in /root/temp/ispconfig3_install/install/lib/installer_base.lib.php on line 789

I do not see a main.cf in /etc/postfix/

Any hints would be much appreciated,

thanks

till 19th October 2011 12:31

Seems as if postfix is not installed on your server. Which tutorial did you use to install the server?

louitz 19th October 2011 12:37

Quote:

Originally Posted by till (Post 265628)
Seems as if postfix is not installed on your server. Which tutorial did you use to install the server?

Hi till thanks for your quick reply!

I used this tutorial:
http://www.howtoforge.com/perfect-se...nx-ispconfig-3

I installed postfix as per the tutorial, I will post the tap later today.

till 19th October 2011 12:51

Postfix is not installed on the server when main.cf is missing. Maybe there was a typo in the install commands, so that apt could not install it.

Please redo the whole mail installation chapter from the tutorial and then try to install ispconfig again.

louitz 19th October 2011 13:00

Quote:

Originally Posted by till (Post 265631)
Postfix is not installed on the server when main.cf is missing. Maybe there was a typo in the install commands, so that apt could not install it.

Please redo the whole mail installation chapter from the tutorial and then try to install ispconfig again.

Ok, will reinstall postfix because I do see the daemon starting when the machine boots.

Do I need to uninstall the current ispconfig installation, or just start the installer again?

till 19th October 2011 13:03

Quote:

Ok, will reinstall postfix because I do see the daemon starting when the machine boots.
Then you might try to reinstall postfix by adding "--reinstall" to the apt-get statement, as it can not work when all its config files are missing.

Quote:

Do I need to uninstall the current ispconfig installation, or just start the installer again?
Use the update.php script instead of the instll script and choose to reconfigure services during update.

louitz 19th October 2011 20:48

Quote:

Originally Posted by till (Post 265633)
Then you might try to reinstall postfix by adding "--reinstall" to the apt-get statement, as it can not work when all its config files are missing.



Use the update.php script instead of the instll script and choose to reconfigure services during update.

Hey till,
I reinstalled the postfix items using --reinstall option in apt, and noticed this message when it was completed:

"Postfix is not set up, start with
cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf <snip>"

Post fix is running, will do the update install of ISPconfig now, I'll let you know - thanks for the hint

louitz 19th October 2011 21:14

The manual mentions installing multiple packages in one syntax regarding the mail part, which is perfectly fine:
"aptitude install postfix postfix-mysql postfix-doc mysql-client mysql-server courier-authdaemon courier-authlib-mysql courier-pop courier-pop-ssl courier-imap courier-imap-ssl libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl getmail4 rkhunter binutils maildrop "

However I wasn't paying close enough attention to the output/feedback of the scripts of the various packages and missed the message:

"Postfix is not set up, start with
cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf <snip>"

This caused the following error message when setting loose the ISPConfig3 install script, and stuff didn't work afterwards:

PHP Warning: copy(/etc/postfix/main.cf): failed to open stream: No such file or directory in /root/temp/ispconfig3_install/install/lib/installer_base.lib.php on line 789

I copied main.cf as described above and started postfix, without issues.

So thanks to till for the above and below, then I reinstalled the postfix packages:

apt-get install --reinstall postfix postfix-mysql postfix-doc

And then ran the ispconfig3 update script instead of install script, and chose the 'reconfigure packages option':

php -q update.php

Admin page reachable and able to login after that, so all working fine.

I have the new ispconfig3 manual, so stuff is only starting now.

Thanks for your help!

Louis


All times are GMT +2. The time now is 10:38.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.