District of Columbia Server Administration

Setting up a Web server can be done in a variety of ways, although it is not for the faint of heart. To properly set up and maintain a web server, you should look in to hiring a server admin in District of Columbia. Although if you wish to take on the job your self, consider the following: In essence, a Web server is a server that runs Linux, Apache, MySQL, and Php/Perl. First we will look at Web server installation for each custom web development , and then we will also look at a simplified process that can agile software development this as well.

Before we get going, it should be noted that hosting web services for Web are something to think about. Dedicated web hosting is important in the setting up of a Web server. With dedicated web hosting you control every aspect of your domain. Shared hosting means you will be sharing your website, as well as your IP address, with many other websites. Having dedicated web hosting before programming with php to install a Web server is highly essential for getting your Web server installed.

Now let's get to the installation process so you can get your Web server running. Once you get Web set up you will have Apache 2 Linux Web Server, MySQL 5 MySQL Data Base Server, PHP5 PHP Scripting Language, and phpmyadmin web-based database admin software.

First there are certain requirements you need to set up a Web server. You will need a Debian Etch base installation. You can go to the Debian website to download the latest version. This requires a dedicated internet connection, so as previously vps hosting , you will need to secure dedicated web hosting to install this application.

You will also need at least 256 MB of RAM installed on your computer.

An understanding of the "apt-get" command is also required.

Assuming you have met these requirements, let's reseller hosting on to the pre-installation of your Web server.

First, you need to update the essential packages with Debian using the following command.

apt-get update

apt-get upgrade

Now you will be ready to install Apache 2 and PHP5

In a Linux shell, run the following

apt-get install apache2 php5 libapache2-mod-php5

Your configuration file for Apache 2 will be located at /etc/apache2/apache2.conf and the web folder will be /var/www

To php training that PHP5 was installed correctly, create a new php page named test.php by opening up the vim editor using the following command: vim /var/www/apache2-default/test.php

When the page is opened insert this code into vim

Save the file and point your browser to http://example.com/apache2-default/test.php

This should then show you all of your PHP5 default and configuration settings.

Now you will be ready to install the MySQL 5 Data Base Server. If you intend on running a website that is data base driven, installing the MySQL database server is a necessity. Installation of the MySQL 5 server and MySQL 5 client can be free php web hosting using the following commands:

apt-get install mysql-server mysql-client php5-mysql

The location of the configuration file of MySQL will be /etc/mysql/my.cnf

It is highly recommended that you immediately change the root password, as the default MySQL will create a user as root and run with no password presenting a high security risk. You can change Root Password with the following command:

mysql -u root

mysql> USE mysql;

mysql> UPDATE user SET Password=PASSWORD('new-password') WHERE user='root';

mysql> FLUSH PRIVILEGES;

When running databases you must never use your root account and password. The root account should only be used for admin procedures as it is a priveleged account. To email hosting your MySQL databases from a PHP script create a separate user account. By using a control panel like phpMyAdmin you can create, assign, and add users to a MySQL database.

Next we can install phpMyAdmin. This is easy to configure and install under Apache. phpMyAdmin provides a good administration and web based database management software. This may be the simplest way to manage databases with tables. Just use the following command:

apt-get install phpmyadmin

The location of the configuration file for phpMyAdmin will be /etc/phpmyadmin

If you want access to phpMyAdmin on your website, include the following line in /etc/apache2/apache2.conf :

Include /etc/phpmyadmin/apache.conf

Then restart Apache using the following command: /etc/init.d/apache2 restart

Point your browser to http://example.com/phpmyadmin/ and you should be good to go.

Now your MySQL and phpMy Admin are all set up. You can now login with your MySQL root account and password, enabling you to create users that you will allow to connect to your databases from your PHP script.

Now your Web server will be ready to go. You can use the Linux server, Apache server, phpMyAdmin and the rest. But wait, lets now look at the easier version of this server installation. Did you know you can install your Web server using only two commands? Believe it or not this is true, and now we will free php hosting how this simple process can be done.

First you need to run: apt-get update

Next, you will then run: apt-get install apache2 php5 libapache2-mod-php5 mysql-server mysql-client php5-mysql phpmyadmin

That's all it takes. Everything site hosting above will now be installed and your Web server will be ready for you to use.


Find Hosting Resources by State