View previous topic :: View next topic |
Author |
Message |
lazloman Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/166535649241db3cca09046.jpg)
Joined: 27 Dec 2003 Posts: 343 Location: Skokie, Il. USA
|
Posted: Thu Sep 13, 2007 12:07 am Post subject: Problem with SquirrelMail and Apache |
|
|
After upgrading to Apache 2.2.4-r12, SquirrelMail would not allow me to log in. Also, when using this url:
Code: | http://<host>/squirrelmail/src/login.php |
I get the source served instead of the login screen. If I add a trailing /, I get the login screen, but after clicking OK, I get an error:
Code: |
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
|
I've uninstalled/reinstalled SquirrelMail. Run webappconfig C/U/I and gone over my Apache config files, but SM still does not work. My gut tells me that Apache is somehow at fault, but I could be wrong. I've placed this directive in http.conf:
Code: |
Alias /squirrelmail /usr/local/squirrelmail/www
<Directory /usr/local/squirrelmail/www>
Options Indexes
AllowOverride none
DirectoryIndex index.php
Order allow,deny
allow from all
</Directory>
|
Adapted of course for my hostname and paths.
Any assistance would be greatly appreciated. _________________ Gentoo x86
2x Dell Optiplex GX200
"My Break-Dancing days are over, but there's always the Funky Chicken."
--The Full Monty |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
RayDude Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/132281152442769cccbb403.jpg)
Joined: 29 May 2004 Posts: 2094 Location: San Jose, CA
|
Posted: Thu Sep 13, 2007 1:44 am Post subject: Re: Problem with SquirrelMail and Apache |
|
|
lazloman wrote: | After upgrading to Apache 2.2.4-r12, SquirrelMail would not allow me to log in. Also, when using this url:
Code: | http://<host>/squirrelmail/src/login.php |
I get the source served instead of the login screen. If I add a trailing /, I get the login screen, but after clicking OK, I get an error:
Code: |
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
|
I've uninstalled/reinstalled SquirrelMail. Run webappconfig C/U/I and gone over my Apache config files, but SM still does not work. My gut tells me that Apache is somehow at fault, but I could be wrong. I've placed this directive in http.conf:
Code: |
Alias /squirrelmail /usr/local/squirrelmail/www
<Directory /usr/local/squirrelmail/www>
Options Indexes
AllowOverride none
DirectoryIndex index.php
Order allow,deny
allow from all
</Directory>
|
Adapted of course for my hostname and paths.
Any assistance would be greatly appreciated. |
Chances are you overwrote your apache2 config with etc-update or dispatch-conf.
PHP doesn't appear to be loading.
Make sure you have this:
/etc/conf.d/apache2
Code: | APACHE2_OPTS="-D PHP5" |
NOTE: you may have other -D opts in there, don't delete them unless you are sure you don't need them.
Also make sure you have the index enabled:
/etc/apache2/httpd.conf:
Code: | DirectoryIndex index.html index.html.var index.php |
And, if you get an error message about the php module format being wrong, then you have to re-emerge PHP (with the apache2 use flag in make.conf, on the command line, or in the file /etc/portage/package.use).
I had to re-emerge SSL and PERL as well.
There may be other things wrong, just ask, I run apache and squirrel mail myself.
Raydude _________________ Some day there will only be free software. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lazloman Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/166535649241db3cca09046.jpg)
Joined: 27 Dec 2003 Posts: 343 Location: Skokie, Il. USA
|
Posted: Thu Sep 13, 2007 2:19 am Post subject: |
|
|
Sorry, I must not have been clear with my original post, but PHP pages do load properly. The rest of my PHP web pages work just fine. I have a problem with the SM login page: When I type the url w/o a trailing backslash, I get the page source. If I add the trailing slash, the page loads properly. Then after clicking the "login" button I get the error message in my original post. _________________ Gentoo x86
2x Dell Optiplex GX200
"My Break-Dancing days are over, but there's always the Funky Chicken."
--The Full Monty |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
snIP3r l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 21 May 2004 Posts: 853 Location: germany
|
Posted: Thu Sep 13, 2007 6:40 am Post subject: |
|
|
hi lazloman!
i also have installed squirrelmail. but in my case i have to do a call via https... perhaps you should try https://...
but first comment your changes made in http.conf.
HTH
snIP3r _________________ Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lazloman Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/166535649241db3cca09046.jpg)
Joined: 27 Dec 2003 Posts: 343 Location: Skokie, Il. USA
|
Posted: Thu Sep 13, 2007 12:52 pm Post subject: |
|
|
Thanks for the reply, but I still get the same error. My Apache error log shows this:
Code: |
configuration error: couldn't perform authentication. AuthType not set!: /
|
Do you have any entries in your Apache config files for SM? _________________ Gentoo x86
2x Dell Optiplex GX200
"My Break-Dancing days are over, but there's always the Funky Chicken."
--The Full Monty |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
snIP3r l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 21 May 2004 Posts: 853 Location: germany
|
Posted: Thu Sep 13, 2007 1:00 pm Post subject: |
|
|
lazloman wrote: | Thanks for the reply, but I still get the same error. My Apache error log shows this:
Code: |
configuration error: couldn't perform authentication. AuthType not set!: /
|
Do you have any entries in your Apache config files for SM? |
no i do not have any entries in my httpd.conf nor in any other apache config files. the config error is normal. for ssl use you need to define an authtype.
you could try to comment the settings in your httpd.conf, restart apache and the try the https url.
HTH
snIP3r _________________ Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic!
Last edited by snIP3r on Thu Sep 13, 2007 1:12 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lazloman Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/166535649241db3cca09046.jpg)
Joined: 27 Dec 2003 Posts: 343 Location: Skokie, Il. USA
|
Posted: Thu Sep 13, 2007 1:10 pm Post subject: |
|
|
I made the change and the error now is
Code: |
configuration error: couldn't perform authentication. AuthType not set!: /squirrelmail/src/redirect.php, referer: https://myhost/squirrelmail/src/login.php
|
_________________ Gentoo x86
2x Dell Optiplex GX200
"My Break-Dancing days are over, but there's always the Funky Chicken."
--The Full Monty |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
snIP3r l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 21 May 2004 Posts: 853 Location: germany
|
Posted: Thu Sep 13, 2007 1:36 pm Post subject: |
|
|
lazloman wrote: | I made the change and the error now is
Code: |
configuration error: couldn't perform authentication. AuthType not set!: /squirrelmail/src/redirect.php, referer: https://myhost/squirrelmail/src/login.php
|
|
hmmmm, i think you should try your former method and use the http url. there might be an issue with your ssl config. do you have enabled ssl and does it work with other sites on your server?
generally i would recommend to re-emerge php and then again squirrelmail after the upgrade of apache. this solved many problems.
HTH
snIP3r _________________ Intel i3-4130T on ASUS P9D-X
Kernel 5.15.88-gentoo SMP
-----------------------------------------------
if your problem is fixed please add something like [solved] to the topic! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lazloman Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/166535649241db3cca09046.jpg)
Joined: 27 Dec 2003 Posts: 343 Location: Skokie, Il. USA
|
Posted: Thu Sep 13, 2007 1:39 pm Post subject: |
|
|
SquirrelMail is the only SSL site I use. I'll try re emerging php and squirrelmail
Thanks _________________ Gentoo x86
2x Dell Optiplex GX200
"My Break-Dancing days are over, but there's always the Funky Chicken."
--The Full Monty |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
lazloman Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/166535649241db3cca09046.jpg)
Joined: 27 Dec 2003 Posts: 343 Location: Skokie, Il. USA
|
Posted: Thu Sep 13, 2007 7:09 pm Post subject: |
|
|
So, re-emerged php and squirrelmail, reinstalled both and ran webapp-config for squirrelmail and still can't login and my apache ssl_errorlog shows this:
Code: |
configuration error: couldn't perform authentication. AuthType not set!: /squirrelmail/src/redirect.php, referer: https://myhost/squirrelmail/src/login.php
|
I'm dyin' out here! _________________ Gentoo x86
2x Dell Optiplex GX200
"My Break-Dancing days are over, but there's always the Funky Chicken."
--The Full Monty |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
RayDude Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/132281152442769cccbb403.jpg)
Joined: 29 May 2004 Posts: 2094 Location: San Jose, CA
|
Posted: Thu Sep 13, 2007 10:13 pm Post subject: |
|
|
I'm going to get a bit more detailed now.
First in one of my vhosts (/etc/apache2/vhosts.d/some_file.conf) I have a redirect for my webmail domain...
Code: | <VirtualHost *:80>
ServerName webmail.mydomain.org
DirectoryIndex index.php
RedirectMatch permanent ^/$ https://webmail.mydomain.org
</VirtualHost> |
That makes sure all http access to webmail goes through a secure page.
Then in another vhost file:
Code: | <VirtualHost *:443>
SSLEngine on
SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /etc/apache2/ssl/mydomain.org.crt
SSLCertificateKeyFile /etc/apache2/ssl/mydomain.org.key
SSLCertificateChainFile /etc/apache2/ssl/mydomain.org.crt
ServerName webmail.mydomain.org
DocumentRoot /usr/share/webapps/squirrelmail/1.5.1-r6/htdocs
DirectoryIndex index.php
<Directory /usr/share/webapps/squirrelmail/1.5.1-r6/htdocs>
Options -Indexes FollowSymLinks MultiViews
AllowOverride All
<IfModule mod_access.c>
Order allow,deny
Allow from all
</IfModule>
</Directory>
</VirtualHost> |
The data directory of webmail must be owned by apache so apache can write to it:
Code: | chown apache:apache -R /usr/share/webapps/squirrelmail/1.5.1-r6/htdocs/data |
You also have to configure squirrelmail for pop or imap. I use imap, I like it better.
You also need ssl certificates. I get mine from cacert.org.
I'm probably forgetting something, but hopefully this will get you going.
Raydude _________________ Some day there will only be free software. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|