Page 1 of 2

can't open /webmail -- Not Found

Posted: Thu Feb 12, 2015 9:14 am
by mehargags
on one of my VestaCP servers,
surprisingly I'm not able to open my webmail at all, neither through the domain.com/webmail or my IP/webmail

what can be the problem ? never had an issue earlier with VestaCP

domain.com/webmail

Code: Select all

[b]Not Found[/b]

The requested URL /webmail was not found on this server.
Apache/2.2.22 (Debian) Server at 168.235.67.172 Port 80
any pointers please ?

Re: can't open /webmail -- Not Found

Posted: Thu Feb 12, 2015 5:27 pm
by skurudo
I think you don't have webmail. Your apache2 or nginx know anything about webmail or where it is?

if something going wrong, need to see error logs
/var/logs -- apache2 or httpd

Re: can't open /webmail -- Not Found

Posted: Fri Feb 13, 2015 12:26 am
by joem

Code: Select all

wget http://c.vestacp.com/0.9.8/rhel/httpd-webmail.conf -O  /etc/httpd/conf.d/httpd-webmail.conf

Re: can't open /webmail -- Not Found

Posted: Fri Feb 13, 2015 1:04 am
by mehargags
joem wrote:

Code: Select all

wget http://c.vestacp.com/0.9.8/rhel/httpd-webmail.conf -O  /etc/httpd/conf.d/httpd-webmail.conf
Ok joem!!

so this is the "script" that installs Webmail(Roundcube) for Vesta ??
nice pointer here, only that it looks like to be for CentOS, can you get me the one for Debian?

I digged out vst-install-debian.sh
Line 740

Code: Select all

# Roundcube configuration
wget $CHOST/$VERSION/apache2-webmail.conf -O /etc/roundcube/apache.conf
wget $CHOST/$VERSION/roundcube-main.conf -O /etc/roundcube/main.inc.php
wget $CHOST/$VERSION/roundcube-db.conf -O /etc/roundcube/db.inc.php
wget $CHOST/$VERSION/roundcube-driver.php -O \
    /usr/share/roundcube/plugins/password/drivers/vesta.php
wget $CHOST/$VERSION/roundcube-pw.conf -O \
    /etc/roundcube/plugins/password/config.inc.php
r="$(gen_pass)"
mysql -e "DROP DATABASE roundcube" > /dev/null 2>&1
mysql -e "CREATE DATABASE roundcube"
mysql -e "GRANT ALL ON roundcube.* TO roundcube@localhost IDENTIFIED BY '$r'"
sed -i "s/%password%/$r/g" /etc/roundcube/db.inc.php
mysql roundcube < /usr/share/dbconfig-common/data/roundcube/install/mysql
mkdir -p /var/log/roundcube/error
chmod -R 777 /var/log/roundcube

is that correct and OK to run in console ? Will that fix my roundcube install ? (ofcourse replacing the variables with appropriate values!

Re: can't open /webmail -- Not Found

Posted: Fri Feb 13, 2015 8:28 am
by joem
mehargags wrote: is that correct and OK to run in console ? Will that fix my roundcube install ? (ofcourse replacing the variables with appropriate values!
Sorry for my lack of details in my last post. Anyways all this does is add an alias to apache allowing you to access yourdomain.com/webmail

For Debian run this,

Code: Select all

http://c.vestacp.com/0.9.8/debian/apache2-webmail.conf  -O /etc/roundcube/apache.conf
After you have done that you must reboot httpd you can do this from by logging into Vesta CP -> Services -> Toggle Httpd -> Select reboot from the drop down menu and then click ">".

Re: can't open /webmail -- Not Found

Posted: Sat Feb 14, 2015 8:45 am
by mehargags
@joem

Sorry it didn't help :(

I did the following:

Code: Select all

wget http://c.vestacp.com/0.9.8/debian/apache2-webmail.conf  -O /etc/roundcube/apache.conf
service apache2 restart
service nginx restart
don't know whats breaking it!

Re: can't open /webmail -- Not Found

Posted: Sun Mar 22, 2015 9:06 pm
by jakepatrick
find out where php and pear are located.
which php
which pear
set those paths in your php.ini include_path=""
vim /etc/php.ini

then go to
/usr/share/roundcubemail/update.sh

and follow the prompts.

Re: can't open /webmail -- Not Found

Posted: Fri Aug 28, 2015 4:47 am
by pandabb
Hello can i post similar problem ?

I've updated my php to latest version now i can't access my webmail anymore. Rounduce is installed doubled check it even tried installing via yum install roundcube, package installed and updated. Also i checked my var/log/roundcudbe it's empty.


mmmhhh


thanks for support.

Re: can't open /webmail -- Not Found

Posted: Tue Sep 01, 2015 6:40 pm
by skurudo
pandabb wrote: I've updated my php to latest version now i can't access my webmail anymore. Rounduce is installed doubled check it even tried installing via yum install roundcube, package installed and updated. Also i checked my var/log/roundcudbe it's empty..
You already tried this viewtopic.php?f=12&t=7071&sid=11d3358ab ... ae6#p21846 ?

Re: can't open /webmail -- Not Found

Posted: Wed Sep 02, 2015 2:36 pm
by pandabb
forgot to mention im using centos, i think that guide is for debian sir? ty