Previous Page | Next Page

  1. Agustin's Linux Manual
  2. Networks & Servers
  3. About the Author
  4. Table of Contents
  5. IP Addresses Networks and Subnets
  6. Network Classes
  7. IP Address in Decimal Notation
  8. Sub-netting
  9. Designing Subnets
  10. Allocating Subnets
  11. Defining Host Addresses
  12. Variable Length Subnet Mask
  13. Routing Protocols
  14. Classless Internet Domain Routing
  15. Servers - Chapter 9
  16. Apache Web Server
  17. Configuring Apache
  18. Uploading Web Pages
  19. Apache Overview
  20. MIMEMagic
  21. DNS Servers
  22. Welcome to Webmin
  23. Creating the Master Domain
  24. Adding the Reverse Zone
  25. Querying the DNS server
  26. Adding Virtual Domain to DNS Server
  27. Reverse Zone for Virtual Zone
  28. Binding IP Address for Virtual Domain
  29. Virtual Web Hosting
  30. DNS Security Options
  31. FTP Server
  32. Securing the FTP Server
  33. Email Server
  34. Postfix Configuration
  35. Dealing with Identical Users
  36. Configuring Email Clients
  37. Configuring Outlook
  38. Samba Server
  39. Configuring SAMBA Server
  40. The smb.conf File
  41. smb.conf Analysis
  42. Adding Users to Samba

Configuring the Apache web server

During the installation, if you followed my instructions you probably installed the Web server. If that is the case you just have to make sure the server is running,

  • Open the web browser and type the IP address: or,
  • Open the web browser and type http://localhost or

If the web server is running, you should be able to see the welcome page (Welcome to!) of course in this case will display your domain name. If the server is not running, you will see page cannot be displayed!

Ok, the server is not running -is it installed?

There are several ways to verify if the server is running.

  • From your console as root, type
[root@server2 agustin]# service httpd start

If Apache is installed, you will see the server:

Starting httpd: --------------------------------------- [OK]


Starting httpd2:-------------------------------------- [OK]
On Mandrake 9.1 & 9.2

If the server is not installed, you will receive a message saying; try the command with some parameters.

  • You can also enter the linuxconf management console and verify if the software is there; if it is there start it.

[root@server2 agustin]# linuxconf

  • Scroll to: control Panel => control service Activity
  • Scroll down to find: httpd
  • Highlight it and press Enter
  • Hitting the Enter key, another panel pops up
  • In this panel select the option [x] Automatic

At the bottom of the panel you can see six buttons,

Six Buttons
Fig 9.8

You can start the httpd server here by selecting start or Accept.

  • Now click on Dismiss button
  • Click on Dismiss again
  • Click on Quit
  • Finally click on Do it

Next time you reboot the system your web server will be running automatically.

  • Another option is you can use the control center and select services to see if the software is there, if yes start it.
  • KDE Start Menu =>Control Center => System => Services /DrakeX Services (Mandrake 9.1)
  • KDE Start Menu => Configuration => Configure your computer (Mandrake 9.2)
  • Alternatively you can use linuxconf in graphical mode.
  • From the linuxconf configuration panel select:
  • Control => Control panel => Control Service Activity
Service Control
Fig 9.9

From the service control panel, scroll down to locate the service.

    -  Click on the service
    -   On the service property, note that startup is on Automatic

Service Httpd
Fig 9.10

On this Fig. 9.9, note Status is Running

Same as in text mode, you can change the service Run levels.
Set the running levels as appear on this picture.

  • Click on Accept
  • Click on Dismiss
  • Click on Dismiss
  • Click on Quit
  • Click on Do it
  • Answer No (not desired to view log)
  • Finally restart the system

After the system restarts, the server should be up and running. In case you browse through the services, you don't see the httpd service, browse it again; everything is listed in alphabetical order. If you don't see it here, then it is not installed. Use the software management in the control center to install it. If you need help installing the software, refer to chapter 4 for software installation.

After these steps, you should be able to get to the local home page by typing the (IP address, localhost or in your web browser. Read it, it is an online documentation.