PDA

Zobacz pełną wersję : Google zgłasza błąd 5xx - obsługa serwera nie widzi błędu ...



Hiatus
22-01-2022, 14:58
Cześć,
jak w tytule - Google zgłasza błąd 5xx -obsługa serwera mówi, że u nich OK,
W witrynie na zapleczu mam info o treści:

Brak katalogu tymczasowego PHP.

Ten folder jest folderem, którego PHP używa do przechowywania przesłanego pliku, zanim Joomla będzie mógł uzyskać dostęp do tego pliku. Chociaż nieustawienie folderu nie zawsze stanowi problem, jeśli masz problemy z niewykrywaniem plików manifestu lub niewykrywaniem przesłanych plików, ustawienie tego w pliku php.ini może rozwiązać problem.

Przeczytałem co mogłem na ten temat na stronach forum ale nie jestem informatykiem i nie wszystko rozumiem. Tym samym nie wiem jak naprawić ten błąd.
Proszę o pomoc - podpowiedź.
Joomal 4.0.6, PHP 7.4.21, MySQL (PDO) 5.7.31-34-log, Pamięć podręczna Wyłączony, Gzip Wyłączony

Dzięki :)

Frodoo
22-01-2022, 17:48
Masz jakiś błąd pewnie w pliku htaccess. Ostatnio poprawiałem literówkę w tym pliku i zadziałało

terra
22-01-2022, 18:17
Taki błąd pojawił się, ponieważ w chwili sprawdzania strony przez roboty, serwer był czymś zajęty i zbyt długo odpowiadał. Możliwe, że operator hostingu wykonywał w tym czasie kopie bezpieczeństwa, więc teraz nie widzą problemu. Możesz pozbyc się takiego błędu korzystając z search konsole i wywołując sprawdzenie adresu, pod którym błąd został zarejestrowany.

Hiatus
22-01-2022, 20:30
Dziękuję wszystkim za podpowiedzi.

Frodoo - zmieniłem ręcznie nazwę pliku htaccess.exe na .htaccess - nie wprowadzałem w nim zmian - jest taki jaki instaluje się z Joomla 4. Dodatkowo jest htaccess.txt również instalowany przez css'a. Nie jestem informatykiem i jak nie muszę to nie udaję specjalisty - czytaj nie grzebię tam gdzie nie wiem co robię :) - ale jeśli uważasz, że powinienem to poproszę o wskazówki i idę sprawdzać - dam sobie radę, tylko powiedz gdzie szukać :)

terra - zgłosiłem prośbę kilkakrotnie - mogło dojść do indeksu kiedy strona była w budowie - wyłączona (budowałem ją na serwerze). Po uruchomieniu strony zmieniłem wszystkie ustawienia na index i follow i poprosiłem Google o ponowne zindeksowanie strony. Kiedy ponownie poinformowano mnie o błędzie, poprosiłem firmę hostingową o sprawdzenie błędów od strony serwera - to bardzo rzetelni ludzie, więc wiem, że nie robili tego na odczep się, błędu nie znaleziono. Poprosiłem o ponowny index Google - znów błąd. Pozostałe dodane do indexu podstrony są ok i gigant nie ma do nich zastrzeżeń.

Co robić?

Dziękuję za Wasz czas i wiedzę.

- - - Updated - - -

I jeszcze przy okazji zapytam - gdzie dodać katalog tymczasowy PHP - jak dokładnie powinien sie nazywać i co zawierać?

Hiatus
22-01-2022, 21:37
Frodoo - dziękuję za podpowiedzi i wzór ...

Hiatus
23-01-2022, 10:52
Dzięki pomocy Frodoo problem rozwiązany! Witryna została zindeksowana poprawnie przez Google. Problem leżał pliku htaccess - Frodoo podesłał mi fragment, który podmieniłem i zadziałało.

Dziękuję.

Nobody63
14-05-2022, 10:38
Mam ten sam problem, może ktoś podpowiedzieć co trzeba zmienić w tym pliku ?

Frodoo
14-05-2022, 12:16
Na końcu wy-komentuj w ten sposób


## These directives are only enabled if the Apache mod_headers module is enabled.
## This section will check if a .gz file exists and if so will stream it
## directly or fallback to gzip any asset on the fly
## If your site starts to look strange after enabling this, and you see
## ERR_CONTENT_DECODING_FAILED in your browser console network tab,
## then your server is already gzipping css and js files and you don't need this
## block enabled in your .htaccess
<IfModule mod_headers.c>
# Serve gzip compressed CSS files if they exist
# and the client accepts gzip.
# RewriteCond "%{HTTP:Accept-encoding}" "gzip"
# RewriteCond "%{REQUEST_FILENAME}\.gz" -s
# RewriteRule "^(.*)\.css" "$1\.css\.gz" [QSA]


# Serve gzip compressed JS files if they exist
# and the client accepts gzip.
# RewriteCond "%{HTTP:Accept-encoding}" "gzip"
# RewriteCond "%{REQUEST_FILENAME}\.gz" -s
# RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]


# Serve correct content types, and prevent mod_deflate double gzip.
# RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1]
# RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]


<FilesMatch "(\.js\.gz|\.css\.gz)$">
# Serve correct encoding type.
# Header append Content-Encoding gzip


# Force proxies to cache gzipped &
# non-gzipped css/js files separately.
# Header append Vary Accept-Encoding
</FilesMatch>
</IfModule>

