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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 12th May 2014, 23:40
SparkyRih SparkyRih is offline
Member
 
Join Date: Dec 2012
Posts: 35
Thanks: 2
Thanked 0 Times in 0 Posts
Default Squirrelmail can't inclde required dirs

So I'm running into serveral issues since the upgrade to the latest ISPConfig and Ubuntu 13.10 (Apache 2.4) updates...

The issue that I'm having now is that I can't access the webmail (SquirrelMail), at first I got a 404 error wen I tried to go to "example.com/webmail", but that's an easy issue, so that's solved, but now I get the following issue in the logs:

Failed opening required '/usr/share/squirrelmail/index.php' (include_path='.:/usr/share/php:/usr/share/pear') in Unknown on line 0

I think it has something to do with Apache 2.4, because it can't include outside of the www dir anymore? Or am I at the wrong track?

Edit: Even when I empty (comment out) the squirrelmail index.php and put just one echo in it it gives the same error (or there msut be a cache somewhere that I don't know of)...
__________________
Schattorie Solutions
Making IT Possible While Keeping IT Simple

Last edited by SparkyRih; 13th May 2014 at 01:07.
Reply With Quote
Sponsored Links
  #2  
Old 13th May 2014, 07:45
srijan srijan is offline
HowtoForge Supporter
 
Join Date: Feb 2014
Location: New Delhi, India
Posts: 584
Thanks: 4
Thanked 76 Times in 74 Posts
Send a message via Skype™ to srijan
Default

Hi

Run the following command to enable the Apache modules suexec, rewrite, ssl, actions, and include (plus dav, dav_fs, and auth_digest if you want to use WebDAV):

Quote:
a2enmod suexec rewrite ssl actions include
Quote:
a2enmod dav_fs dav auth_digest
Further to initiliase the squirrelmail with apache2.4
we need to enable the squirrelmail with apache2.4 use

Quote:
a2enconf squirrelmail
__________________
Br//
Srijan
Reply With Quote
  #3  
Old 13th May 2014, 10:39
SparkyRih SparkyRih is offline
Member
 
Join Date: Dec 2012
Posts: 35
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Al modules are already enabled (I've ran the command).

But I can't run the a2enconf:

ERROR: Conf squirrelmail does not exist!

But the squirrelmail.conf is in the /etc/apache2/conf.d folder...
__________________
Schattorie Solutions
Making IT Possible While Keeping IT Simple
Reply With Quote
  #4  
Old 13th May 2014, 10:42
srijan srijan is offline
HowtoForge Supporter
 
Join Date: Feb 2014
Location: New Delhi, India
Posts: 584
Thanks: 4
Thanked 76 Times in 74 Posts
Send a message via Skype™ to srijan
Default

Please paste your

Quote:
ls -l /etc/apache2
__________________
Br//
Srijan
Reply With Quote
  #5  
Old 13th May 2014, 10:48
SparkyRih SparkyRih is offline
Member
 
Join Date: Dec 2012
Posts: 35
Thanks: 2
Thanked 0 Times in 0 Posts
Default

total 100
-rw-r--r-- 1 root root 7107 May 5 15:00 apache2.conf
-rw-r--r-- 1 root root 9376 May 5 14:46 apache2.conf.bk
drwxr-xr-x 2 root root 4096 May 5 16:59 conf-available
drwxr-xr-x 2 root root 4096 May 12 23:21 conf.d
drwxr-xr-x 2 root root 4096 May 1 01:16 conf-enabled
-rw-r--r-- 1 root root 1782 Jul 20 2013 envvars
-rw-r--r-- 1 root root 31063 Jul 16 2012 magic
drwxr-xr-x 2 root root 12288 May 5 17:03 mods-available
drwxr-xr-x 2 root root 4096 May 13 10:27 mods-enabled
-rw-r--r-- 1 root root 768 May 1 00:21 ports.conf
-rw-r--r-- 1 root root 315 Jul 20 2013 ports.conf.dpkg-dist
drwxr-xr-x 2 root root 4096 May 12 23:18 sites-available
drwxr-xr-x 2 root root 4096 May 5 13:54 sites-enabled
__________________
Schattorie Solutions
Making IT Possible While Keeping IT Simple
Reply With Quote
  #6  
Old 13th May 2014, 10:55
srijan srijan is offline
HowtoForge Supporter
 
Join Date: Feb 2014
Location: New Delhi, India
Posts: 584
Thanks: 4
Thanked 76 Times in 74 Posts
Send a message via Skype™ to srijan
Default

Proceed as follows

Quote:
cd /etc/apache2/conf-available/
ln -s ../../squirrelmail/apache.conf squirrelmail.conf
/etc/init.d/apache2 reload
then
Quote:
vi /etc/apache2/conf-available/squirrelmail.conf
Quote:
[...]
<Directory /usr/share/squirrelmail>
Options FollowSymLinks
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/squirrelmail/tmp
php_admin_value open_basedir /usr/share/squirrelmail:/etc/squirrelmail:/var/lib/squirrelmail:/etc/hostname:/etc/mailname
php_flag register_globals off
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php
</IfModule>

# access to configtest is limited by default to prevent information leak
<Files configtest.php>
order deny,allow
deny from all
allow from 127.0.0.1
</Files>
</Directory>
[...]
Further

Quote:
mkdir /var/lib/squirrelmail/tmp
chown www-data /var/lib/squirrelmail/tmp
a2enconf squirrelmail
/etc/init.d/apache2 reload
__________________
Br//
Srijan
Reply With Quote
  #7  
Old 13th May 2014, 11:00
SparkyRih SparkyRih is offline
Member
 
Join Date: Dec 2012
Posts: 35
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thanks, I'll try it this evening...
__________________
Schattorie Solutions
Making IT Possible While Keeping IT Simple
Reply With Quote
  #8  
Old 13th May 2014, 19:37
SparkyRih SparkyRih is offline
Member
 
Join Date: Dec 2012
Posts: 35
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Works great! Thanks again!

Should've seen that one line in the config file was commented, I think that was the main issue, but it works... Even the additional features that I've added to squirrelmail seem to work fine
__________________
Schattorie Solutions
Making IT Possible While Keeping IT Simple
Reply With Quote
  #9  
Old 14th May 2014, 08:13
srijan srijan is offline
HowtoForge Supporter
 
Join Date: Feb 2014
Location: New Delhi, India
Posts: 584
Thanks: 4
Thanked 76 Times in 74 Posts
Send a message via Skype™ to srijan
 
Default

Quote:
Should've seen that one line in the config file was commented, I think that was the main issue, but it works
Actually starting with apache2.4 squirrelmail starts in the way as I mentioned above was the necessary step to achieve the squirrelmail running well.
__________________
Br//
Srijan
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
Using Squirrelmail with ISPConfig 3 dpicella Installation/Configuration 15 7th January 2011 04:30
Sending mail ISPConfig 3 but not receivind catza Installation/Configuration 20 19th May 2010 12:47
Odd problem with squirrelmail menahem Installation/Configuration 10 14th April 2010 22:14
Why did Squirrelmail, Dovecot/IMAP & Outbound mail break? websissy Technical 4 29th October 2009 22:39


All times are GMT +2. The time now is 06:15.


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