Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th February 2009, 06:37
kcjones kcjones is offline
Junior Member
 
Join Date: Feb 2009
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default Website location problem

I just installed ubuntu 8.10 server and ISPConfig 2.2.29. I'm new to the linux environment, but everything seemed to go ok. I set up a reseller, client and web site (call it www.example.com), but have a couple of basic problems.

First, when I launch example.com, the web server picks up the index.html file in the web root - that is, in /var/www - instead of going to /var/www/web6/web, as it should. There is a symbolic link in /var/www for www.example.com which points to /var/www/web6/web.

Second, initially, I was able to get into mail config. Then I installed uebimaiu mail. Now I can't log in at all. It accepts the user@example.com user and password, thinks for moment, then fails. Is is true that there must be mail waiting before you can initially log in? I did send mail to this account from another mail account, and the mail was not returned, but there seems to be no sign of it on the server.

Thanks for any help with this.
Reply With Quote
Sponsored Links
  #2  
Old 27th February 2009, 12:49
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,703
Thanks: 819
Thanked 5,320 Times in 4,173 Posts
Default

Did you follow exactly the perfect server guide for ubuntu 8.10 to install your server?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 27th February 2009, 22:30
kcjones kcjones is offline
Junior Member
 
Join Date: Feb 2009
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Yes, I followed the perfect server guide exactly. Most things seem to work now, like proftp, ssh, mysql, and ispconfig. Between my posting and your reply, mail started to behave a little better - I can log onto the mail system now, though I don't seem to be able to send or receive mail yet.

The main issue for me is still the web site problem. Any help getting this working would be much appreciated.
Reply With Quote
  #4  
Old 28th February 2009, 12:46
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,703
Thanks: 819
Thanked 5,320 Times in 4,173 Posts
Default

Please post the last 80 - 100 lines from the apache2.conf file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 1st March 2009, 01:01
kcjones kcjones is offline
Junior Member
 
Join Date: Feb 2009
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default

The end of the apache2.conf file follows below.

Is seems that the problem has something to do with the Vhosts_ispconfig.conf, which is supposed to be included by apache2 at the end of the config file. When I first looked at the /etc/apache2/vhosts directory it contained an empty Vhosts_ispconfig.conf and dozens of files like Vhosts_ispconfig.conf_27-02-09_21-40-22. I renamed the last file to be Vhosts_ispconfig.conf, restarted some things (don't remember what) and suddenly things worked much better. However, the Vhosts_ispconfig.conf is never updated, even when adding new Sites, which just creates another file like Vhosts_ispconfig.conf_27-02-09_21-40-22. And if I run /root/ispconfig/php/php -q /root/ispconfig/scripts/writeconf.php the Vhosts_ispconfig.conf file is renamed Vhosts_ispconfig.conf<current date&time>, and the is no Vhosts_ispconfig.conf file left at all. Obviously, this is the source of the problem. I saw several other posts on the forum that talked about this, but was not able to see how to resolve it.

It appears as though this is tied into PHP as well, which does not appear to be running. I (foolishly?) changed a line in /home/admispconfig/ispconfig/lib/config.inc.php to read
$go_info["server"]["apache2_php"] = 'suphp'; which only made matters worse.





# Include of directories ignores editors' and dpkg's backup files,
# see README.Debian for details.

# Include generic snippets of statements
Include /etc/apache2/conf.d/

# Include the virtual host configurations:
Include /etc/apache2/sites-enabled/

<Directory /var/www/sharedip>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

###############ispconfig_log###############
LogFormat "%v||||%b||||%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined_ispconfig
CustomLog "|/root/ispconfig/cronolog --symlink=/var/log/httpd/ispconfig_access_log /var/log/httpd/ispconfig_access_log_%Y_%m_%d" combined_ispconfig

<Directory /var/www/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

<Directory /var/www/*/user/*/web>
Options +Includes -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

<Directory /var/www/*/cgi-bin>
Options ExecCGI -Indexes
AllowOverride None
AllowOverride Indexes AuthConfig Limit FileInfo
Order allow,deny
Allow from all
<Files ~ "^\.ht">
Deny from all
</Files>
</Directory>

Include /etc/apache2/vhosts/Vhosts_ispconfig.conf
Reply With Quote
  #6  
Old 1st March 2009, 08:11
kcjones kcjones is offline
Junior Member
 
Join Date: Feb 2009
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default

I reinstalled PHP/Ruby/Python from step 17 on page 6 of the Perfect Server guide. That seemed to fix the Vhosts_ispconfig.conf problem. It now updates properly and I can add new sites from ISPConfig. Also, it no longer leaves files like Vhosts_ispconfig.conf_27-02-09_21-40-22 lying around.

However, I still can't send or receive email with the uebimiau mail system.

Also, I have to logon using a name like web12_username@example.com, instead of simply username@example.com. Same for the user web site: the address example.com/~username is rejected but example.com/~web12_username works. This doesn't seem right.

Thanks
Reply With Quote
  #7  
Old 1st March 2009, 11:53
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,703
Thanks: 819
Thanked 5,320 Times in 4,173 Posts
Default

Please atke a look in the mail log and post the errors that you get there when you send a mail with uebimiau.

Quote:
Same for the user web site: the address example.com/~username is rejected but example.com/~web12_username works. This doesn't seem right.
Thats absolutely correct. There is no such address as example.com/~web12_username in ispconfig as usernames are web12_username and not just username
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
kcjones (2nd March 2009)
  #8  
Old 2nd March 2009, 00:30
kcjones kcjones is offline
Junior Member
 
Join Date: Feb 2009
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Thanks, till, the mail log had some useful information in it. For outgoing mail, it seems like the connection to the remote mail system was rejected because my test server is running behind a router/firewall that has a dynamic IP address. Both my local ISP and Windows Hotmail rejected the connection. Gmail, however, accepted it. So it appears that outgoing mail is working.

Incoming mail is still a problem. After I remembered to forward port 25 from the router to my server, postfix started receiving mail. However, the mail is still not reaching uebimiau. The following log message after a send from Gmail is typical:

Quote:
Mar 1 14:21:48 softtraq postfix/smtpd[16329]: connect from ag-out-0708.google.com[72.14.246.244]
Mar 1 14:21:48 softtraq postfix/smtpd[16329]: NOQUEUE: reject: RCPT from ag-out-0708.google.com[72.14.246.244]: 554 5.7.1 <web13_kcjones@tertiarygrid.com>: Relay access denied; from=<dj.welles1@gmail.com> to=<web13_kcjones@tertiarygrid.com> proto=ESMTP helo=<ag-out-0708.google.com>
Mar 1 14:21:48 softtraq postfix/smtpd[16329]: disconnect from ag-out-0708.google.com[72.14.246.244]
The email bounced back to gmail which reported:

Quote:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 554 554 5.7.1 <web13_kcjones@tertiarygrid.com>: Relay access denied (state 14).
Another problem I found in the log is that it seems that every ten minutes, mail wakes up and tries to resend some old mail from a day or so ago. It always fails because it is being rejected for the reasons above. How do I stop this or prevent it? Does the following have anything to do with it?

Quote:
Mar 1 14:46:06 softtraq postfix/smtpd[16958]: warning: cannot get certificate from file /etc/postfix/ssl/smtpd.crt
Mar 1 14:46:06 softtraq postfix/smtpd[16958]: warning: TLS library problem: 16958:error:0906D06C:PEM routines:PEM_read_bio:no start lineem_lib.c:647:Expecting: CERTIFICATE:
Mar 1 14:46:06 softtraq postfix/smtpd[16958]: warning: TLS library problem: 16958:error:140DC009:SSL routines:SSL_CTX_use_certificate_chain_file:PEM lib:ssl_rsa.c:727:
Mar 1 14:46:06 softtraq postfix/smtpd[16958]: cannot load RSA certificate and key data
Thanks again.
Reply With Quote
  #9  
Old 2nd March 2009, 10:36
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,703
Thanks: 819
Thanked 5,320 Times in 4,173 Posts
Default

Add a co-domain tertiarygrid.com withe empty hostname field to the website www.tertiarygrid.com and recreate the ssl certificates for postfix as described in the perfect setup guide.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
kcjones (4th March 2009)
  #10  
Old 4th March 2009, 00:11
kcjones kcjones is offline
Junior Member
 
Join Date: Feb 2009
Posts: 7
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

Thanks, till, looks like adding the co-domain worked.

The final problem, as described above has to do with continuous retries (sending to an external address) every 10 minutes. The send fails for the reasons discussed earlier in the post (dynamic IP not accepted), which is fair enough. However, the retries just keep happening. It begins with a line in the mail log like the following:

Quote:
Mar 3 14:43:11 softtraq postfix/qmgr[27961]: AE3253F75: from=<root@softtraq.com>, size=414, nrcpt=1 (queue active)
It looks like the qmgr is spooling these old messages and attempting to resend them every 10 minutes. Is there a way to turn off the retries or flush the queue?

Thanks.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
ISPconfig shared ip problem zinovsky General 6 27th October 2008 12:18
bind9 configuration problem Bakty1975 Server Operation 6 11th August 2008 14:04
My Website Would not Run After a Power Problem donnwar HOWTO-Related Questions 3 24th June 2008 17:26
SMTP TLS Problem with Mail Client dschmid Installation/Configuration 1 9th December 2005 01:56


All times are GMT +2. The time now is 18:19.


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