I recently acquired some domains and finally got around to adding them to my server. Instead of them being their own sites (well, point to my primary site, but the URL in the browser address bar is taken over by the new domain name), I wanted them to redirect to my primary domain (phillipcooper.co.uk). If…
Tag: Apache
Some Simple PHP code..
Below i am going to list some simple PHP code that makes up most of a PHP coded page. If..Elseif…Else… statments $something = “Cat”; if ($something==”Cat”) { print “Cat\n”; } elseif ($something==”Dog”) { print “Dog\n”; } else { print “Dont know\n”; Explode…foreach $ex = “cat:dog:mouse:goose”; $explode = explode(“:”, $ex); foreach ($explode as $exploded) { print…
How to install WordPress on Ubuntu 12.04 LTS
The articles explains how to install WordPress on Ubuntu 12.04, to instructions are step by step and I use the latest version of WordPress using the .dpkg package from apt. To start off with install install the Ubuntu WordPress package with: apt-get install wordpress php5-gd This should pull down and install everything you need to…
CentOS 6 LAMP Install (Apache MySQL & PHP) via YUM
This tutorial will walk you through the process of installing a CentOS 6 LAMP server, LAMP stands for Linux Apache MySQL PHP and is often refereed to as a “LAMP Stack“. CentOS is a popular choice for web servers as it’s based on RHEL (Redhat Linux), this tutorial will use YUM to install the required packages. This…
[warn] _default_ VirtualHost overlap on port 80, the first has precedence Apache
When restarting Apache (or httpd service) if you get the following Apache error: [warn] _default_ VirtualHost overlap on port 80, the first has precedence on Linux (CentOS, Ubuntu, Fedora, etc) chances are you are configuring vhosts or adding additional virtual hosts to your Apache config. You are probably seeing an error similar to the following:…
Load balancing an apache web server/website with “POUND”….
The Pound program is a reverse proxy, load balancer and HTTPS front-end for Web server(s). Pound was developed to enable distributing the load among several Web-servers and to allow for a convenient SSL wrapper for those Web servers that do not offer it natively. Pound is distributed under the GPL – no warranty, it’s free to use, copy and give away….