The software described in this documentation is either in Extended Support or Sustaining Support. See https://www.oracle.com/us/support/library/enterprise-linux-support-policies-069172.pdf for more information.
Oracle recommends that you upgrade the software described by this documentation as soon as possible.
These instructions assume that you are setting up an Oracle Linux 6 system as an Apache HTTP server.
To set up an HTTP server:
Install the Apache HTTP server package.
#
yum install httpdCreate the directory where you will copy the full Oracle Linux Release 6 Media Pack DVD image, for example
/var/www/html/OSimage/OL6:#
mkdir -p /var/www/html/OSimage/OL6NoteIf SELinux is enabled in enforcing mode on your system, create the directory under the
/var/www/htmldirectory hierarchy so that thehttpd_sys_content_tfile type is set automatically on all the files in the repository.Edit the HTTP server configuration file,
/etc/httpd/conf/httpd.conf, as follows:Specify the resolvable domain name of the server in the argument to
ServerName.ServerName
server_addr:80If the server does not have a resolvable domain name, enter its IP address instead. For example, the following entry would be appropriate for an HTTP server with the IP address 192.168.1.100.
ServerName 192.168.1.100:80
If the directory to which you will copy the DVD image in not under
/var/www/html, change the default setting ofDocumentRoot.In this example, the DVD image will be copied to
/var/www/html/OSimage/OL6so the setting ofDocumentRootcan remain unchanged.DocumentRoot "/var/www/html"
Verify that the
<Directory>setting points to the same setting asDocumentRoot.# # This should be changed to whatever you set DocumentRoot to. # <Directory "/var/www/html">
If you want to be able to browse the directory hierarchy, verify that the
Optionsdirective specifies theIndexesoption, for example:Options Indexes FollowSymLinks
NoteThe
Indexesoption is not required for installation.Save your changes to the file.
Start the Apache HTTP server, and configure it to start after a reboot.
#
service httpd start#chkconfig httpd onIf you have enabled a firewall on your system, configure it to allow incoming HTTP connection requests on TCP port 80.
For example, the following command configures
iptablesto allow incoming HTTP connection requests and saves the change to the firewall configuration:#
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT#service iptables save

