413 Request Entity Too Large – File Upload Issue

Source: http://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/ Edit the conf file of nginx: nano /etc/nginx/nginx.conf Add a line in the http, server or location section: client_max_body_size 100M; Doen’t use MB it will not work, only the M! Also do not forget to restart nginx systemctl restart nginx

What is the difference between the ‘sites-enabled’ and ‘sites-available’ directory? [closed]

The difference is that virtual sites listed in the sites-enabled directory are served by Apache. In the sites-available directory there are the virtual sites that exist on your server, but people can’t access them because they are not enabled yet. sites-available: this directory has configuration files for ApacheĀ 2 Virtual Hosts. Virtual Hosts allow ApacheĀ 2 to … Read more

CodeIgniter removing index.php from url

Try the following Open config.php and do following replaces $config[‘index_page’] = “index.php” to $config[‘index_page’] = “” In some cases the default setting for uri_protocol does not work properly. Just replace $config[‘uri_protocol’] =”AUTO” by $config[‘uri_protocol’] = “REQUEST_URI” .htaccess RewriteEngine on RewriteCond $1 !^(index\.php|resources|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] Note: .htaccess code … Read more

Only variable references should be returned by reference – Codeigniter

Edit filename: core/Common.php, line number: 257 Before return $_config[0] =& $config; After $_config[0] =& $config; return $_config[0]; Update Added by NikiC In PHP assignment expressions always return the assigned value. So $_config[0] =& $config returns $config – but not the variable itself, but a copy of its value. And returning a reference to a temporary … Read more

Site does not exist error for a2ensite

Solved the issue by adding .conf extension to site configuration files. Apache a2ensite results in: Error! Site Does Not Exist Problem; If you found the error while trying to enable a site using: sudo a2ensite example.com but it returns: Error: example.com does not exist a2ensite is simply a Perl script that only works with filenames … Read more

Apache2: ‘AH01630: client denied by server configuration’

If you are using Apache 2.4 You have to check allow and deny rules Check out http://httpd.apache.org/docs/2.4/upgrading.html#access In 2.2, access control based on client hostname, IP address, and other characteristics of client requests was done using the directives Order, Allow, Deny, and Satisfy. In 2.4, such access control is done in the same way as … Read more