I use SVN (Subversion) for a lot of my projects and like many projects some can become quite large in filesize. One issue I discovered recently is I kept getting a strange error when trying to commit a change that involved a large .tar.gz file. In my commit log I kept getting “413 Request Entity Too Large” which prevented me from committing the latest changes. After looking around I found a fix for the issue, but it seems there are many ways to solve this error.
When you go to punch in a URL in your browsers address bar, you may add the www. or be lazy and just put in thedomain.com, sometimes you can use both and sometimes one of the two redirects to the other version of the address. For example if you type in james-blogs.com in your URL address bar the www. suddenly is added on, why? This is because for SEO purposes it is important that you have one constant varitation while redirecting the both to chosen variation in my case I make the www. appear as I think it looks better with blog and domains with a dash in them. Read more to find out why this is important
In part two, we installed almightly PHP language onto our localhost, with that you can now run php scripts and code offline on your localhost, but for example what if you want to test a script that needs a database your basically stuck aren’t you? Well to handle databases there’s something called MySQL, this is simple a relation database management system and is present on most web-servers avaliable today. MySQL allows you to create and modify (To a certain extent) databases on a server, and lucky you, it can be installed on a localhost! We will be installing the MySQL service and getting it to run with your localhost.
A localhost is a developers best friend when it comes to testing out server side scripts etc. Much like a web-server, a localhost is a space which is offline but allows you to view/test server side code as if it was a real online server, but infact you will be creating a server which can only be accessed by you. There are many ways to create an localhost but there is one easy newbie friendly way to go about it, and that is by installing Apache web server on your computer. This method is very simple and easy to follow.