Страница 1 из 1

ошибка 500

Добавлено: 20 фев 2018, 15:11
Shurya
Сайт писал не я, залил бекап на локальный сервер все работает, кроме входа в админ панель
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
AddDefaultCharset UTF-8


# Turn on URL rewriting
RewriteEngine On

# Installation directory
#RewriteBase /

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

#RewriteCond %{REQUEST_URI} (/?backend/)
RewriteRule ^(.*)$ index.php?$1 [L]

AuthType Basic
AuthName "adminpanel"
AuthUserFile /sata2/home/users/kherson/www/*адресс сайта*/backend/htpasswd
require user admin
require user marketing


htpasswd
admin:$apr1$R6......$QcfrHchDawgW5d2NCLyKC.
marketing:$apr1$yB......$xRzLJTicPhCzupDRVYBlN.
В чем может быть ошибка?
путь на локальном сервере к htpasswd
C:\OSPanel\domains\*сайт*\backend\.htpasswd
пробовал заменить им
/sata2/home/users/kherson/www/*адресс сайта*/backend/htpasswd
но все равно не сработало

Re: ошибка 500

Добавлено: 21 фев 2018, 12:24
amid
AuthUserFile /sata2/home/users/kherson/www/*адресс сайта*/backend/htpasswd
Надо изменить на путь где лежит htpasswd с параролем

Re: ошибка 500

Добавлено: 21 фев 2018, 12:26
amid
C:\OSPanel\domains\*сайт*\backend\.htpasswd
.htpasswd - точка не нужна
C:\OSPanel\domains\*сайт*\backend\htpasswd
должно быть так

бьется ошибка 500 при подключении в локальной сети

Добавлено: 11 июл 2018, 12:50
loveMumsPie
При запуске сайта в локальной сети постоянновыбивается ошибка 500.


логи


[Wed Jul 11 12:38:21.362558 2018] [ssl:warn] [pid 10600:tid 148] AH01909: charity:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 11 12:38:21.363559 2018] [ssl:warn] [pid 10600:tid 148] AH01909: 66localhost:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 11 12:38:21.364559 2018] [ssl:warn] [pid 10600:tid 148] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 11 12:38:21.540576 2018] [ssl:warn] [pid 10600:tid 148] AH01909: charity:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 11 12:38:21.541576 2018] [ssl:warn] [pid 10600:tid 148] AH01909: 66localhost:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 11 12:38:21.541576 2018] [ssl:warn] [pid 10600:tid 148] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 11 12:38:22.154638 2018] [mpm_winnt:notice] [pid 10600:tid 148] AH00455: Apache/2.4.29 (Win32) OpenSSL/1.0.2n configured -- resuming normal operations
[Wed Jul 11 12:38:22.154638 2018] [mpm_winnt:notice] [pid 10600:tid 148] AH00456: Apache Lounge VC11 Server built: Nov 6 2017 10:38:49
[Wed Jul 11 12:38:22.154638 2018] [core:notice] [pid 10600:tid 148] AH00094: Command line: 'c:\\ospanel\\modules\\http\\Apache-2.4\\bin\\httpd.exe -d C:/OSPanel/modules/http/Apache-2.4 -f c:\\ospanel\\modules\\http\\Apache-2.4\\conf\\httpd.conf'
[Wed Jul 11 12:38:22.157638 2018] [mpm_winnt:notice] [pid 10600:tid 148] AH00418: Parent: Created child process 2668
AH00548: NameVirtualHost has no effect and will be removed in the next release C:/OSPanel/modules/http/Apache-2.4/conf/httpd.conf:574
[Wed Jul 11 12:38:22.579680 2018] [ssl:warn] [pid 2668:tid 164] AH01909: charity:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 11 12:38:22.579680 2018] [ssl:warn] [pid 2668:tid 164] AH01909: 66localhost:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 11 12:38:22.580680 2018] [ssl:warn] [pid 2668:tid 164] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 11 12:38:22.735696 2018] [ssl:warn] [pid 2668:tid 164] AH01909: charity:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 11 12:38:22.736696 2018] [ssl:warn] [pid 2668:tid 164] AH01909: 66localhost:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 11 12:38:22.736696 2018] [ssl:warn] [pid 2668:tid 164] AH01909: default:443:0 server certificate does NOT include an ID which matches the server name
[Wed Jul 11 12:38:22.773700 2018] [mpm_winnt:notice] [pid 2668:tid 164] AH00354: Child: Starting 32 worker threads.


все пути в системных переменных прописаны
PATH
E:\instantclient_11_2;E:\ore\instantclient_12_2;E:\app\kruzhaeva_t\product\11.2.0\client_1;C:\oraclexe\app\oracle\product\11.2.0\server\bin;E:\app\cadmin\product\11.2.0\client_2\bin;E:\app\cadmin\product\11.2.0\client_1;C:\OSPanel\modules\php\PHP-5.5\ssleay32.dll;C:\OSPanel\modules\php\PHP-5.5\libeay32.dll;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\7-Zip;C:\OSPanel\modules\http\Apache-2.4\bin\libeay32.dll;C:\OSPanel\modules\http\Apache-2.4\bin\ssleay32.dll;C:\Program Files (x86)\Common Files\Acronis\SnapAPI\


в корне моего сайта лежит файл
Apache-2.4_vhost.conf для перенаправления внутри локальной сети на порт проекта

#-----------------------------------------------#
# Начало блока конфигурации HTTP хоста
#-----------------------------------------------#
Listen 100
NameVirtualHost *:100
<VirtualHost *:100>
DocumentRoot "%hostdir%"
ServerName "charity"

SetEnv APPLICATION_ENV development
</VirtualHost>
#-----------------------------------------------#
# Конец блока конфигурации HTTP хоста
#-----------------------------------------------#

в файле .htaccess

RewriteEngine On
RewriteRule !\.(js|ico|gif|jpg|png|css|html)$ public/index.php



подскажите, что можно сделать или в чем причина

Re: ошибка 500

Добавлено: 29 дек 2022, 12:36
Aquuila
Была такая же проблема, в браузере работал впн, когда отключил его то все заработало. Скорее всего данная проблема связана с локал айпи, так как впн его меняет