Getsimple ошибка 500

2013-10-31, 14:43:35
(This post was last modified: 2013-10-31, 14:49:39 by vdonatiello.)

sorry, i have tried already 3 times but always the same error :-(

i uploaded, file permission as requested, i got to the first window «GetSimple Installation» no problem …

i moved to «Continue with Setup>>» … insered the website name and email … i got the email with the password …

but always got the 500 Internal Server error:

«Internal Server Error.
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at postmaster@lifestyleandmore.it to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.»

where do you think is the problem?

many thanks indeed

Posts: 423
Threads: 15
Joined: Mar 2011

2013-10-31, 16:44:28
(This post was last modified: 2013-10-31, 17:08:20 by hameau.)

(2013-10-31, 14:43:35)vdonatiello Wrote: … but always got the 500 Internal Server error:

Almost certainly a file permissions problem. Check again that directories and files have permission set to 0755.

I guess you are with Aruba for your hosting? See their help pages about file permissions and how to correct permissions. (Links to their English pages, which I found easily with Google.)

Make sure that you have not changed this part of the gsconfig.php file:

Code:

# Set override CHMOD mode
#define('GSCHMOD', 0755);

I apologise in advance if you have already followed these suggestions! Please confirm that you are actually hosted with Aruba.

Edit to add: I see that you have Apache v2.4 – may be significant? I have no experience with this version.


Nick.

Posts: 21
Threads: 4
Joined: Oct 2013

(2013-10-31, 16:44:28)hameau Wrote:

(2013-10-31, 14:43:35)vdonatiello Wrote: … but always got the 500 Internal Server error:

Almost certainly a file permissions problem. Check again that directories and files have permission set to 0755.

I guess you are with Aruba for your hosting? See their help pages about file permissions and how to correct permissions. (Links to their English pages, which I found easily with Google.)

Make sure that you have not changed this part of the gsconfig.php file:

Code:

# Set override CHMOD mode
#define('GSCHMOD', 0755);

I apologise in advance if you have already followed these suggestions! Please confirm that you are actually hosted with Aruba.

Hello,

yes, i am hosted at Aruba!

i have checked within my FTP client and all the folders have permission 755

i have not opened nor touched the file «gsconfig.php»

thanks for your time

Posts: 104
Threads: 6
Joined: Aug 2013

2013-10-31, 20:38:20
(This post was last modified: 2013-10-31, 20:51:34 by Kolyok.)

I believe this could be related to the ‘order’ directives but maybe you can post your error log so we can check it?
Also check this snippet from the Apache documentation:

(2013-10-31, 20:36:14)Kolyok Wrote: Since the ‘order’ directive is heavily used in GetSimple CMS you will need to:
1. Wait until (if) an official method will come from GetSimple or
2. Try to use Apache 2.2 or
3. Manually modify all the .htaccess files to fit the new directives (check below the documentation)

Note: Apache 2.4 normally should have the new module mod_access_compat for backwards compatibility, check your Apache 2.4 install if you have it.

From the Apache documentation:
In this example, all requests are denied.

Quote:Apache 2.2 configuration:
Order deny,allow
Deny from all

Quote:Apache 2.4 configuration:
Require all denied

In this example, all requests are allowed.

Quote:Apache 2.2 configuration:
Order allow,deny
Allow from all

Quote:Apache 2.4 configuration:
Require all granted

In the following example, all hosts in the example.org domain are allowed access; all other hosts are denied access.

Quote:Apache 2.2 configuration:
Order Deny,Allow
Deny from all
Allow from example.org

Quote:Apache 2.4 configuration:
Require host example.org

For more info see (since theres other changes in 2.4 aswell): Upgrading to 2.4 from 2.2 — Apache HTTP Server

A quick hack that should work would be (found on stackoverflow):

Quote:#Apache 2.2
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>

#Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>

Posts: 423
Threads: 15
Joined: Mar 2011

2013-10-31, 21:12:40
(This post was last modified: 2013-11-02, 20:51:01 by hameau.)

Issue raised: https://github.com/GetSimpleCMS/GetSimpleCMS/issues/682

Edit to add: @vdonatiello – I suggest that you ask Aruba to enable mod_access_compat, which will solve your problem.


Nick.

Posts: 21
Threads: 4
Joined: Oct 2013

(2013-10-31, 21:12:40)hameau Wrote: Issue raised: https://github.com/GetSimpleCMS/GetSimpleCMS/issues/682

Edit to add: @vdonatiello – I suggest that you ask Aruba to enable mod_access_compat, which will solve your problem.

My webserver Apache version: «Apache/2.4.6 (Unix) mod_fcgid/2.3.7»

may be this the cause of the problem?

Posts: 104
Threads: 6
Joined: Aug 2013

(2013-11-03, 02:57:37)vdonatiello Wrote:

(2013-10-31, 21:12:40)hameau Wrote: Issue raised: https://github.com/GetSimpleCMS/GetSimpleCMS/issues/682

Edit to add: @vdonatiello – I suggest that you ask Aruba to enable mod_access_compat, which will solve your problem.

My webserver Apache version: «Apache/2.4.6 (Unix) mod_fcgid/2.3.7»

may be this the cause of the problem?

Can you show us your apache error.log?

Posts: 21
Threads: 4
Joined: Oct 2013

(2013-11-03, 03:49:28)Kolyok Wrote: Can you show us your apache error.log?

my domain: www.lifestyleandmore.it
webdirectory where «GetSimple» is installed: www.lifestyleandmore.it/finetoilets/

here the error log:

Code:

[Mon Nov 04 06:45:55 2013] [alert] [client 95.141.47.194:18595] - www.lifestyleandmore.it - /web/htdocs/www.lifestyleandmore.it/home/finetoilets/.htaccess: Option Indexes not allowed here
[Mon Nov 04 06:45:35 2013] [alert] [client 95.141.47.194:18268] - www.lifestyleandmore.it - /web/htdocs/www.lifestyleandmore.it/home/finetoilets/.htaccess: Option Indexes not allowed here

many thanks

Posts: 423
Threads: 15
Joined: Mar 2011

Sorry for making assumptions previously!

Code:

Option Indexes not allowed here

suggests that your host doesn’t allow overriding Indexes in a .htaccess file. I expect that Indexes is turned off in the Apace configuration (but don’t assume ;-) ). If that is the case, you can remove or comment Options -Indexes in the website root .htaccess file.


