bentxt Posted April 1, 2022 Share Posted April 1, 2022 (edited) Hello User, how can i solve the 404 Error problem? If i install Wordpress i doesn't have this problem https://learn.getgrav.org/17/troubleshooting/page-not-found https://learn.getgrav.org/17/basics/requirements Quote Web Server (Apache, Nginx, LiteSpeed, Lightly, IIS, etc.) PHP 7.3.6 or higher hmm... that's it really, (but please look at PHP requirements for a smooth experience)! I'm use PHP Version 7.4.8. https://www.softaculous.com/ This the troubleshooting guide, " i" don't can solve the problem. I can log in as System Administrator. Thank you betxt Edited April 3, 2022 by bentxt Quote Link to comment Share on other sites More sharing options...
bentxt Posted April 1, 2022 Author Share Posted April 1, 2022 (edited) https://learn.getgrav.org/17/troubleshooting/page-not-found#htaccess-test-script Grav Apache .htaccess Tester hp_value display_errors On php_value mbstring.http_input auto php_value date.timezone Europe/Berlin <IfModule mod_rewrite.c> RewriteEngine On ## Begin RewriteBase # If you are getting 500 or 404 errors on subpages, you may have to uncomment the RewriteBase entry # You should change the '/' to your appropriate subfolder. For example if you have # your Grav install at the root of your site '/' should work, else it might be something # along the lines of: RewriteBase /<your_sub_folder> ## # RewriteBase / ## End - RewriteBase ## Begin - X-Forwarded-Proto # In some hosted or load balanced environments, SSL negotiation happens upstream. # In order for Grav to recognize the connection as secure, you need to uncomment # the following lines. # # RewriteCond %{HTTP:X-Forwarded-Proto} https # RewriteRule .* - [E=HTTPS:on] # ## End - X-Forwarded-Proto ## Begin - Exploits # If you experience problems on your site block out the operations listed below # This attempts to block the most common type of exploit `attempts` to Grav # # Block out any script trying to use twig tags in URL. RewriteCond %{REQUEST_URI} ({{|}}|{%|%}) [OR] RewriteCond %{QUERY_STRING} ({{|}}|{%25|%25}) [OR] # Block out any script trying to base64_encode data within the URL. RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] # Block out any script that includes a <script> tag in URL. RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR] # Block out any script trying to set a PHP GLOBALS variable via URL. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] # Block out 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 homepage RewriteRule .* index.php [F] # ## End - Exploits ## Begin - Index # 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 - Index ## Begin - Security # Block all direct access for these folders RewriteRule ^(\.git|cache|bin|logs|backup|webserver-configs|tests)/(.*) error [F] # Block access to specific file types for these system folders RewriteRule ^(system|vendor)/(.*)\.(txt|xml|md|html|json|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ error [F] # Block access to specific file types for these user folders RewriteRule ^(user)/(.*)\.(txt|md|json|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ error [F] # Block all direct access to .md files: RewriteRule \.md$ error [F] # Block all direct access to files and folders beginning with a dot RewriteRule (^|/)\.(?!well-known) - [F] # Block access to specific files in the root folder RewriteRule ^(LICENSE\.txt|composer\.lock|composer\.json|\.htaccess)$ error [F] ## End - Security </IfModule> # Begin - Prevent Browsing and Set Default Resources Options -Indexes DirectoryIndex index.php index.html index.htm # End - Prevent Browsing and Set Default Resources </div> How can i solved the probem? Edited April 1, 2022 by bentxt Quote Link to comment Share on other sites More sharing options...
bentxt Posted April 2, 2022 Author Share Posted April 2, 2022 (edited) Hello, we have no solution for this problem? Which Softaculous package can i use with infinitiyFree? Edited April 2, 2022 by bentxt Quote Link to comment Share on other sites More sharing options...
bentxt Posted April 2, 2022 Author Share Posted April 2, 2022 @BastelPichi2 Can you test, if you get the same Error? Thank you bentxt Quote Link to comment Share on other sites More sharing options...
bentxt Posted April 2, 2022 Author Share Posted April 2, 2022 (edited) This is my grav Testsite, installed with Softaculous. https://bastelben.22web.org/ https://www.w3.org/ https://validator.w3.org/ https://validator.w3.org/nu/?doc=http%3A%2F%2Fbastelben.22web.org%2F bentxt with WordPress, Softaculus https://bastelbenwp.22web.org/ https://validator.w3.org/nu/?doc=http%3A%2F%2Fbastelbenwp.22web.org%2F bentxt try to install Shopware The following errors were found The following errors were found : Could not make the query numbered : 174 MySQL Error No : 1064 MySQL Error : You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'GENERATED ALWAYS AS (json_unquote(json_extract(`price`,'$.taxStatus'))) VIRTU...' at line 22 bentxt Joomla - ok https://bastelbentest.22web.org/ Edited April 2, 2022 by bentxt Quote Link to comment Share on other sites More sharing options...
bentxt Posted April 2, 2022 Author Share Posted April 2, 2022 (edited) ? i don't find the solution for me. ? https://learn.getgrav.org/17/troubleshooting/page-not-found PHP Info phpinfo.php Quote PHP Version 7.4.8 System Linux freeweb12-2.byetcluster.com 2.6.32-896.16.1.lve1.4.54.el6.x86_64 #1 SMP Wed May 2 07:43:19 EDT 2018 x86_64 Server API Apache 2.0 Handler Configuration File (php.ini) Path /etc/php70 Loaded Configuration File /etc/php70/php.ini Scan this dir for additional .ini files (none) Additional .ini files parsed (none) Zend Extension Build API320190902,NTS PHP Extension Build API20190902,NTS Zend Signal Handling enabled Zend Memory Manager enabled Zend Multibyte Support provided by mbstring IPv6 Support disabled DTrace Support disabled Registered PHP Streams https, ftps, compress.zlib, php, file, glob, data, http, ftp, phar, zip Registered Stream Socket Transports tcp, unix, udg, ssl, tls, tlsv1.0, tlsv1.1, tlsv1.2, tlsv1.3 Registered Stream Filters zlib.*, convert.iconv.*, string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, dechunk Edited April 2, 2022 by bentxt Quote Link to comment Share on other sites More sharing options...
bentxt Posted April 2, 2022 Author Share Posted April 2, 2022 https://bastelben.22web.org/htaccess_tester.php Grav Apache .htaccess Tester The file .htaccess exists and is readable to the webserver. The file contains: <IfModule mod_rewrite.c> RewriteEngine On ## Begin RewriteBase # If you are getting 500 or 404 errors on subpages, you may have to uncomment the RewriteBase entry # You should change the '/' to your appropriate subfolder. For example if you have # your Grav install at the root of your site '/' should work, else it might be something # along the lines of: RewriteBase /<your_sub_folder> ## # RewriteBase / ## End - RewriteBase ## Begin - X-Forwarded-Proto # In some hosted or load balanced environments, SSL negotiation happens upstream. # In order for Grav to recognize the connection as secure, you need to uncomment # the following lines. # # RewriteCond %{HTTP:X-Forwarded-Proto} https # RewriteRule .* - [E=HTTPS:on] # ## End - X-Forwarded-Proto ## Begin - Exploits # If you experience problems on your site block out the operations listed below # This attempts to block the most common type of exploit `attempts` to Grav # # Block out any script trying to use twig tags in URL. RewriteCond %{REQUEST_URI} ({{|}}|{%|%}) [OR] RewriteCond %{QUERY_STRING} ({{|}}|{%25|%25}) [OR] # Block out any script trying to base64_encode data within the URL. RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] # Block out any script that includes a <script> tag in URL. RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR] # Block out any script trying to set a PHP GLOBALS variable via URL. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] # Block out 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 homepage RewriteRule .* index.php [F] # ## End - Exploits ## Begin - Index # 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 - Index ## Begin - Security # Block all direct access for these folders RewriteRule ^(\.git|cache|bin|logs|backup|webserver-configs|tests)/(.*) error [F] # Block access to specific file types for these system folders RewriteRule ^(system|vendor)/(.*)\.(txt|xml|md|html|json|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ error [F] # Block access to specific file types for these user folders RewriteRule ^(user)/(.*)\.(txt|md|json|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ error [F] # Block all direct access to .md files: RewriteRule \.md$ error [F] # Block all direct access to files and folders beginning with a dot RewriteRule (^|/)\.(?!well-known) - [F] # Block access to specific files in the root folder RewriteRule ^(LICENSE\.txt|composer\.lock|composer\.json|\.htaccess)$ error [F] ## End - Security </IfModule> # Begin - Prevent Browsing and Set Default Resources Options -Indexes DirectoryIndex index.php index.html index.htm # End - Prevent Browsing and Set Default Resources </div> Quote Link to comment Share on other sites More sharing options...
bentxt Posted April 2, 2022 Author Share Posted April 2, 2022 .htaccess <IfModule mod_rewrite.c> RewriteEngine On ## Begin RewriteBase # If you are getting 500 or 404 errors on subpages, you may have to uncomment the RewriteBase entry # You should change the '/' to your appropriate subfolder. For example if you have # your Grav install at the root of your site '/' should work, else it might be something # along the lines of: RewriteBase /<your_sub_folder> ## # RewriteBase / ## End - RewriteBase ## Begin - X-Forwarded-Proto # In some hosted or load balanced environments, SSL negotiation happens upstream. # In order for Grav to recognize the connection as secure, you need to uncomment # the following lines. # # RewriteCond %{HTTP:X-Forwarded-Proto} https # RewriteRule .* - [E=HTTPS:on] # ## End - X-Forwarded-Proto ## Begin - Exploits # If you experience problems on your site block out the operations listed below # This attempts to block the most common type of exploit `attempts` to Grav # # Block out any script trying to use twig tags in URL. RewriteCond %{REQUEST_URI} ({{|}}|{%|%}) [OR] RewriteCond %{QUERY_STRING} ({{|}}|{%25|%25}) [OR] # Block out any script trying to base64_encode data within the URL. RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] # Block out any script that includes a <script> tag in URL. RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR] # Block out any script trying to set a PHP GLOBALS variable via URL. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] # Block out 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 homepage RewriteRule .* index.php [F] # ## End - Exploits ## Begin - Index # 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 - Index ## Begin - Security # Block all direct access for these folders RewriteRule ^(\.git|cache|bin|logs|backup|webserver-configs|tests)/(.*) error [F] # Block access to specific file types for these system folders RewriteRule ^(system|vendor)/(.*)\.(txt|xml|md|html|json|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ error [F] # Block access to specific file types for these user folders RewriteRule ^(user)/(.*)\.(txt|md|json|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ error [F] # Block all direct access to .md files: RewriteRule \.md$ error [F] # Block all direct access to files and folders beginning with a dot RewriteRule (^|/)\.(?!well-known) - [F] # Block access to specific files in the root folder RewriteRule ^(LICENSE\.txt|composer\.lock|composer\.json|\.htaccess)$ error [F] ## End - Security </IfModule> Quote Link to comment Share on other sites More sharing options...
bentxt Posted April 3, 2022 Author Share Posted April 3, 2022 Hello, good morning anyone use Grav, and have the solution? Greets bentxt Quote Link to comment Share on other sites More sharing options...
bentxt Posted April 3, 2022 Author Share Posted April 3, 2022 (edited) Support byet.net: Quote Hi there,Grav appears to not be compatible / supported by free hosting and has now been removed from Softaculious. Thank you and stay safe ! Please let us know if there is anything we can do. Best Regards ------------------------------------------------------------------------------------------------------------------- iFastNet Premium hosting provides Unlimited disk space & daily hits, free domains, VERY powerful faster servers and 100's more benefits! To upgrade this account to *Awesome* Premium Hosting - follow these simple steps : 1) Click upgrade plan link/icon in your free hosting cPanel or visit https://ifastnet.com 2) Choose your premium plan and make payment. 3) Reply here with your order or invoice number and we will upgrade your entire free hosting account files/domains to Premium! ------------------------------------------------------------------------------------------------------------------- iFastNet - Proud winners of the TMT Telecom 2017 "Best Premium Hosting" award. ------------------------------------------------------------------------------------------------------------------- Premium hosting solutions available from https://ifastnet.com solid secure fast hosting ! Edited April 3, 2022 by bentxt Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.