--- Tomas Kuliavas <[EMAIL PROTECTED]> wrote:
> >> > Ubuntu 7.04 server amd64 (Host OS) - mail server
> >> > VMWare
> >> > Webmin
> >> > Usermin
> >> > CentOS 5 (Guest OS)
> >> > squirrelmail-1.4.11
> >> >
> >> >
> >> > http://domain.com/squirrelmail
> >> > Not Found
> >> >
> >> > The requested URL /squirrelmail was not found on this server.
> >> > Apache/2.2.3 (Ubuntu) DAV/2 SVN/1.4.3 PHP/5.2.1 mod_ssl/2.2.3
> >> > OpenSSL/0.9.8c Server at domain.com Port 80
> >> >
> >> > http://domain.com:80/squirrelmail
> >> > http://domain.com:8080/squirrelmail
> >> > Same output
> >> >
> >> > Please advise where shall I check and how to fix it. TIA
> >> >
> >>
> >> See Apache documentation on Alias directive.
> >> http://httpd.apache.org/docs/2.2/mod/mod_alias.html#alias
> >>
> >> centos squirrelmail rpm adds alias to /webmail and not to
> >> /squirrelmail
> >
> >
> > Squirrelmail is installed on Ubuntu 7.04, the mail server. CentOS
> not
> > yet configured.
> >
> >
> > On /usr/lib/vmware-mui/apache/conf/httpd.conf
> > following lines already added under <IfModule mod_alias.c>
> >
> > <IfModule mod_alias.c>
> > .....
> > .....
> > 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>
> >
> > </IfModule>
> >
> >
> > and re-run;
> > # /etc/init.d/httpd.vmware restart
> > Shutting down http.vmware: done
> > Starting httpd.vmware: done
> >
> >
> > However I don't know whether
> /usr/lib/vmware-mui/apache/conf/httpd.conf
> > is the correct file. Because;
> >
> > # find / -name httpd.conf
> > /usr/lib/vmware-mui/apache/conf/httpd.conf
> > /usr/lib/vmware-mui/src/apache/conf/httpd.conf
> >
>
/usr/local/src/vmware-mui-distrib-1.0.4-56528/mui/apache/conf/httpd.conf
> >
>
/usr/local/src/vmware-mui-distrib-1.0.4-56528/mui/src/apache/conf/httpd.conf
> > /home/satimis/httpd.conf
> > /etc/apache2/httpd.conf
> >
> > found other httpd.conf.
> >
> >
> > /home/satimis/httpd.conf
> > /etc/apache2/httpd.conf
> > are empty files
> >
> >
>
> Why are you installing SquirrelMail in vmware web service? It is
> proprietary
> setup designed to manage guest oses. Less you mess with it, less
> problems
> you have. If something breaks in your vmware web setup after you
> install n
> third party extensions and make n modifications, vmware people can
> refuse to
> support it. Keep it on some high port and use standard Ubuntu Apache2
> on tcp
> 80/443 ports.
>
> Create file with
> ----
> 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>
> ----
>
> Copy it to /etc/apache2/conf.d/ directory
>
> Check Ubuntu Apache2 configuration ('apache2ctl configtest')
>
> Restart Apache2 ('/etc/init.d/apache2 restart' or 'apache2ctl
> restart')
>
> /etc/apache2/httpd.conf is empty on Debian and Ubuntu. All
> configuration is
> modular and it is stored in other /etc/apache2/ files
Hi Tomas,
Thanks for your advice.
Remove previous entry on /usr/lib/vmware-mui/apache/conf/httpd.conf
$ sudo nano /etc/apache2/conf.d/http.conf
copy follow on this file;
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>
$ apt-cache policy php5
php5:
Installed: 5.2.1-0ubuntu1.4
Candidate: 5.2.1-0ubuntu1.4
Version table:
*** 5.2.1-0ubuntu1.4 0
500 http://us.archive.ubuntu.com feisty-updates/main Packages
500 http://security.ubuntu.com feisty-security/main Packages
100 /var/lib/dpkg/status
5.2.1-0ubuntu1 0
500 http://u
s.archive.ubuntu.com feisty/main Packages
Add PHP support to apache:
Also copy follows on abovementioned file;
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
</IfModule>
$ cat /etc/apache2/conf.d/http.conf
Alias /squirrelmail /usr/local/squirrelmail/www
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
</IfModule>
<Directory /usr/local/squirrelmail/www>
Options Indexes
AllowOverride none
DirectoryIndex index.php
Order allow,deny
allow from all
</Directory>
* end *
$ sudo find / -name apachectl
/usr/lib/vmware-mui/apache/bin/apachectl
/usr/lib/vmware-mui/src/apache/bin/apachectl
/usr/local/src/vmware-mui-distrib-1.0.4-56528/mui/apache/bin/apachectl
/usr/local/src/vmware-mui-distrib-1.0.4-56528/mui/src/apache/bin/apachectl
* end *
apachectl is only available on vmware web service
$ sudo /usr/lib/vmware-mui/apache/bin/apachectl graceful
/usr/lib/vmware-mui/apache/bin/apachectl graceful: httpd gracefully
restarted
$ sudo nano /etc/apache2/apache2.conf
following apache2ctl config text enabled;
ServerRoot "/etc/apache2"
LockFile /var/lock/apache2/accept.lock
PidFile /var/run/apache2.pid
ErrorLog /var/log/apache2/error.log
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
Include /etc/apache2/httpd.conf
Include /etc/apache2/ports.conf
Include /etc/apache2/conf.d/
Alias /icons/ "/usr/share/apache2/icons/"
<Directory "/usr/share/apache2/icons">
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Include /etc/apache2/sites-enabled/
* end *
$ sudo /etc/init.d/apache2 restart
* Forcing reload of web server (apache2)... [ OK ]
On browser:-
http://localhost/squirrelmail/
Only hanging there.
http://satimis.com/squirrelmail/
ERROR: Config file "config/config.php" not found. You need to configure
SquirrelMail before you can use it.
$ sudo find / -name config.php
/etc/squirrelmail/config.php
The config.php is there.
$ apt-cache policy courier-imap
courier-imap:
Installed: 4.1.1.20060828-5ubuntu1
Candidate: 4.1.1.20060828-5ubuntu1
Version table:
*** 4.1.1.20060828-5ubuntu1 0
500 http://us.archive.ubuntu.com feisty/universe Packages
100 /var/lib/dpkg/status
Shall I replace all "IMAP" on "config.php" with Courier-IMAP?
How to fix the problem? TIA
B.R.
Stephen L
Send instant messages to your online friends http://uk.messenger.yahoo.com
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: [email protected]
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options):
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users