Nobody63
14-05-2022, 14:52
Czyli dodać na koncu pliku?


AddHandler application/x-httpd-php74 php


##
# @package Joomla
# @copyright Copyright (C) 2005 - 2020 Open Source Matters. All rights reserved.
# @license GNU General Public License version 2 or later; see LICENSE.txt
##


##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line 'Options +FollowSymLinks' may cause problems with some server configurations.
# It is required for the use of Apache mod_rewrite, but it may have already been set by
# your server administrator in a way that disallows changing it in this .htaccess file.
# If using it causes your site to produce an error, comment it out (add # to the
# beginning of the line), reload your site in your browser and test your sef urls. If
# they work, then it has been set by your server administrator and you do not need to
# set it here.
##


## No directory listings
<IfModule mod_autoindex.c>
IndexIgnore *
</IfModule>


## Suppress mime type detection in browsers for unknown types
<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
##
# Disable Federated Learning of Cohorts (FLoC)
# If you uncomment the below directive you have to allow this technology in the
# Global Configuration of Joomla. Read more about this in the Post-Installation
# message in the backend.
##
# Header always set Permissions-Policy "interest-cohort=()"
</IfModule>


## Can be commented out if causes errors, see notes above.
#Options +FollowSymlinks
#Options -Indexes


## Disable inline JavaScript when directly opening SVG files or embedding them with the object-tag
<FilesMatch "\.svg$">
<IfModule mod_headers.c>
Header always set Content-Security-Policy "script-src 'none'"
</IfModule>
</FilesMatch>


## Mod_rewrite in use.


RewriteEngine On


## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site then comment out the operations listed
# below by adding a # to the beginning of the line.
# This attempts to block the most common type of exploit `attempts` on Joomla!
#
# Block any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root home page
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.


## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects


##
# Uncomment the following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##


RewriteBase /


## Begin - Joomla! core SEF Section.
#
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
#
## End - Joomla! core SEF Section.
## These directives are only enabled if the Apache mod_headers module is enabled.
## This section will check if a .gz file exists and if so will stream it
## directly or fallback to gzip any asset on the fly
## If your site starts to look strange after enabling this, and you see
## ERR_CONTENT_DECODING_FAILED in your browser console network tab,
## then your server is already gzipping css and js files and you don't need this
## block enabled in your .htaccess
<IfModule mod_headers.c>
# Serve gzip compressed CSS files if they exist
# and the client accepts gzip.
# RewriteCond "%{HTTP:Accept-encoding}" "gzip"
# RewriteCond "%{REQUEST_FILENAME}\.gz" -s
# RewriteRule "^(.*)\.css" "$1\.css\.gz" [QSA]




# Serve gzip compressed JS files if they exist
# and the client accepts gzip.
# RewriteCond "%{HTTP:Accept-encoding}" "gzip"
# RewriteCond "%{REQUEST_FILENAME}\.gz" -s
# RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]




# Serve correct content types, and prevent mod_deflate double gzip.
# RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1]
# RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]




<FilesMatch "(\.js\.gz|\.css\.gz)$">
# Serve correct encoding type.
# Header append Content-Encoding gzip




# Force proxies to cache gzipped &
# non-gzipped css/js files separately.
# Header append Vary Accept-Encoding
</FilesMatch>
</IfModule>

Frodoo
14-05-2022, 15:12
Wszystkie linijki wy-komentuj krzyżykiem jak pokazałem.

- - - Updated - - -

Porada jest dla Joomla 4

Nobody63
14-05-2022, 15:17
Sorry nie rozumiem co to znaczy wy komentuj krzyżykiem :(
Joomla 4

Frodoo
14-05-2022, 15:47
Że na początku linii musi być krzyżyk #

Nobody63
14-05-2022, 16:56
Tak jak wkleiłem swój plik wszędzie są krzyżyki,
można bardziej łopatologicznie ?
Please.

PS: Możesz przesłać cały gotowy plik ?

Frodoo
14-05-2022, 17:34
Pobierz stąd http://chomikuj.pl/frodo_/Joomla/.htaccess,8161231973

- - - Updated - - -

Nie zapomnij dodać to

AddHandler application/x-httpd-php74 php

Nobody63
14-05-2022, 17:45
No tak, ale gdzie i jak to dodać.

Frodoo
14-05-2022, 17:46
dodaj zaraz na początku jak w starym pliku

Nobody63
14-05-2022, 17:54
Pewne dodałem w złym miejscu bo bez zmian.

##
AddHandler application/x-httpd-php74 php
# @package Joomla
# @copyright (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
# @license GNU General Public License version 2 or later; see LICENSE.txt
##


##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!

Frodoo
14-05-2022, 18:04
Ale że co masz błąd 500? Czy złą wersje php?

Nobody63
14-05-2022, 18:09
Brak katalogu tymczasowego PHP.

Ten folder jest folderem, którego PHP używa do przechowywania przesłanego pliku, zanim Joomla będzie mógł uzyskać dostęp do tego pliku. Chociaż nieustawienie folderu nie zawsze stanowi problem, jeśli masz problemy z niewykrywaniem plików manifestu lub niewykrywaniem przesłanych plików, ustawienie tego w pliku php.ini może rozwiązać problem.

siristru
17-05-2022, 13:31
Brak katalogu tymczasowego PHP.

Z tym można żyć :)