The website is being renamed as an example.htaccess.



  • I have kohana 3.3.5, apach2.4 and php 5.4.
    When changing the name of the "example.htaccess " file to " htaccess " , when entering the download, error:
    ERROR 500 the server encountered an internal error or misconfiguration and was unable to complete your request
    Although LoadModule rewrite_module modules/mod_rewrite.so (at httpd.conf) included.

    When Apache 2.2 is used, the error changes:
    Fatal error: Call to undefined function mb_substitute_character() inZ:\home\kohana\www/application\bootstrap.php on line64

    Does anyone know how to avoid that?

    P. S.
    "error.log" says:
    Invalid command 'Order', perhaps misspelled or defined by a module not included in the server

    I realized that problem upgrading c apache 2.2 to 2.4♪ Maybe someone's gonna throw a Russian reference. https://httpd.apache.org/docs/2.4/upgrading.html



  • In Apache 2.4, the access control system changed. Directive Order Not available anymore. Instead of old directives Allow/Deny/Order should be used Require♪ If, for some reason, it is not possible to change the contents of .htaccess, a special module supporting the old recording format is required. mod_access_compat:

    LoadModule access_compat_module modules/mod_access_compat.so
    

    This is required at httpd.conf. Well, don't forget Apache's tumor after that.


    If you didn't immediately set 2.4 and updated with 2.2, I strongly recommend that you see it - https://httpd.apache.org/docs/current/upgrading.html

    Description of changes Russian - https://codeby.net/programmy-dlja-servera/%D0%B2%D0%B0%D0%B6%D0%BD%D1%8B%D0%B5-%D0%B7%D0%B0%D0%BC%D0%B5%D1%87%D0%B0%D0%BD%D0%B8%D1%8F-%D0%BF%D1%80%D0%B8-%D0%BE%D0%B1%D0%BD%D0%BE%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B8-apache-%D1%81-2-2-%D0%B4/

    Description of new restrictions of access - https://httpd.apache.org/docs/current/mod/mod_authz_core.html (for example, see. https://httpd.apache.org/docs/current/mod/mod_authz_core.html#require )

    Description mod_access_compat: https://httpd.apache.org/docs/current/mod/mod_access_compat.html




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2