Author Topic: What triggers an 500 error while installation process?  (Read 11423 times)

0 Members and 1 Guest are viewing this topic.

borro

  • Full Member
  • ***
  • Posts: 12
What triggers an 500 error while installation process?
« on: June 29, 2015, 01:49:29 PM »
Hello everbody!

Thank you for mibew, dear developers

I downloaded the last 2.0.1 version of mibew messenger and was trying to install it at Joomla 3.4.1 site. I followed along the installation instruction and at step 7 with openning http://<yourdomain>/mibew/install url I've faced with 500 Internal Server error. Is it due to my root .htaccess file? How can I find out it? Delete some strings in main .htaccess file?
« Last Edit: July 01, 2015, 01:51:43 PM by borro »

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: What triggers an 500 error while installation process?
« Reply #1 on: June 30, 2015, 09:32:56 AM »
Hint: the messages in the error log could be useful.

borro

  • Full Member
  • ***
  • Posts: 12
Re: What triggers an 500 error while installation process?
« Reply #2 on: June 30, 2015, 10:09:32 AM »
Hint: the messages in the error log could be useful.
Here it is:
Quote
[Tue Jun 30 13:04:04 2015] [alert] [client 91.224.140.52] /var/www/user/data/www/site_name/mibew/.htaccess: Option MultiViews not allowed here

Can I comment lines
Code: [Select]
<IfModule mod_negotiation.c>
    # Forbid apache to guess file extensions
    Options -MultiViews
</IfModule>
for my site?
Will it be safely or should I correct my apache configuration instead?
« Last Edit: June 30, 2015, 10:23:09 AM by borro »

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: What triggers an 500 error while installation process?
« Reply #3 on: July 01, 2015, 06:29:10 AM »
It's unable to answer your question since you haven't specified any particular information about your server configuration.

Common thoughts:

mod_negotiation has nothing to do with security: https://httpd.apache.org/docs/2.2/mod/mod_negotiation.html

So, it's just a way Apache handles requests to non-existing files. If you have this module enabled and active for the directory of Mibew Messenger it can disrupt the process of handling requests by Mibew Messenger itself.

borro

  • Full Member
  • ***
  • Posts: 12
Re: What triggers an 500 error while installation process?
« Reply #4 on: July 01, 2015, 07:00:19 AM »
It's unable to answer your question since you haven't specified any particular information about your server configuration.

Common thoughts:

mod_negotiation has nothing to do with security: https://httpd.apache.org/docs/2.2/mod/mod_negotiation.html

So, it's just a way Apache handles requests to non-existing files. If you have this module enabled and active for the directory of Mibew Messenger it can disrupt the process of handling requests by Mibew Messenger itself.
Sorry, I didn't understand what should I do.
Here is my secure.conf:
Quote
<Directory /var/www/*>
   Options +Includes -FollowSymLinks +SymLinksIfOwnerMatch
   AllowOverride FileInfo AuthConfig Limit Indexes Options
   Order allow,deny
   Allow from all
</Directory>

<Directory /var/www/*/data/www/*/cgi-bin>
   Options -Indexes
</Directory>

<IfModule php5_module>
   php_admin_value open_basedir "."
</IfModule>
<IfModule php4_module>
   php_admin_value open_basedir "."
</IfModule>

Action php-cgi /php-bin/php
Do you you need some another information about apache configuration to find the solution for the issue?
Should I change Options at Options=All,MultiViews to make Mibew work safely?
You know, changing the secure.conf with
Code: [Select]
<Directory /var/www/*>
Options +Includes -FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride FileInfo AuthConfig Limit Indexes Options=All,MultiViews
Order allow,deny
Allow from all
</Directory>
and restarting the apache with
Code: [Select]
service apache2 restartdidn't change the situation
Any ideas?
« Last Edit: July 01, 2015, 02:15:37 PM by borro »

Dmitriy Simushev

  • Moderator
  • Native
  • *****
  • Posts: 345
Re: What triggers an 500 error while installation process?
« Reply #5 on: July 02, 2015, 08:18:14 AM »
As @faf mentioned above MultiViews has nothing with security.

Quote
You know, changing the secure.conf with

Code: [Select]
<Directory /var/www/*>
Options +Includes -FollowSymLinks +SymLinksIfOwnerMatch
AllowOverride FileInfo AuthConfig Limit Indexes Options=All,MultiViews
Order allow,deny
Allow from all
</Directory>

and restarting the apache with

Code: [Select]
service apache2 restart

didn't change the situation

It should work, most likely you do something wrong.

Actually the only problem is your Apache's configuration and the problem is not related with Mibew.

borro

  • Full Member
  • ***
  • Posts: 12
Re: What triggers an 500 error while installation process?
« Reply #6 on: July 02, 2015, 08:44:16 AM »
It should work, most likely you do something wrong.

Actually the only problem is your Apache's configuration and the problem is not related with Mibew.
Any ideas about what apache configuration settings I should check?
I commented lines
Code: [Select]
<IfModule mod_negotiation.c>
    # Forbid apache to guess file extensions
    Options -MultiViews
</IfModule>
in mibew .htaccess file and have launched mibew installation then. Is it ok?

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: What triggers an 500 error while installation process?
« Reply #7 on: July 02, 2015, 01:28:16 PM »
If installation process went fine and your Mibew Messenger operates then it's ok.