Nick.

Posts: 6,266
Threads: 181
Joined: Sep 2011

unfortunatly there is no way I know of to wrap that to detect this scenario.
anyone ?

Posts: 423
Threads: 15
Joined: Mar 2011

(2013-11-05, 01:12:08)shawn_a Wrote: unfortunatly there is no way I know of to wrap that to detect this scenario.
anyone ?

I don’t think it’s necessary to do anything more with GS config.

I do feel even more stupid now that I see that the Wiki has information about installing on Aruba hosting (comment the Index options in .htaccess). Ho hum.


Nick.

Posts: 21
Threads: 4
Joined: Oct 2013

(2013-10-31, 20:38:20)Kolyok Wrote: […]

(2013-10-31, 20:36:14)Kolyok Wrote: […]
3. Manually modify all the .htaccess files to fit the new directives (check below the documentation)

Note: Apache 2.4 normally should have the new module mod_access_compat for backwards compatibility, check your Apache 2.4 install if you have it.
[…]

Hello,
this is the .htaccess file on my webserver:

Code:

AddDefaultCharset UTF-8
Options -Indexes

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
<Files sitemap.xml>
        Order allow,deny
    Allow from all
    Satisfy All
</Files>

RewriteEngine on

# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /finetoilets/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]

My webserver Apache version: «Apache/2.4.6 (Unix) mod_fcgid/2.3.7»

does it mean something to you?

many thanks

Vito

Posts: 21
Threads: 4
Joined: Oct 2013

(2013-11-05, 01:43:46)hameau Wrote: I do feel even more stupid now that I see that the Wiki has information about installing on Aruba hosting (comment the Index options in .htaccess). Ho hum.

i am the most stupid … can not find the aruba info on the wiki … could you point it out

many thanks

Posts: 6,266
Threads: 181
Joined: Sep 2011

he already said remove
Options -Indexes

Whats still the problem ?

Posts: 21
Threads: 4
Joined: Oct 2013

Dear shawn_a, hameau, Kolyok,

it works fine … it suppose to be simple but the small negleted detail in the .htaccess made me waste so much time and your time as well … sorry for being superficial …

thanks a lot for your help

thread solved and closed

Posts: 6,266
Threads: 181
Joined: Sep 2011

Oh ok I thought that did not fix it.

Always check your holsters error log it usually shows the problem causing the error.

Posts: 423
Threads: 15
Joined: Mar 2011

(2013-11-07, 00:09:27)vdonatiello Wrote: i am the most stupid … can not find the aruba info on the wiki … could you point it out

Not your fault – it was well hidden. I have made it more visible (but it was always there):
http://get-simple.info/wiki/installation…webhosters

At the bottom of the list.


Nick.

Posts: 21
Threads: 4
Joined: Oct 2013

