[Solved] Nginx on Fedora – warn could not build optimal types_hash message

When trying to setup Nginx on Fedora with php-fpm there is a weird warning message when testing with command nginx -t on the terminal nginx: [warn] could not build optimal types_hash, you should increase either types_hash_max_size: 2048 or types_hash_bucket_size: 64; ignoring types_hash_bucket_size nginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test…

Handle 404, 500, and 301 Apache Errors With .htaccess file

If A 404 Error happen in your web site it will show a not available page with no links. You can escape from this situation very easly. The solution is surprisingly simple. Use your .htaccess file simply put a line ErrorDocument 404 /index.php in the file. The error redirected to your home page. Problem solved.…