UK Best Broadband speeds

You can also search the London & UK Pub History site and Street directory by historical Pub name or street address. The Pub history site is a major historical street directory of London and the Southern area of the UK, listing many Pubs (either closed or open); and street name changes between about 1840 and about 1940. If your Pub is still OPEN (and not a dead pub), why not send a picture and some details - to clarify this.
Please Contact: Kevan with any updates and additions to the site.

Support the Nelson Mandela Foundation - Eddie Izzard to run 27 marathons in 27 days

site search by freefind

[an error occurred while processing this directive]

Apache CentOS - Apache Web server configuration - part 1.

Just for background - I am a computer officer at an UK University. I also do this as part of my non-working life, as I am a saddo.

February 2011:

Bear with me, this is a completely new Linux operating system that I have never used before. I am about to sign up for a dedicated server with a web hosting company; and need to understand centOS fairly quickly. It appears that it is very like Red Hat, and I have never used this OS before either! I run a host of historical pub sites, etc. in my spare time.

I am used to Ubuntu, and SuSE; so hopefully it is not too different.

1. Important, if you change a file, make a backup copy first  - e.g. httpd.conf

2. Get stuck in.

3 How do you start and stop the server? apachectl stop / start / restart

4. Where are the relevant configuration files? I am looking for httpd.conf which appears to be at:

/etc/apache2/conf/httpd.conf

5. Check out the ip address of the server - ifconfig; and also make sure that ssh works. I am working on a local server which only responds to the ip address at present. The sever I will be building on I will have root access through ssh, but not much else.

6. Lets do some stuff via ssh - login as root, with relevant password.

7. cd /etc/httpd/conf and pwd to confirn the actual directory we are in.

8 In ssh you can use vi httpd.conf or at the machine you can probably use gedit httpd.conf (do not forget to backup this file first); e.g. cp httpd.conf httpd.conf-orig

9 Now. let's have a look at this file - more httpd.conf

User & Group are apache. I tend to prefer different user and group, e.g. nobody and nogroup. Leave it as it is at present.

ServerAdmin email address - change as you wish

ServerName - the # before it means it is commented out. I will leave this as is at present.

DocumentRoot "/var/www/html" - this is important, and can be changed  to (say) /usr/local/Web

There is an entrey  - <Directory "/var/www/html"> a few lines further on; if you change DocumentRoot, you also need to change this!!

10. Right, lets edit the httpd.conf file. This is at /etc/httpd/conf and I am in ssh mode, so I cannot use gedit, instead I am going to use the vi editor.

Quick command syntax for vi: i - insert, Esc - escape insert; quit is :q! without saving (that's colon then q then exclamation mark).; save is shift key and Z twice. A couple of delete commands - x removes a character; dd removes a line. These five commands do most of what you need to do. I never use much else.

11. vi httpd.conf

12. In the first instance I have changed the DocumentRoot & Directory settings to /usr/local/Web

13 apachectl restart

14 I get an immediate error - along the lines that the directory does not exist.

15 cd /usr/local and then mkdir Web and cd Web and vi index.html

In the index.html entry add a simple line - hello kevan

16 Now we need to check the config file by typing apachectl configtest and then restart apache - apachectl restart

 

next page of introduction to centOS apache configuration setup

 

 

 

 

 

 



Search the London & Southern England Pub History site and Street directory by historical Pub name, surname or street address. The Pub history site is a major historical street directory which lists mainly Pubs and street name changes between about 1840 and 1940. The site is updated every day. Contact: Kevan with any updates and additions.
site search by freefind

All transcriptions and imagery is copyright, and excepting personal usage (which is fine); it is NOT available for commercial usage or copying onto other websites without explicit permission. Many of the images, and all of the transcriptions are the work of myself and other contributors - please do not steal this work.
The historical trade directory and census listing of all of London, Essex, Kent, Suffolk, Berkshire, Buckinghamshire, Sussex, Hertfordshire, Cambridgeshire Oxfordshire, and Dorset. If you are searching for a historical address, try the census and street directory database. This is a Victorian view on the streets of london and the south of England.

Best Broadband Providers in the UK .

And Last updated on: Saturday, 05-Feb-2011 19:49:33 CST