In order to make this thread useful to others and avoiding to repeat the same mistake i suggest to update the title of this thread ….. Maybe adding some keyword such .htaccess index Aruba webhosting
Would be that useful?

Posts: 6,266
Threads: 181
Joined: Sep 2011

Is aruba a free web host ?

Posts: 21
Threads: 4
Joined: Oct 2013

(2013-11-08, 01:03:32)shawn_a Wrote: Is aruba a free web host ?

I didn’t mean advertise Aruba, just because I tought the problem I had was linked to the particular webserver configuration …

(Aruba is one of the biggest Italian web hosting company, hosting Linux costs €20 per year)

Posts: 18
Threads: 1
Joined: Dec 2010

2013-11-11, 02:05:15
(This post was last modified: 2013-11-11, 02:05:38 by SlavaP.)

Can’t login to admin panel on Apache 2.4.6 — get 500 error.
GS v.3.2.3
Manual modifying of .htaccess files (order -> require) didn’t help — error still appears.
Don’t know what to do Sad

Вы не вошли. Пожалуйста, войдите или зарегистрируйтесь.

Активные темы Темы без ответов

Страницы 1

Чтобы отправить ответ, вы должны войти или зарегистрироваться



1 2016-12-11 17:22:32

  • nadenka.a
  • Пользователь
  • Неактивен
  • Зарегистрирован: 2016-12-11
  • Сообщений: 3

Тема: ошибка 500

при установке все параметры отмечены зеленым, но

После второго шага появляется

1) сообщение, что майл не отослался запишите свой пароль на вход
2) Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator to inform of the time the error occurred and of anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

В Логе ничего нет!

2 Ответ от olsv64 2016-12-11 17:48:07

  • olsv64
  • olsv64
  • Администратор
  • Неактивен
  • Откуда: Киров
  • Зарегистрирован: 2013-03-03
  • Сообщений: 3,999

Re: ошибка 500

какой сервер? нужен апач
какие права на папки и файлы? Для папок рекомендованы права доступа 755, для всех остальных файлов 644.
дело в любом случае не в CMS, дело в сервере, так как 500 — ошибка сервера

Поддержать GetSimple CMS по-русски ЯДом

3 Ответ от nadenka.a 2016-12-11 17:58:48

  • nadenka.a
  • Пользователь
  • Неактивен
  • Зарегистрирован: 2016-12-11
  • Сообщений: 3

Re: ошибка 500

webhoster.de

права доступа полные
апач есть
появились логи, да, что-то с апачем не то

4 Ответ от nadenka.a 2016-12-11 18:12:19

  • nadenka.a
  • Пользователь
  • Неактивен
  • Зарегистрирован: 2016-12-11
  • Сообщений: 3

Re: ошибка 500

Нашла!
Было ограничение на

FollowSymLink in .htaccess

Сообщений 4

Страницы 1

Чтобы отправить ответ, вы должны войти или зарегистрироваться

localhost setup

ubuntu 12.04

mod rewrite enabled

multiple sites running in different directory’s

dir structure

/var/www/mysite1/htdocs/
/var/www/filehostwatch.com/htdocs/
.
.
.

wordpress .htaccess that works in my getsimple dir(copyed for test reasons) without problems

the one from getsimple gives me a 500 The server encountered an internal error or misconfiguration … i later figured out that this section is what caussing the error

.htacess

AddDefaultCharset UTF-8

now the section that causes errors

Options -Indexes

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
<Files sitemap.xml>
        Order allow,deny
    Allow from all
    Satisfy All
</Files>

end of the section that causese 500 errors

RewriteEngine on

# Usually it RewriteBase is just '/', but 
# replace it with your subdirectory path
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]

the config file in /etc/apache2/sites-enabled/ of the site looks like the one with another site where wordpress is running without problems. and as i said the htaccess from wordpress works even in this site when copied over.

<VirtualHost *:80>
    ServerAdmin webmaster@localhost
    ServerName filehostwatch.localhost

    DocumentRoot /var/www/filehostwatch.com/htdocs
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory /var/www/filehostwatch.com/htdocs/>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride FileInfo
        Order allow,deny
        allow from all
    </Directory>

    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
    <Directory "/usr/lib/cgi-bin">
        AllowOverride None
        Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
        Order allow,deny
        Allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/error.log

    # Possible values include: debug, info, notice, warn, error, crit,
    # alert, emerg.
    LogLevel warn

    CustomLog ${APACHE_LOG_DIR}/access.log combined

    Alias /doc/ "/usr/share/doc/"
    <Directory "/usr/share/doc/">
        Options Indexes MultiViews FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
        Allow from 127.0.0.0/255.0.0.0 ::1/128
    </Directory>

