affiliate_link
Showing posts with label horde. Show all posts
Showing posts with label horde. Show all posts


If you are using a Windows 2008 server, running Plesk 8.6, you might encounter this error on Horde:


502 - Web server received an invalid response while acting as a gateway or proxy server.There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.


Fixes:


1. You need to see the complete details of what is happening in your IMP server. Browse locally or from the server to http://localhost:8425/.


2. Check if CGI Role Service is installed in IIS: Server Manager > Roles > Web Server > Role Services


3. Uncomment the following files on the PHP configuration file from %plesk_vhosts%\webmail\horde\php.ini. - php_fileinfo.dll, php_mysql.dll and bphp_mysqli.dll


4. Do no forget to set cgi.force_redirect = 0 in %plesk_vhosts%\webmail\horde\php.ini.

If you receive the following error during attempting to login into Horde Webmail:

"A fatal error has occurred DB Error: connect failed Details have been logged for the administrator. "

Please make sure that the following line exists in the directory /etc/my.conf:

socket=/var/lib/mysql/mysql.sock

Also check that Mysql service is running and that the /var/lib/mysql/mysql.sock socket exists. Make sure that the Horde user is able to connect to the Horde database with a password from etc/psa/.webmail.shadow using the command:

# mysql -uhorde -p`cat /etc/psa/.webmail.shadow` -D horde


If /etc/psa/.webmail.shadow is missing, put some password into this file and change the password for the Horde user in the MySQL database using the query listed below. If you get the error, make sure that the only one Horde MySQL user exists in the user table in MySQL database and try to change its password with a MySQL query like:

# mysql -uadmin -p`cat /etc/psa/.psa.shadow` -D mysqlmysql> update user set password=password(”THE_PASSWORD_FROM_WEBMAIL.SHADOW”) where user=”horde”;mysql> FLUSH PRIVILEGES;

Look into the psa-horde log (by default: /var/log/psa-horde). If you see something like:

Nov 02 12:55:06 HORDE [emergency] [horde] DB Error: connect failed: [nativecode=Access denied for user: ‘root@localhost’ (Using password: NO)] ** Array [on line 1329 of “/usr/share/psa-horde/lib/Horde/DataTree/sql.php”]

Make sure that sql.safe_mode is disabled in php.ini, such as:

sql.safe_mode=Off

Restart Apache after changes in php.ini have been made.

Source: mohammednv

If you are getting an error that says “File cannot be found” or if you are receiving a 404 error when you try to go to webmail.mydomain.com, this is due to the fact that default mapping application extensions do not include php support.

To solve this, do the following:

1. Go to “Start” - > “Administrative Tools” -> “Internet Information Services (IIS) Manager”.

2. Expand the server (local computer).

3. Expand “Web Sites”.

4. Right-click on “webmail(default)” and click “Properties”.

5. Go to the “Home Directory” tab.

6. Click on the “Configuration” button towards the bottom.

7. In the list box that appears, if the extensions php, php3, and phtml do not exist, you have found your problem.

8. Click “Add”.

9. Type the location of the file php.exe in the “Executable” field. For example: C:\Program Files\SWsoft\Plesk\Php\php.exe.

10. Type: .php in the “extension” field.

11. Leave everything else as default checked. Click “OK”.

12. Repeat this setup using the same executable and adding the extensions: .php3 and .phtml

Webmail should be up and running now.

Source: mohammednv