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: 168.34.26.58 or,
- Open the web browser and type http://localhost or http://127.0.0.1
If the web server is running, you should be able to see the welcome page (Welcome to Server2.netcontrol.org!) 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]
Or
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,
 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
 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
 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 168.34.26.58), localhost or 127.0.0.1 in your web browser. Read it, it is an online documentation.
|