Skip to end of metadata
Go to start of metadata

Install & Configure the Database

  1. Download & Extract the Apache VCL Source

    1. If you have not already done so, download and the Apache VCL source to the database server:

      wget --trust-server-names ''

    2. Extract the files:

      tar -jxvf apache-VCL-2.3.tar.bz2

  2. Install MySQL Server

    1. Install MySQL Server 5.x:

      yum install mysql-server -y

    2. Configure the MySQL daemon (mysqld) to start automatically:

      /sbin/chkconfig --level 345 mysqld on

    3. Start the MySQL daemon:

      /sbin/service mysqld start

    4. If the iptables firewall is being used and the web server and management nodes will be on different machines, port 3306 should be opend up

      vi /etc/sysconfig/iptables

      -A RH-Firewall-1-INPUT -m state --state NEW -s <web server IP> -p tcp --dport 3306 -j ACCEPT
      -A RH-Firewall-1-INPUT -m state --state NEW -s <management node IP> -p tcp --dport 3306 -j ACCEPT
      service iptables restart
      
  3. Create the VCL Database

    1. Run the MySQL command-line client:

      mysql

    2. Create a database:

      CREATE DATABASE vcl;

    3. Create a user with SELECT, INSERT, UPDATE, DELETE, and CREATE TEMPORARY TABLES privileges on the database you just created:

      GRANT SELECT,INSERT,UPDATE,DELETE,CREATE TEMPORARY TABLES ON vcl.* TO 'vcluser'@'localhost' IDENTIFIED BY 'vcluserpassword';

      Replace vcluser and vcluserpassword with that of the user you want to use to connect to the database

      The GRANT command will automatically create the user if it doesn't already exist

    4. Exit the MySQL command-line client:

      exit

    5. Import the vcl.sql file into the database:

      mysql vcl < apache-VCL-2.3/mysql/vcl.sql

      The vcl.sql file is included in the mysql directory within the Apache VCL source code


Next step: VCL 2.3 Web Code Installation

  • No labels