</VirtualHost>

Any idea what might cause this problem?

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Pick a username
Email Address
Password

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and
privacy statement. We’ll occasionally send you account related emails.

Already on GitHub?
Sign in
to your account

Closed

webketje opened this issue

Feb 6, 2017

· 12 comments

Comments

@webketje

Lines 24-25 in temp.htaccess cause an internal server error when mod_access_compat.c is not enabled because Apache 2.4 doesn’t recognize the Order and Deny statements.
(I’ve started the server first without, and then with mod_access_compat, in the first case 500 error, in the second it worked).

If I’m not missing something, the whole <FilesMatch> directive could be simplified to:

<FilesMatch "(?<!sitemap|browserconfig|crossdomain)\.xml$">
  # Apache 2.2
  <IfModule !mod_authz_core.c>
      Order allow,deny
      Deny from all
  </IfModule>
  # Apache 2.4
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>	
</FilesMatch>

Tested on both Apache 2.2/ PHP 5.4.3 vs. Apache 2.4/ PHP 5.6 and worked in both cases

More info on the subject:

  • Apache.org | Access Control backwards compatibility
  • Apache.org | Upgrading from 2.2 to 2.4
  • Hybrid Apache 2.2 — 2.4 .htaccess

@tablatronix

Must be an version inconsistency because I tested this.
Ill take a look can you test the other htaccess files as well?

@tablatronix

@webketje



Copy link


Contributor


Author

I imagine most Apache 2.4 hosts will have the mod_access_compat enabled so this might be an edge case.
I’ll test the other htaccess files this evening

@tablatronix

I think I broke it when i added #879 cause I know I tested it under multiple scenarios at first.
Fix sounds reasonable, as long as the backward compatible stuff still works for plugin htaccess files, If you do not have compat all those will fail also, since many have not been updated.

@webketje



Copy link


Contributor


Author

Tested the plugins .htaccess on Apache 2.2/2.4, works well. Just had a look at some other flat-file CMS’es .htaccess files for inspiration. Most of them (90%) seem to just use mod_rewrite (eg. Grav’s .htaccess). Bolt’s .htaccess has the mod_authz directive as I suggested here, but in inverse order (first 2.4 directive, then 2.2).

@tablatronix

Yeah I added the extra to handle plugins not able to override requires.

Also avoided rewrites cause you can crash the rewrite engine and bypass security . I do not think rewrites should be used for security

@webketje



Copy link


Contributor


Author

Update: same 500 error applies on Apache 2.4 with mod_access_compat disabled for the uploads/.htaccess & /plugins/.htaccess file. It works when wrapping the ‘Deny from all’ statement in an <IfModule !mod_authz_core.c>. Another possible path, instead of module detection, version detection with mod_version or mod_access module (vs access_compat). On the other hand, as you mentioned, this is a problem for all non-updated plugins. I haven’t found a way for the server to override Allow/ Deny statements in plugin directories, in fact Apache throws:

/plugins/i18n_base/.htaccess: Invalid command 'Deny', perhaps misspelled or defined by a module not included in the server configuration

and the i18n_base JS files return a 500 error too.

@tablatronix

I decided against mod_version because it was not guaranteed to be installed and was specifically missing from certain installs, I do not recall exactly, but support for it was less.

@tablatronix

Are you testing stable or master ? cause you posted code from master, but the title says 3.3.13

@tablatronix

These are the rules

#
# GetSimple CMS htaccess DENY file
#

# prevent breaking plugin htaccess, prefer compat,  since require is not overridable by order

# apache < 2.3
<IfModule !mod_authz_core.c>
	Deny from all
</IfModule>

# apache > 2.3 with mod_access_compat
<IfModule mod_access_compat.c>
	Deny from all
</IfModule>

# apache > 2.3 without mod_access_compat
<IfModule mod_authz_core.c>

	<IfModule !mod_access_compat.c>
		Require all denied
	</IfModule>

</IfModule>	

@tablatronix

Submitted fix for master breaking change #879

I fail to see a problem in stable
If a user has 2.4 and does not have mod compat, then they MUST fix their plugin’s htaccess or enable it.
I see no other failure mode in stable.

@webketje



Copy link


Contributor


Author

@tablatronix yeah sry didn’t mention but it was master indeed. I think I must’ve read the version from configuration.php.

2 participants

@tablatronix

@webketje

Понравилась статья? Поделить с друзьями:
  • Genshin impact после скачивания ошибка проверки файлов
  • Getupps ошибка загрузки
  • Get contact выдает ошибку
  • Getthreadcontext failed как исправить ошибку
  • Genshin impact ошибка сети 4206