Deploying Suse Linux Enterprise Server
| Purchase "Deploying Suse Linux Enterprise Server" at Lulu.com |
Apache Web Server
- SLES Configuration Layout
- The Yast Apache Wizard and Configuring Apache
- Creating Virtual Hosts
- Apache Authentication Techniques
- Using MySQL with Apache
Stepping Through the Yast Apache Wizard
When you first launch Yast's HTTP Server module you are presented with a Wizard to help you in the initial configuration of the Apache Server. Most of this wizard is pretty straight forward. The first step allows you to select which network interface(s) Apache should "listen" for requests. You can also configure the firewall to allow HTTP traffic through the firewall.
![]()
![]()
Specifying the Addresses that Apache Listens On and Enabling Various Scripting Languages
The Second step is a little more complex. Here you can enable various scripting languages that the Apache Web Server supports. It is wise to ensure that you enable any scripting language that you may utilize in the future, as it is quite a bit more difficult to enable them later after the wizard is complete (also ensure that you enable any languages that may be required for any web application you are planning to implement).
![]()
![]()
Apache's Default Host Parameters and Setting Apache to Start Automatically
The third step in the wizard allows you to adjust the default host configuration. You can easily re-adjust the default host at a later time through the Yast "HTTP Server" module.
The fourth step allows you to define Virtual Hosts that your server will provide. I will cover configuring Virtual Hosts later and they can easily be configured after the wizard has completed. The final step in the wizard simply allows you to specify if you want the Apache Server to start when the computer boots, or if you want to manually enable the server.
Configuring Apache
Once you complete the configuration wizard you now have a basic web server that you can host most basic web sites with. If you need to fine tune your server or add more functionality to it, you can utilize the Yast HTTP Server module to do this.
When you launch the Yast Module you are presented with an interface with various tabs:
- Listen Ports and Addresses: This tab allows you to change the listen addresses or ports that the Apache Server will listen on. You can also access the log files from this tab and even restart the Apache Server (from within the log file viewer).
- Server Modules: This tab allows you to enable or disable various Apache Modules. Apache Modules allow you to add additional functionality to the server if needed.
- Main Host: This tab allows you to configure the "Main Host" of the Apache Server. If you are not utilizing virtual hosts this is how you adjust settings for your site.
- Hosts: This tab allows you to specify virtual hosts that the server will host. I will cover this in detail in a later section.
![]()
![]()
Enabling Various Server Modules and Editing the Main Host
Useful Directory Options
To customize your server and to configure it to function how you want it to, you can add various options to either the directories specified within the "Main Host" or directories listed within virtual hosts (which I will cover later). To add these options, simply highlight the "Directory" statement and select Edit. You then simply need to add these to the "Options" option (comma separated). Some useful directory options are listed below:
- ExecCGI: Allows execution of CGI scripts, useful for some Web Developers.
- FollowSymLinks: Allows the server to follow symbolic links outside of the stated directory. Useful if you want to host files located within a different directory on the server.
- Indexes: This tells the server to generate a directory listing of the current directory if no index.html file is present. If this option is not present, the server will return an "Access forbidden" error if a user access a directory directly. This option allows you to easily host various files with your Apache Server.
| Purchase "Deploying Suse Linux Enterprise Server" at Lulu.com |





