Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Squirrelmail and Apache2 - a workaround
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
maalth
n00b
n00b


Joined: 06 Jun 2003
Posts: 56
Location: Can't tell you...

PostPosted: Fri Jun 27, 2003 7:14 pm    Post subject: Squirrelmail and Apache2 - a workaround Reply with quote

For those who are installing squirrelmail and have apache 2 installed, you should read this.

When emerging squirrelmail, squirrelmail is looking for apache 1 config files despite the fact the apache 2 is installed. The apache2 USE flag has no effect at all. How do you get around this problem? It's very easy. You have to change a couple of lines in the ebuild file. The necessary changes will work for any available build of squirrelmail in the /usr/portage/net-mail/squirrelmail directory . I will use 1.4.0-r1 as an example.

Open the file /usr/portage/net-mail/squirrelmail/squirrelmail-1.4.0-r1.ebuild
Change the following lines:
FROM:

HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache/conf/apache.conf | cut -d\ -f2`"
HTTPD_USER="`grep '^User' /etc/apache/conf/commonapache.conf | cut -d\ -f2`"
HTTPD_GROUP="`grep '^Group' /etc/apache/conf/commonapache.conf | cut -d\ -f2`"

TO:

HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache2/conf/apache2.conf | cut -d\ -f2`"
HTTPD_USER="`grep '^User' /etc/apache2/conf/commonapache2.conf | cut -d\ -f2`"
HTTPD_GROUP="`grep '^Group' /etc/apache2/conf/commonapache2.conf | cut -d\ -f2`"

Keep in mind that you may have to do this if there is an updated version of squirrelmail. I hope this helps someone.
Back to top
View user's profile Send private message
cchapman
Guru
Guru


Joined: 16 Jan 2003
Posts: 440
Location: Fremont, NE

PostPosted: Fri Jun 27, 2003 8:34 pm    Post subject: Reply with quote

Why dont you submit a new ebuild that checks to see if Apache or Apache2 is installed.
Back to top
View user's profile Send private message
maalth
n00b
n00b


Joined: 06 Jun 2003
Posts: 56
Location: Can't tell you...

PostPosted: Fri Jun 27, 2003 9:50 pm    Post subject: Reply with quote

I may do that. Thanks for the suggestion.

--Update 28 June 2003
The ebuild has been completely changed so that it's not looking for any version of apache.
Back to top
View user's profile Send private message
cchapman
Guru
Guru


Joined: 16 Jan 2003
Posts: 440
Location: Fremont, NE

PostPosted: Tue Jul 01, 2003 6:19 pm    Post subject: Reply with quote

you da man.
Back to top
View user's profile Send private message
puke
Tux's lil' helper
Tux's lil' helper


Joined: 05 Oct 2002
Posts: 128

PostPosted: Thu Jul 17, 2003 2:16 pm    Post subject: Reply with quote

Yeah nice one, it works! :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum