Try to copy your .htaccess and other files to some Internet webhosting and see, if the problem exists there. If not, then you’ll be sure that this is purely XAMPP problem. I heard many times that it works really purely about .htaccess run locally.
For example, I don’t have working autorization using .htaccess locally, because right after I provide correct login and password I see exactly the same error message as you mentioned. As for me, I’m more than sure that this problem is purely related to incorrect interpretation of .htaccess done by XAMPP (as everything works like a charm on production server), not by some mistakes in .htaccess contents.
I wasted (too) many hours on finding solution and left it. For right now, if I’m developing locally, I rename «.htaccess» to «htaccess», so it is ignored by XAMPP (Apache on-board of it) and re-enable it only when deploing files to production server. This approach maybe isn’t to professional, but it saved me a lot of time and stress! :]
On the other hand, if your hosting also fail with the same symptoms, then you’ll know, that this is not XAMPP releated problem and you have something wrong with your syntax.
Take a look here for a similar problem reported on StackOverflow.com, where (as I think) the cause is the same as in your issue.
ЕСТЬ РЕШЕНИЕ
ЗАКРЫТО
InstantCMS 2.X
При запуске в localhost
Здравствуйте!
Положил файлы и базу на localhost.
При входе на сайт выдаётся ошибка:
———————
Ошибка сервера!
Произошла внутренняя ошибка сервера, в результате которой серверу не удалось завершить обработку Вашего запроса. Сервер перегружен, или в CGI-скрипте обнаружена ошибка.
Если Вы считаете, что это ошибка сервера, пожалуйста, сообщите об этом веб-мастеру.
Error 500
nordvegan.test
Apache/2.4.43 (Unix) PHP7/7.3.27
——————
Установлен LAMP (Apache2, MariaDB) на Альт Рабочая станция 9.1 (Basealt linux).
Пробовал удалить файл .htaccess в корне.
Эта ошибка пропадает, но появляется другая:
———————-
Ошибка в запросе БД:
Ключ ‘page_id’ не существует в таблице ‘i’
SELECT i.*, w.controller as `controller`, w.name as `name`
FROM nordveganru_widgets_bind i
FORCE INDEX (page_id)
INNER JOIN nordveganru_widgets as w ON w.id = i.widget_id
WHERE (i.template = ‘default’) AND (i.is_enabled = ‘1’) AND (i.page_id IN (‘0′,’1’))
ORDER BY i.page_id, i.position, i.ordering
LIMIT 1000
Последние вызовы:
cmsModel->get() @ /system/controllers/widgets/model.php: 363
modelWidgets->getWidgetsForPages() @ /system/core/core.php: 785
cmsCore->runWidgets() @ /index.php: 49
———————
Базу не импортировали, просто положили ?
/blogs/zapiski-dinozavra/ospanel-i-instantcms.html
Базу не импортировали, просто положили ?
/blogs/zapiski-dinozavra/ospanel-i-instantcms.html
Импортировал.
Пользуюсь линуксом. Ospanel не пойдёт.
max_nordvegan, возможно, установлен некорректный(с старого места) путь хранения сессий.
Смотрите также логи сервера.
Положил новую версию InstantCMS 2.14.1 на localhost ( instantcms2.test/install/).
С файлом .htaccess выдается Ошибка сервера! Error 500.
Если удалить файл .htaccess система устанавливается.
Но после установки нет вёрстки. Выводится текст не отформатированный.
При переходе по ссылкам выдаётся «Error 404».
Пробовал выставлять права на файлы как указано в установке через файл .sh.
Установлен LAMP (Apache2, MariaDB) на Альт Рабочая станция 9.1 (Basealt linux).
Все нужные дополнения к PHP7 доустановил.
Файл .htaccess с таким содержанием:
———————
# InstantCMS rewriting rules
# Initialization
AddDefaultCharset utf-8
Options -Indexes
RewriteEngine on
# To redirect all users to access the site without the www. prefix
# RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
# RewriteRule ^ %1%{REQUEST_URI} [L,R=301]
# HTTPS redirect if available
# RewriteCond %{HTTPS} !=on
# RewriteRule ^(.*)$ %{HTTP_HOST}/$1 [R=301,L]
# Hide text files
RewriteRule ^.htaccess$ — [F]
RewriteRule ^credits.txt$ — [F]
RewriteRule ^readme.txt$ — [F]
RewriteRule ^license.(.*).txt$ — [F]
# Remove trailing slash from URLs
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=301,L]
# Sitemaps
RewriteRule ^sitemap(.*).xml$ ./cache/static/sitemaps/sitemap$1.xml [L]
# Engine routing
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ./index.php [L]
——————
не знаю, ка на локалке но на сервере у меня была такая же проблема, прописал в .htaccess строку php_value max_execution_time 300
помогло
не знаю, ка на локалке но на сервере у меня была такая же проблема, прописал в .htaccess строку php_value max_execution_time 300
помогло
Прописал. Не помогло.
В логах httpd2:
[Thu Mar 04 18:02:32.678402 2021] [core:alert] [pid 5484] [client 127.0.0.1:45154] /var/www/html/nordvegan.test/templates/.htaccess: order not allowed here, referer: nordvegan.test/
[Thu Mar 04 19:53:31.272795 2021] [core:alert] [pid 17811] [client 127.0.0.1:47962] /var/www/html/nordvegan.test/.htaccess: php_value not allowed here
[Thu Mar 04 19:57:58.282035 2021] [core:alert] [pid 17812] [client 127.0.0.1:48036] /var/www/html/nordvegan.test/.htaccess: AddDefaultCharset not allowed here
C Апач без .htaccess не будет работать, для cgi и fastcgi файлы конфига. Вы какую-нибудь панель управления используете? Там же нужно настраивать домен, dns и тд.
Про сервер . Там же если что-то криво станет, то поможет только откат снимка машины, а лучше экспериментировать win + виртуал бокс и снимки машины (образы).
C Апач без .htaccess не будет работать, для cgi и fastcgi файлы конфига. Вы какую-нибудь панель управления используете? Там же нужно настраивать домен, dns и тд.
Про сервер . Там же если что-то криво станет, то поможет только откат снимка машины, а лучше экспериментировать win + виртуал бокс и снимки машины (образы) .
Нет панель не использую. Настройки сервера такие:
forum.altlinux.org/index.php?topic=44707.new;topicseen
В /conf/sites-available/vhosts.conf :
<VirtualHost *:80>
DocumentRoot «/var/www/html/xz.xz/»
ServerName xz.xz
ServerAlias www.xz.xz
ErrorLog «/var/log/httpd2/xzxz-error_log»
#CustomLog «/var/log/httpd2/xzxz-access_log common»
</VirtualHost>
/etc/hosts :
127.0.0.1 xz.xz
127.0.0.1 www.xz.xz
Нормально работает phpmyadmin. Значит и другие сайты должны работать.
Нет желания покупать Windows или пользоваться ломаным. К тому же W10 просит новое железо.
А эта система бесплатная к тому же российская сборка с тех. поддержкой.
Доустановил ещё php7-fpm-fcgi. Сделал service httpd2 restart.
Но ошибка так и осталась.
127.0.0.1 — — [05/Mar/2021:19:58:53 +0700] «GET / HTTP/1.1» 500 1308
127.0.0.1 — — [05/Mar/2021:19:58:53 +0700] «GET /favicon.ico HTTP/1.1» 500 1308
и
[Fri Mar 05 19:58:53.062129 2021] [core:alert] [pid 15298] [client 127.0.0.1:40026] /var/www/html/nordvegan.test/.htaccess: AddDefaultCharset not allowed here
[Fri Mar 05 19:58:53.374469 2021] [core:alert] [pid 15359] [client 127.0.0.1:40028] /var/www/html/nordvegan.test/.htaccess: AddDefaultCharset not allowed here, referer: www.nordvegan.
test/
Пробовал поочередно коментировать строки в htaccess.
Но ошибка пропадает только если закоментировать всё:
[Fri Mar 05 20:04:32.115056 2021] [core:alert] [pid 15271] [client 127.0.0.1:40036] /var/www/html/nordvegan.test/.htaccess: Invalid command ‘RewriteRule’, perhaps misspelled or defined by a module not included in the server configuration
[Fri Mar 05 20:05:49.632038 2021] [core:alert] [pid 15269] [client 127.0.0.1:40044] /var/www/html/nordvegan.test/.htaccess: Invalid command ‘RewriteCond’, perhaps misspelled or defined by a module not included in the server configuration
[Fri Mar 05 20:06:53.961982 2021] [core:alert] [pid 15359] [client 127.0.0.1:40050] /var/www/html/nordvegan.test/.htaccess: DirectoryIndex not allowed here, referer: www.nordvegan.test/
[Fri Mar 05 20:08:55.488420 2021] [core:alert] [pid 15273] [client 127.0.0.1:40060] /var/www/html/nordvegan.test/.htaccess: ErrorDocument not allowed here, referer: www.nordvegan.test/
Invalid command ‘RewriteRule’, perhaps misspelled or defined by a module not included in the server configuration
А у вас модуль mod_rewrite включен? _https://hackware.ru/?p=5485#13
/blogs/moi-zametki-po-instantcms/gotovim-server-vds-nginx-php7-0-fmp-mysql-dlja-inst2.html, /forum/thread32055-6.html#314038
@noname, ТС использует Apache, не нужно его с толку Nginx’ом сбивать. Пусть сначала с Индейцем подружится.
.htaccess: php_value not allowed here
[Thu Mar 04 19:57:58.282035 2021] [core:alert] [pid 17812] [client 127.0.0.1:48036] /var/www/html/nordvegan.test/.htaccess: AddDefaultCharset not allowed here
Можно искать так, установка lamp
PS
включить непосредственно сам mod_rewrite
включить поддержку файлов .htaccess
Пробуйте удалить таблицы в БД или новую создать, установить 2.13.1 с демо данными.
Invalid command ‘RewriteRule’, perhaps misspelled or defined by a module not included in the server configuration
А у вас модуль mod_rewrite включен? _https://hackware.ru/?p=5485#13
phpinfo():
Loaded Modules core mod_so http_core prefork mod_unixd mod_access_compat mod_actions mod_alias mod_authz_core mod_authz_host mod_autoindex mod_dir mod_include mod_log_config mod_logio mod_mime mod_php7 mod_negotiation mod_rewrite
Поменял:
в /etc/httpd2/conf/
# The following lines prevent .htaccess and .htpasswd files from being.
# viewed by Web clients..
#
<Files «.ht*»>
Require all denied
</Files>
на Require all granted
в /etc/http2/conf/include/
derectory-html-default.conf
AllowOverride None
на all
Запускал
a2enmod rewrite
перестартовал сервер
В логе:
[Sun Mar 07 06:16:07.078369 2021] [core:alert] [pid 5494] [client 127.0.0.1:60568] /var/www/html/nordvegan.test/.htaccess: AddDefaultCharset not allowed here
.htaccess: php_value not allowed here
[Thu Mar 04 19:57:58.282035 2021] [core:alert] [pid 17812] [client 127.0.0.1:48036] /var/www/html/nordvegan.test/.htaccess: AddDefaultCharset not allowed hereМожно искать так, установка lamp
PS
включить непосредственно сам mod_rewrite
включить поддержку файлов .htaccess
Пробуйте удалить таблицы в БД или новую создать, установить 2.13.1 с демо данными.
Вроде lamp нормально установился. Работает phpmyadmin. База импортируется в новую бд. Инсталяция CMS выдаёт те же ошибки. Пока не удалить .htaccess.
Пробовал
a2enmod rewrite
В файле /etc/httpd2/conf/mods-enabled есть rewrite.load
Значит модуль запущен.
Используя этот сайт, вы соглашаетесь с тем, что мы используем файлы cookie.
Почему выдает такую ошибку?
при запуске сайта на локальном сервере Open Server выдает такую ошибку
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500
из файлов у меня только .htaccess (
RewriteEngine on;
RewriteRule .* index.php [L])
который перенаправляет все в index.php все. что делать?
-
Вопрос заданболее трёх лет назад
-
11813 просмотров
Наиболее частой причиной ошибки 500 (Internal Server Error, внутренняя ошибка сервера) является неверный синтаксис файла .htaccess или наличие в нем неподдерживаемых директив. Чаще всего достаточно комментировать директиву Options (для этого нужно поставить в начале строки решетку — #), и проблема исчезнет.
Пригласить эксперта
Смотрите логи веб-сервера. Там должны быть все ответы.
-
Показать ещё
Загружается…
11 июн. 2023, в 15:03
2500 руб./за проект
11 июн. 2023, в 14:29
8000 руб./за проект
11 июн. 2023, в 14:28
500 руб./за проект
Минуточку внимания
После запуска сервера захожу на сайт и получаю: (изображение во вложении)
Ошибка сервера! Произошла внутренняя ошибка сервера, в результате которой серверу не удалось завершить обработку Вашего запроса. Сервер перегружен, или в CGI-скрипте обнаружена ошибка.
Если Вы считаете, что это ошибка сервера, пожалуйста, сообщите об этом веб-мастеру.
В отладке выдает вот это:
[Mon Dec 03 18:32:40.853660 2018] [ssl:warn] [pid 5012:tid 584] AH01909: Fun.top.ru:443:0 server certificate does NOT include an ID which matches the server name [Mon Dec 03 18:32:40.855659 2018] [ssl:warn] [pid 5012:tid 584] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name [Mon Dec 03 18:32:41.134067 2018] [ssl:warn] [pid 5012:tid 584] AH01909: Fun.top.ru:443:0 server certificate does NOT include an ID which matches the server name [Mon Dec 03 18:32:41.135066 2018] [ssl:warn] [pid 5012:tid 584] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name [Mon Dec 03 18:32:41.199028 2018] [mpm_winnt:notice] [pid 5012:tid 584] AH00455: Apache/2.4.34 (Win32) OpenSSL/1.0.2o configured -- resuming normal operations [Mon Dec 03 18:32:41.208021 2018] [mpm_winnt:notice] [pid 5012:tid 584] AH00456: Apache Lounge VC11 Server built: Jul 16 2018 11:02:31 [Mon Dec 03 18:32:41.208021 2018] [core:notice] [pid 5012:tid 584] AH00094: Command line: 'F:\openserver\ospanel\modules\http\Apache-2.4\bin\httpd.exe -d F:/OpenServer/OSPanel/modules/http/Apache-2.4 -f f:\openserver\ospanel\modules\http\Apache-2.4\conf\httpd.conf' [Mon Dec 03 18:32:41.251010 2018] [mpm_winnt:notice] [pid 5012:tid 584] AH00418: Parent: Created child process 1728 [Mon Dec 03 18:32:42.191099 2018] [ssl:warn] [pid 1728:tid 628] AH01909: Fun.top.ru:443:0 server certificate does NOT include an ID which matches the server name [Mon Dec 03 18:32:42.194097 2018] [ssl:warn] [pid 1728:tid 628] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name [Mon Dec 03 18:32:42.438991 2018] [ssl:warn] [pid 1728:tid 628] AH01909: Fun.top.ru:443:0 server certificate does NOT include an ID which matches the server name [Mon Dec 03 18:32:42.439990 2018] [ssl:warn] [pid 1728:tid 628] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name [Mon Dec 03 18:32:42.496619 2018] [mpm_winnt:notice] [pid 1728:tid 628] AH00354: Child: Starting 32 worker threads. [Mon Dec 03 18:32:46.482448 2018] [core:alert] [pid 1728:tid 1228] [client 127.0.0.1:1816] F:/OpenServer/OSPanel/domains/Fun.top.ru/.htaccess: Invalid command 'xe2x80x8bAddDefaultCharset', perhaps misspelled or defined by a module not included in the server configuration [Mon Dec 03 18:32:46.968748 2018] [core:alert] [pid 1728:tid 1224] [client 127.0.0.1:1817] F:/OpenServer/OSPanel/domains/Fun.top.ru/.htaccess: Invalid command 'xe2x80x8bAddDefaultCharset', perhaps misspelled or defined by a module not included in the server configuration, referer: http://fun.top.ru/ [Mon Dec 03 18:38:31.971712 2018] [core:alert] [pid 1728:tid 1224] [client 127.0.0.1:1882] F:/OpenServer/OSPanel/domains/Fun.top.ru/.htaccess: Invalid command 'xe2x80x8bAddDefaultCharset', perhaps misspelled or defined by a module not included in the server configuration [Mon Dec 03 18:38:32.412844 2018] [core:alert] [pid 1728:tid 1228] [client 127.0.0.1:1883] F:/OpenServer/OSPanel/domains/Fun.top.ru/.htaccess: Invalid command 'xe2x80x8bAddDefaultCharset', perhaps misspelled or defined by a module not included in the server configuration, referer: http://fun.top.ru/
Но в файле .htaccess не нашел ошибок.
AddDefaultCharset utf-8
RewriteEngine on
RewriteCond %{REQUETS_FILENAME} !-f
RewriteCond %{REQUETS_FILENAME} !-d
RewriteRule ^(.*)$ index.php
ЧТО НЕ ТАК И КАК ИСПРАВИТЬ? Уже две недели не могу решить это.
Есть идея, хочу неспеша сделать сайт.
Установил OpenServer , создал базу, установил simpla 2.1.5 установка прошла
В браузере открывается демостраница все отлично.
но не могу попасть в админку.
Прописываю адрес доступа к админке : simpla/simpla далее выскакивает окно : Логин и пароль, ввожу а дальше выдает белую страницу с ошибкой: Ниже!
Подскажите решение, 2 дня мучаюсь. Права поменял через FileZila
Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
If you think this is a server error, please contact the webmaster.
Error 500 simpla
07/01/14 15:15:40
Apache/2.2.26 (Win32)
Перевод
Ошибка сервера!
Сервер обнаружил внутреннюю ошибку и не смог выполнить ваш запрос. Либо сервер перегружен или произошла ошибка в скрипте CGI.
Если вы думаете, что это ошибка сервера, пожалуйста, свяжитесь с веб-мастером .
Ошибка 500 Simpla
07/01/14 15:16:07
Apache/2.2.26 (Win32)
