![]() ![]() The tradition is to use /var/www/domain-name: DocumentRoot /var/www/ Next, we need to define where the web site files are going to be located using the DocumentRoot directive. Next the ServerName and ServerAlias directives need to be defined so that the web server knows which virtual host this configuration file refers to: ServerName ![]() Change this to an appropriate email address where you can be contacted: ServerAdmin The ServerAdmin directive defines an administrative email address for people wishing to contact the webmaster for your site. Once loaded, there are a number of settings that need to be changed to match your environment: Change directory into the conf sub-directory where you will find an nf file which contains the configuration settings for the Apache server.Įdit the nf file using your favorite editor using the su command to ensure you have write permission to the file. In this directory you will find a number of sub-directories. To configure the web server open a terminal window and change directory to /etc/httpd. This is performed in the /etc/httpd directory. The next step in setting up your web server is to configure it for your domain name. To ensure the services starts automatically on reboot, also select the check box next to the service name.Ĭonfiguring the Apache Web Server for Your Domain Select the item in the list and click on the Start button. To configure the Apache service using the Service Configuration tool, select the System -> Administration -> Services menu option and scroll down the list of services until you find httpd. If you would like the Apache httpd service to start automatically when the system boots (for example when booting to runlevel 3), this can be achieved by running the following command: /sbin/chkconfig -level 3 httpd onįor more information on runlevels refer to the chapter entitled Configuring RHEL 5 Runlevels and Services. If the above command indicates that the httpd service is not running, it can be launched from the command-line as follows: su. To check the status of the Apache httpd service from the command-line, enter the following command in a Terminal window: /sbin/service httpd status The status of the server can be verified from the command-line or via the GUI Service Configuration tool. Once the Apache server is installed, the next step is to verify that the server is running and, if it is not yet running, to start it. To install Apache from the command-line start a terminal window ( Applications -> System Tools -> Terminal) and run the following commands at the command prompt: su. Finally, click on the Apply button to begin the installation. Click on the toggle next to the httpd server. ![]() After the search completes the Apache HTTP Server should be listed in the search results. Select the Search tab and search for httpd. Enter your root password if prompted to do so. ![]() To use this tool, open the System -> Administration desktop menu and select Add/Remove Software. This can be performed either from the command-line or using the Add/Remove Software tool. If rpm generates output similar to the following, the apache server is already installed: httpd-2.2.3-43.el5Īlternatively, if rpm generates a "package httpd is not installed" then the next step, obviously, is to install it. To check whether the server is already installed, open a Terminal window ( Applications -> System Tools -> Terminal) and run the following command: rpm -q httpd The current release of RHEL typically does not install the Apache web server by default. Once you have your domain name and your name server configured the next step is install and configure your web server. your ISP provides you with a dynamic address which changes frequently) then you can use one of a number of free services which map your dynamic IP address to your domain name. If you do not have a static IP address (i.e. If yours does not, you can create a free account at and use their name servers to point your domain name at your static IP address. Some domain registration services will provide this service for you. If your ISP provides static IP addresses then you will need to associate your domain with your static IP address. A domain name can be registered with any domain name registration service. As previously mentioned RHEL supports the Apache web server which can easily be installed once the operating system is up and running. In terms of an operating system, we will, of course, assume you are using RHEL 5. The computer can be any system capable of running Linux. To set up your own web site you need a computer, an operating system, a web server, a domain name, a name server and an IP address. Requirements for Configuring an RHEL 5 Web Server ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |