### Installing and Enabling Apache HTTP Server on CentOS 7 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-CentOS7.html These commands install the Apache HTTP server (`httpd`), start the Apache service, and configure it to start automatically on system boot. This sets up the web server environment required for OpenCATS. ```Bash sudo yum install httpd sudo systemctl start httpd.service sudo systemctl enable httpd.service ``` -------------------------------- ### Installing Putty on Ubuntu via APT Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-SharedHosting.html This command installs the Putty SSH client on an Ubuntu system using the Advanced Package Tool (APT). Putty is required to establish an SSH connection to the shared hosting server for further setup and management. This command must be executed in a terminal with superuser privileges. ```Bash sudo apt install putty ``` -------------------------------- ### Creating PHP Info File for Testing Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-linux.html This snippet guides you to create a simple PHP file named 'info.php' in the web server's document root (/var/www/html) to display detailed information about your PHP installation. This is crucial for verifying PHP is working correctly and checking installed modules. ```Bash # vi /var/www/html/info.php ``` ```PHP ``` -------------------------------- ### Creating PHP Info File (Bash/PHP) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Debian8.html This snippet details the process of creating an 'info.php' file in the web root using 'nano' and populating it with PHP code. The 'phpinfo()' function outputs extensive details about the PHP installation, crucial for verifying server setup and debugging. ```Bash sudo nano /var/www/html/info.php ``` ```PHP ``` -------------------------------- ### Installing Putty on Ubuntu Source: https://github.com/opencats/opencats_documentation/blob/master/docs/Install-SharedHosting.rst This command installs the Putty SSH client on an Ubuntu system using the Advanced Package Tool (APT). Putty is used to establish an SSH connection to a shared hosting server. ```Bash sudo apt install putty ``` -------------------------------- ### Installing MariaDB on CentOS 7 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-linux.html This snippet provides the commands to install and enable MariaDB server on CentOS 7 using `yum`. It also includes commands to start the service, enable it to run on boot, and initiate the `mysql_secure_installation` script for initial security setup. ```Bash # yum check-update # yum -y install mariadb-server mariadb # systemctl start mariadb.service # systemctl enable mariadb.service # mysql_secure_installation ``` -------------------------------- ### Install OpenCATS Dependencies with Composer (Windows Command Prompt) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-windows.html This command initiates Composer to download and install all necessary PHP dependencies for the OpenCATS application. It must be executed from the OpenCATS project's root directory, typically after navigating there using the 'cd' command. ```Shell composer install ``` -------------------------------- ### Downloading OpenCATS Install Script for Ubuntu 16.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/InstallScripts-Linux.html This command downloads the OpenCATS installation script specifically designed for Ubuntu 16.04 from the official GitHub repository using `wget`. This script automates the LAMP stack and OpenCATS setup. ```Shell wget https://raw.githubusercontent.com/opencats/OpenCATS-Installation-Scripts/master/Ubuntu16.04-OpenCATS-Install.sh ``` -------------------------------- ### Downloading OpenCATS Install Script for Ubuntu 18.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/InstallScripts-Linux.html This command downloads the OpenCATS installation script specifically designed for Ubuntu 18.04 from the official GitHub repository using `wget`. This script automates the LAMP stack and OpenCATS setup. ```Shell wget https://raw.githubusercontent.com/opencats/OpenCATS-Installation-Scripts/master/Ubuntu18.04-OpenCATS-Install.sh ``` -------------------------------- ### Initializing Sphinx Documentation Options - JavaScript Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install.html This JavaScript snippet initializes global documentation options for a Sphinx-generated documentation site. It sets parameters like the root URL, version, collapse index, file suffix, and source availability. It also enables the sticky navigation feature provided by the Sphinx Read the Docs theme using jQuery. ```JavaScript var DOCUMENTATION_OPTIONS = { URL_ROOT:'./', VERSION:'0.9.3', COLLAPSE_INDEX:false, FILE_SUFFIX:'.html', HAS_SOURCE: true }; jQuery(function () { SphinxRtdTheme.StickyNav.enable(); }); ``` -------------------------------- ### Installing PHP5 and Verifying with phpinfo() on Ubuntu 14.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Ubuntu-14.04.html This snippet details the process of installing PHP5, restarting Apache, and creating a `phpinfo()` file to verify the PHP installation. It includes commands to install PHP5, restart the Apache service, create `info.php` in the web root using `nano`, and then restart Apache again to apply changes, allowing verification via `localhost/info.php`. ```Bash sudo apt-get install php5 sudo service apache2 restart sudo nano /var/www/html/info.php sudo service apache2 restart ``` ```PHP ``` -------------------------------- ### Installing MariaDB Server and Client on Ubuntu 16.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/Install-Ubuntu-16.04.rst This sequence of commands updates the package list, installs the MariaDB server and client, and then initiates the security script to configure the database. The `mysql_secure_installation` script guides the user through setting the root password, removing anonymous users, disallowing remote root login, and removing the test database. ```Bash sudo apt-get update ``` ```Bash sudo apt-get install mariadb-server mariadb-client ``` ```Bash sudo mysql_secure_installation ``` -------------------------------- ### Installing and Securing MariaDB on CentOS 7 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-CentOS7.html These commands install the MariaDB server and client, start and enable the MariaDB service, and then initiate the `mysql_secure_installation` script. This script guides the user through securing the MariaDB installation, including setting the root password, removing anonymous users, disallowing remote root login, and removing the test database. Users should remember the password set during this process. ```Bash sudo yum check-update sudo yum -y install mariadb-server mariadb sudo systemctl start mariadb.service sudo systemctl enable mariadb.service sudo mysql_secure_installation ``` -------------------------------- ### Downloading OpenCATS Install Script for Ubuntu 16.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/InstallScripts-Linux.rst This command uses `wget` to download the specific OpenCATS installation script tailored for Ubuntu 16.04 from the official GitHub repository. This script automates the LAMP stack and OpenCATS setup. ```Bash wget https://raw.githubusercontent.com/opencats/OpenCATS-Installation-Scripts/master/Ubuntu16.04-OpenCATS-Install.sh ``` -------------------------------- ### Navigate to OpenCATS Directory (Windows Command Prompt) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-windows.html This command changes the current working directory in the Windows Command Prompt to the OpenCATS installation folder. This step is crucial before running Composer commands to ensure dependencies are installed in the correct project context. ```Shell cd C:\xampp\htdocs\opencats ``` -------------------------------- ### Starting and Enabling Apache Service on CentOS 7 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-CentOS7.html These commands start the Apache HTTP Server service immediately and configure it to start automatically upon system boot, ensuring the web server is always running. ```Bash $ sudo systemctl start httpd.service $ sudo systemctl enable httpd.service ``` -------------------------------- ### Installing Resume Indexing Tools (Debian/Ubuntu) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-linux.html Installs essential packages (antiword, poppler-utils, html2text, unrtf) required for OpenCATS to parse and index various resume formats on Debian/Ubuntu systems using 'apt-get'. ```Shell $ sudo apt-get install antiword poppler-utils html2text unrtf ``` -------------------------------- ### Installing OpenCATS Resume Indexing Tools (Bash) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-CentOS7.html This snippet provides bash commands to install essential tools for OpenCATS's resume indexing feature. It downloads and installs `antiword` and `html2text` via RPM packages, and then uses `yum` to install `poppler`, `poppler-utils`, and `unrtf`. ```bash sudo wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/Kenzy:/modified:/C7/CentOS_7/x86_64/antiword-0.37-20.1.x86_64.rpm sudo rpm -ivh antiword-0.37-20.1.x86_64.rpm sudo wget http://dl.fedoraproject.org/pub/epel/7/x86_64/h/html2text-1.3.2a-14.el7.x86_64.rpm sudo rpm -ivh html2text-1.3.2a-14.el7.x86_64.rpm sudo yum install poppler poppler-utils unrtf ``` -------------------------------- ### Starting and Enabling MariaDB Service on CentOS 7 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-CentOS7.html These commands start the MariaDB service immediately and configure it to start automatically upon system boot, ensuring the database is always running. ```Bash $ sudo systemctl start mariadb.service $ sudo systemctl enable mariadb.service ``` -------------------------------- ### Downloading OpenCATS Install Script for Ubuntu 18.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/InstallScripts-Linux.rst This command uses `wget` to download the specific OpenCATS installation script tailored for Ubuntu 18.04 from the official GitHub repository. This script automates the LAMP stack and OpenCATS setup. ```Bash wget https://raw.githubusercontent.com/opencats/OpenCATS-Installation-Scripts/master/Ubuntu18.04-OpenCATS-Install.sh ``` -------------------------------- ### Downloading and Extracting OpenCATS Application Files Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-CentOS7.html These Bash commands handle the download and initial setup of OpenCATS application files. They navigate to the web root, download the OpenCATS zip archive, extract its contents, rename the extracted directory to 'opencats', and clean up temporary files and the `INSTALL_BLOCK` file if present. ```Bash cd /var/www/html ``` ```Bash sudo wget https://github.com/opencats/OpenCATS/releases/download/0.9.4/opencats-0.9.4-full.zip ``` ```Bash sudo unzip opencats-0.9.4-full.zip ``` ```Bash sudo mv /var/www/html/home/travis/build/opencats/OpenCATS opencats ``` ```Bash sudo rm -Rf /var/www/html/home /var/www/html/opencats/INSTALL_BLOCK ``` -------------------------------- ### Installing PHP and Restarting Apache (Initial) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-14.04.html Installs the PHP 5 package on a Debian/Ubuntu-based system and then restarts the Apache web server to apply the changes. This is a foundational step for setting up the web server environment. ```bash $ sudo apt-get install php5 $ sudo service apache2 restart ``` -------------------------------- ### Installing wget on Ubuntu/Debian Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/InstallScripts-Linux.html This command installs the `wget` utility on Ubuntu and Debian-based Linux distributions using the `apt-get` package manager. `wget` is a prerequisite for downloading the OpenCATS installation scripts. ```Shell sudo apt-get install wget ``` -------------------------------- ### Installing MariaDB Server and Client on Ubuntu 16.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-16.04.html This snippet provides the commands to update package lists, install the MariaDB server and client, and then secure the MariaDB installation. During the security setup, the user will be prompted to set a root password, remove anonymous users, disallow remote root login, and remove the test database. ```Bash sudo apt-get update ``` ```Bash sudo apt-get install mariadb-server mariadb-client ``` ```Bash sudo mysql_secure_installation ``` -------------------------------- ### Creating PHP Info File on Ubuntu 16.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/Install-Ubuntu-16.04.rst This command opens the `info.php` file in the `/var/www/html` directory using the Nano editor. This file is used to verify the PHP installation and loaded modules by displaying detailed PHP configuration information in a web browser. ```Bash sudo nano /var/www/html/info.php ``` -------------------------------- ### Installing MariaDB Server and Client on Ubuntu 14.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-14.04.html This snippet updates the package lists and then installs the MariaDB server and client packages. It's a prerequisite for setting up the OpenCATS database. The `apt-get update` command refreshes the local package index, and `apt-get install` fetches and installs the specified packages. ```Bash sudo apt-get update sudo apt-get install mariadb-server mariadb-client ``` -------------------------------- ### Installing MariaDB on Debian 8/Ubuntu 16.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-linux.html This snippet outlines the steps to install MariaDB server and client on Debian 8 or Ubuntu 16.04 using `apt-get`. It includes updating package lists, installing the necessary packages, and then running the `mysql_secure_installation` script to secure the database. ```Bash $ sudo apt-get update $ sudo apt-get install mariadb-server mariadb-client $ mysql_secure_installation ``` -------------------------------- ### Initialize Sphinx Read the Docs Theme Navigation (JavaScript) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-SharedHosting.html This JavaScript snippet, typically found in Sphinx-generated documentation, initializes the navigation functionality provided by the Sphinx Read the Docs theme. It ensures that interactive elements like the sidebar navigation are properly enabled upon page load, enhancing user experience for browsing the documentation. ```JavaScript jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); ``` -------------------------------- ### Creating and Testing PHP Info Page on CentOS 7 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-CentOS7.html This process involves using the `nano` editor to create an `info.php` file in the Apache document root (`/var/www/html`). The file contains a simple PHP function (`phpinfo()`) to display details about the PHP installation. After saving the file, the Apache service is restarted to ensure the new PHP file is served correctly, allowing verification of the PHP setup by browsing to `localhost/info.php`. ```Bash sudo nano /var/www/html/info.php ``` ```PHP ``` ```Bash sudo systemctl restart httpd.service ``` -------------------------------- ### Installing Apache2 Web Server on Debian 8 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Debian8.html This command installs the Apache2 web server, which is necessary to host the OpenCATS application. After installation, the default Apache placeholder page should be accessible via a web browser at `localhost`. ```Bash sudo apt-get install apache2 ``` -------------------------------- ### Installing Resume Indexing Tools (Bash) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Debian8.html This command installs various utilities (`antiword`, `poppler-utils`, `html2text`, `unrtf`) required by OpenCATS for parsing and indexing different resume formats. `sudo` is used for elevated privileges to install packages. ```Bash $ sudo apt-get install antiword poppler-utils html2text unrtf ``` -------------------------------- ### Installing Resume Indexing Tools Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-14.04.html Installs various command-line utilities (`antiword`, `poppler-utils`, `html2text`, `unrtf`) that OpenCATS uses for parsing and indexing different document formats, particularly for resumes. ```bash $ sudo apt-get install antiword poppler-utils html2text unrtf ``` -------------------------------- ### Creating PHP Info File (Debian 8) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Debian8.html This command opens the `info.php` file in the `/var/www/html` directory using the `nano` text editor. This file will contain PHP code to display detailed information about the PHP installation, useful for verification. ```Bash $ sudo nano /var/www/html/info.php ``` -------------------------------- ### Running Composer to Install OpenCATS Dependencies Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-linux.html These commands navigate into the OpenCATS project directory and then execute Composer to download and install all required PHP dependencies for the application. ```Bash # cd cats-x.x.x/ ``` ```Bash # composer install ``` -------------------------------- ### Installing Apache on Debian 8/Ubuntu 16.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-linux.html This snippet provides the command to install the Apache HTTP server on Debian 8 or Ubuntu 16.04 using `apt-get`. This is a straightforward installation command for the web server. ```Bash $ sudo apt-get install apache2 ``` -------------------------------- ### Installing Apache2 Web Server on Ubuntu 16.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/Install-Ubuntu-16.04.rst This command installs the Apache2 web server, which is required to host the OpenCATS application. After installation, Apache2 will be running and accessible via `localhost` in a web browser. ```Bash sudo apt-get install apache2 ``` -------------------------------- ### Enabling Sphinx Read the Docs Theme Navigation - JavaScript Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-windows.html This JavaScript snippet uses jQuery's document ready function to ensure that the Sphinx Read the Docs theme's navigation is enabled as soon as the DOM is fully loaded. It invokes the `SphinxRtdTheme.Navigation.enable(true)` method to activate the theme's interactive navigation features. ```JavaScript jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); ``` -------------------------------- ### Installing Apache and Configuring Firewall on CentOS 7 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-linux.html This snippet details the installation of the Apache HTTP server on CentOS 7 using `yum`. It includes commands to start and enable the Apache service, and then configure `firewall-cmd` to allow HTTP (port 80) and HTTPS (port 443) traffic, followed by reloading the firewall. ```Bash # yum install httpd # systemctl start httpd.service # systemctl enable httpd.service # firewall-cmd --permanent --zone=public --add-service=http # firewall-cmd --permanent --zone=public --add-service=https # firewall-cmd --reload ``` -------------------------------- ### Installing and Securing MariaDB/MySQL on Ubuntu 14.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Ubuntu-14.04.html This snippet provides the commands to install MariaDB (or MySQL) server and client packages on Ubuntu 14.04, followed by securing the database installation. It covers updating package lists, installing the necessary packages, and running `mysql_secure_installation` to configure the root password and enhance security. ```Bash sudo apt-get update sudo apt-get install mariadb-server mariadb-client mysql_secure_installation ``` -------------------------------- ### Installing PHP Modules and Restarting Apache Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Ubuntu-14.04.html This snippet installs essential PHP modules required for OpenCATS functionality, including MySQL, GD, SOAP, and LDAP. After installation, it restarts the Apache web server to apply the changes and load the newly installed modules. ```Bash sudo apt-get install php5-mysql php5-gd php-soap php5-ldap sudo service apache2 restart ``` -------------------------------- ### Creating and Populating PHP Info File - Bash & PHP Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-16.04.html Opens the `info.php` file in the default web root (`/var/www/html`) using `nano` and inserts PHP code to display detailed PHP configuration information. This file is used to verify the PHP installation and installed modules. ```Bash sudo nano /var/www/html/info.php ``` ```PHP ``` -------------------------------- ### Installing Apache2 Web Server on Ubuntu 16.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-16.04.html This snippet provides the command to install the Apache2 web server, which is a prerequisite for running OpenCATS. After installation, the Apache2 placeholder page should be accessible by directing a web browser to 'localhost' or the server's IP address. ```Bash sudo apt-get install apache2 ``` -------------------------------- ### Securing MariaDB Installation on Ubuntu 14.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-14.04.html This command initiates the `mysql_secure_installation` script, which guides the user through essential security steps for a new MariaDB installation. It prompts for setting the root password, removing anonymous users, disallowing remote root login, and removing the test database. The user must interactively provide responses to the prompts. ```Bash mysql_secure_installation ``` -------------------------------- ### Setting Up MySQL/MariaDB Database for OpenCATS Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-linux.html This snippet provides commands to log into the MySQL/MariaDB server as root, create a dedicated user, create the 'cats' database, and grant all necessary privileges to the new user on the 'cats' database. Remember to replace placeholders with your actual username and password. ```Bash $ mysql -u root -p ``` ```SQL CREATE USER 'yourusername'@'localhost' IDENTIFIED BY 'yourmariadbpassword'; CREATE DATABASE cats; GRANT ALL PRIVILEGES ON cats.* TO 'cats'@'localhost' IDENTIFIED BY 'yourmariadbpassword'; exit; ``` -------------------------------- ### Securing MariaDB/MySQL Installation on Debian 8 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Debian8.html This command executes the `mysql_secure_installation` script, which guides the user through critical security steps for the database, including setting the root password, removing anonymous users, and disabling remote root login. ```Bash sudo mysql_secure_installation ``` -------------------------------- ### Installing Resume Indexing Tools on CentOS Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-CentOS7.html These Bash commands install necessary tools for OpenCATS's resume indexing functionality on CentOS. They download and install `antiword` and `html2text` via RPM packages, and then use `yum` to install `poppler`, `poppler-utils`, and `unrtf` to support various document formats. ```Bash sudo wget ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/Kenzy:/modified:/C7/CentOS_7/x86_64/antiword-0.37-20.1.x86_64.rpm ``` ```Bash sudo rpm -ivh antiword-0.37-20.1.x86_64.rpm ``` ```Bash sudo wget http://dl.fedoraproject.org/pub/epel/7/x86_64/h/html2text-1.3.2a-14.el7.x86_64.rpm ``` ```Bash sudo rpm -ivh html2text-1.3.2a-14.el7.x86_64.rpm ``` ```Bash sudo yum install poppler poppler-utils unrtf ``` -------------------------------- ### Restarting Apache Service for PHP Info - Bash Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-16.04.html Restarts the Apache web server after creating the `info.php` file to ensure the server recognizes the new file and its content. This allows verification of the PHP setup via a web browser. ```Bash sudo service apache2 restart ``` -------------------------------- ### Installing Resume Indexing Tools Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Ubuntu-14.04.html This command installs various utilities required by OpenCATS for resume parsing and indexing. These tools include 'antiword' for .doc files, 'poppler-utils' for PDFs, 'html2text' for HTML, and 'unrtf' for RTF documents. ```Bash sudo apt-get install antiword poppler-utils html2text unrtf ``` -------------------------------- ### Installing OpenCATS Dependencies with Composer - Shell Source: https://github.com/opencats/opencats_documentation/blob/master/docs/install-windows.rst This command initiates the Composer dependency manager to install all required PHP packages for the OpenCATS application. It must be executed from within the OpenCATS project root directory after Composer has been successfully installed on the system. ```Shell composer install ``` -------------------------------- ### Creating OpenCATS Database and User - SQL Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-16.04.html Creates a new MySQL user `opencats` with a specified password, creates the `opencats` database, and grants all privileges on this database to the `opencats` user. This sets up the backend database for OpenCATS. ```SQL CREATE USER 'opencats'@'localhost' IDENTIFIED BY 'databasepassword'; CREATE DATABASE opencats; GRANT ALL PRIVILEGES ON opencats.* TO 'opencats'@'localhost' IDENTIFIED BY 'databasepassword'; exit; ``` -------------------------------- ### Executing OpenCATS Installation Script Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/InstallScripts-Linux.html This command executes the OpenCATS installation script with superuser privileges. The script will proceed to install the LAMP stack (Apache, MySQL/MariaDB, PHP) and OpenCATS software on the Linux system. ```Shell sudo ./script-name.sh ``` -------------------------------- ### Installing Apache2 Web Server on Ubuntu 14.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Ubuntu-14.04.html This snippet provides the command to install the Apache2 web server on Ubuntu 14.04. After successful installation, the default Apache placeholder page should be accessible via a web browser at 'localhost'. ```Bash sudo apt-get install apache2 ``` -------------------------------- ### Installing Resume Indexing Tools - Bash Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-16.04.html Installs various command-line utilities (`antiword`, `poppler-utils`, `html2text`, `unrtf`) that OpenCATS uses for parsing and indexing different document formats, particularly for resumes. ```Bash sudo apt-get install antiword poppler-utils html2text unrtf ``` -------------------------------- ### Installing MariaDB/MySQL Server and Client on Debian 8 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Debian8.html This command updates the package list and then installs the `mariadb-server` and `mariadb-client` packages on Debian 8. These are essential for setting up the database backend required by OpenCATS. ```Bash sudo apt-get update sudo apt-get install mariadb-server mariadb-client ``` -------------------------------- ### Creating PHP Info File for Installation Verification Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-CentOS7.html This PHP snippet creates a simple `info.php` file that displays detailed information about the PHP installation, including version and loaded modules. It is used to verify the server environment and troubleshoot PHP errors during OpenCATS installation. ```PHP ``` -------------------------------- ### Installing wget on CentOS Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/InstallScripts-Linux.html This command installs the `wget` utility on CentOS-based Linux distributions using the `yum` package manager. `wget` is a prerequisite for downloading the OpenCATS installation scripts. ```Shell sudo yum install wget ``` -------------------------------- ### Executing OpenCATS Installation Script Source: https://github.com/opencats/opencats_documentation/blob/master/docs/InstallScripts-Linux.rst This command executes the OpenCATS installation script with superuser privileges. The script will proceed to install the full LAMP stack (Apache, MySQL/MariaDB, PHP) and configure it for OpenCATS. Replace `script-name.sh` with the actual filename. ```Bash sudo ./script-name.sh ``` -------------------------------- ### Downloading and Extracting OpenCATS Application Files Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-14.04.html Navigates to the web root, downloads the OpenCATS application zip file, extracts its contents, renames the extracted directory to `opencats`, and cleans up temporary files and potential installation blocks. ```bash $ cd /var/www/html $ sudo wget https://github.com/opencats/OpenCATS/releases/download/0.9.4/opencats-0.9.4-full.zip $ sudo unzip opencats-0.9.4-full.zip $ sudo mv /var/www/html/home/travis/build/opencats/OpenCATS opencats $ sudo rm -Rf /var/www/html/home /var/www/html/opencats/INSTALL_BLOCK ``` -------------------------------- ### Securing MariaDB Installation on CentOS 7 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-CentOS7.html This command initiates the `mysql_secure_installation` script, which guides the user through steps to secure the MariaDB server, including setting the root password, removing anonymous users, disallowing remote root login, and removing the test database. ```Bash $ sudo mysql_secure_installation ``` -------------------------------- ### Installing Wget on Ubuntu/Debian Source: https://github.com/opencats/opencats_documentation/blob/master/docs/InstallScripts-Linux.rst This command installs the `wget` utility on Ubuntu and Debian-based Linux systems. `wget` is required to download the OpenCATS installation script from the internet. This step should be performed if a 'wget error' is encountered. ```Bash sudo apt-get install wget ``` -------------------------------- ### Installing Resume Indexing Tools (Bash) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Debian8.html This command installs essential utility packages ('antiword', 'poppler-utils', 'html2text', 'unrtf') required by OpenCATS for processing and indexing various document formats, particularly for resume parsing capabilities. ```Bash sudo apt-get install antiword poppler-utils html2text unrtf ``` -------------------------------- ### Creating PHP Info File and Restarting Apache Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-14.04.html Opens the nano text editor to create or edit info.php in the web root, which contains phpinfo() to display PHP configuration. After saving, Apache is restarted to ensure the new file is served correctly. ```bash $ sudo nano /var/www/html/info.php ``` ```php ``` ```bash $ sudo service apache2 restart ``` -------------------------------- ### Installing Resume Indexing Tools (Shell) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/Install-Ubuntu-16.04.rst This command installs essential command-line utilities (antiword, poppler-utils, html2text, unrtf) required by OpenCATS for processing and indexing various document formats, particularly for resume parsing. ```Shell sudo apt-get install antiword poppler-utils html2text unrtf ``` -------------------------------- ### PHP Info Script Content Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Debian8.html This PHP code snippet, when placed in `info.php` and accessed via a web browser, displays a comprehensive overview of the PHP configuration, installed modules, and environment variables. It's used to verify the PHP installation and its extensions. ```PHP ``` -------------------------------- ### Installing Wget on CentOS Source: https://github.com/opencats/opencats_documentation/blob/master/docs/InstallScripts-Linux.rst This command installs the `wget` utility on CentOS-based Linux systems. `wget` is required to download the OpenCATS installation script from the internet. This step should be performed if a 'wget error' is encountered. ```Bash sudo yum install wget ``` -------------------------------- ### Installing OpenCATS PHP Dependencies Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-14.04.html Installs essential PHP modules required by OpenCATS, including MySQL, GD (for image manipulation), SOAP, and LDAP. Apache is restarted afterwards to load these newly installed modules. ```bash $ sudo apt-get install php5-mysql php5-gd php-soap php5-ldap $ sudo service apache2 restart ``` -------------------------------- ### Installing MySQL/MariaDB PHP Support on Debian 8 / Ubuntu 16.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-linux.html These commands install necessary PHP modules for MySQL/MariaDB, GD (for image manipulation), and SOAP support on Debian 8 or Ubuntu 16.04 using apt-get, followed by an Apache restart. ```Bash $sudo apt-cache search php- ``` ```Bash $ sudo apt-get install php-mysql php-gd php-soap ``` ```Bash $ sudo service apache2 restart ``` -------------------------------- ### Example Action Method in OpenCATS Module (PHP) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/shortdevguide.rst This snippet demonstrates a simple action method within an OpenCATS module. Action methods process specific requests, often utilizing library components, and prepare data for template display. ```PHP ``` -------------------------------- ### Downloading and Extracting OpenCATS Files Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Ubuntu-14.04.html This sequence of commands navigates to the web root directory, downloads the OpenCATS zip archive from GitHub, unzips it, renames the extracted directory to 'opencats', and removes temporary build directories and the 'INSTALL_BLOCK' file. ```Bash cd /var/www/html sudo wget https://github.com/opencats/OpenCATS/releases/download/0.9.4/opencats-0.9.4-full.zip sudo unzip opencats-0.9.4-full.zip sudo mv /var/www/html/home/travis/build/opencats/OpenCATS opencats sudo rm -Rf /var/www/html/home /var/www/html/opencats/INSTALL_BLOCK ``` -------------------------------- ### Configuring OpenCATS MySQL/MariaDB Database Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-14.04.html Connects to the MySQL/MariaDB server, then creates a dedicated user and database for OpenCATS. It grants all necessary privileges to the new user on the `opencats` database, and finally exits the MySQL prompt. ```bash $ mysql -u root -p ``` ```sql CREATE USER 'opencats'@'localhost' IDENTIFIED BY 'databasepassword'; CREATE DATABASE opencats; GRANT ALL PRIVILEGES ON opencats.* TO 'opencats'@'localhost' IDENTIFIED BY 'databasepassword'; exit; ``` -------------------------------- ### Installing Apache2 Web Server on Ubuntu 14.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-14.04.html This command installs the Apache2 web server package on Ubuntu 14.04. Apache2 is required to serve the OpenCATS web application. After installation, the server should be accessible via a web browser at `localhost` or the server's IP address. ```Bash sudo apt-get install apache2 ``` -------------------------------- ### Installing Apache2 Web Server (Debian 8) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Debian8.html This command installs the Apache2 HTTP server, which will serve as the web server for OpenCATS. Apache2 is a widely used, open-source web server known for its flexibility and robust feature set. ```Bash $ sudo apt-get install apache2 ``` -------------------------------- ### Cleaning Up OpenCATS Installation Files (Bash) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Debian8.html This command removes residual installation files and the `INSTALL_BLOCK` file if it exists. The `INSTALL_BLOCK` file prevents re-installation and must be removed for a fresh install or re-attempt. ```Bash $ sudo rm -Rf /var/www/html/home /var/www/html/opencats/INSTALL_BLOCK ``` -------------------------------- ### Creating OpenCATS Database (SQL) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Debian8.html This SQL command creates a new database named 'opencats'. This database will store all the OpenCATS application data. ```SQL CREATE DATABASE opencats; ``` -------------------------------- ### Installing PHP5 on Debian 8 / Ubuntu 16.06 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-linux.html These commands install PHP5 on Debian 8 or Ubuntu 16.06 using the apt-get package manager and then restart the Apache2 web server. ```Bash $ sudo apt-get install php5 ``` ```Bash $ sudo service apache2 restart ``` -------------------------------- ### Installing MySQL/MariaDB PHP Support on CentOS 7 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-linux.html These commands install essential PHP modules for MySQL/MariaDB, GD (for image manipulation), and SOAP support on CentOS 7 using yum, followed by an Apache restart to load the new modules. ```Bash # yum search php ``` ```Bash # yum -y install php-mysql php-gd php-soap ``` ```Bash # systemctl restart httpd.service ``` -------------------------------- ### Making OpenCATS Install Script Executable Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/InstallScripts-Linux.html This command changes the permissions of the downloaded installation script, making it executable. The `+x` flag grants execute permission, which is necessary before running the script. ```Shell sudo chmod +x script-name.sh ``` -------------------------------- ### Installing PHP5 on CentOS 7 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/install-linux.html These commands install PHP on CentOS 7 using the yum package manager and then restart the Apache web server to apply the changes. ```Bash # yum -y install php ``` ```Bash # systemctl restart httpd.service ``` -------------------------------- ### Listing PHP Versions in MAMP Directory - Shell Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-OSX.html This command lists the available PHP versions within the MAMP PHP binaries directory. It helps identify which PHP versions are installed and can be configured in MAMP preferences. ```Shell ls ``` -------------------------------- ### Listing Directory Contents Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/InstallScripts-Linux.html This command lists the contents of the current directory, allowing the user to verify that the downloaded installation script is present and to identify its exact filename. ```Shell ls ``` -------------------------------- ### Installing MariaDB Server on CentOS 7 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-CentOS7.html This command installs the MariaDB server and client packages on CentOS 7. MariaDB is used as the database backend for OpenCATS. ```Bash $ sudo yum -y install mariadb-server mariadb ``` -------------------------------- ### Logging into MySQL/MariaDB as Root (Bash) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Debian8.html This command initiates a MySQL/MariaDB client session, prompting for the root user's password. It is the first step to manage the database server. ```Bash $ mysql -u root -p ``` -------------------------------- ### Creating OpenCATS Database (SQL) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Debian8.html This SQL command creates a new, empty database named 'opencats'. This database will serve as the primary storage for all OpenCATS application data, including user information, job postings, and candidate details. ```SQL CREATE DATABASE opencats; ``` -------------------------------- ### Configuring OpenCATS Database and User in MariaDB Source: https://github.com/opencats/opencats_documentation/blob/master/docs/Install-Ubuntu-16.04.rst These SQL commands create a new user named 'opencats' with a specified password, create a database also named 'opencats', and then grant all privileges on the 'opencats' database to the newly created user. Finally, `exit` closes the MariaDB prompt. ```SQL CREATE USER 'opencats'@'localhost' IDENTIFIED BY 'databasepassword'; ``` ```SQL CREATE DATABASE opencats; ``` ```SQL GRANT ALL PRIVILEGES ON 'opencats'.* TO 'opencats'@'localhost' IDENTIFIED BY 'databasepassword'; ``` ```SQL exit; ``` -------------------------------- ### Removing Temporary and Installation Block Files (Bash) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Debian8.html This command performs cleanup by recursively removing a temporary build directory and the 'INSTALL_BLOCK' file. The 'INSTALL_BLOCK' file, if present, prevents the OpenCATS installer from running, making its removal essential for a successful installation. ```Bash sudo rm -Rf /var/www/html/home /var/www/html/opencats/INSTALL_BLOCK ``` -------------------------------- ### Navigating to OpenCATS Directory in Command Prompt - Shell Source: https://github.com/opencats/opencats_documentation/blob/master/docs/install-windows.rst This command changes the current working directory in the Windows command prompt to the OpenCATS installation folder. This step is crucial before executing Composer commands to ensure they operate within the correct project context. ```Shell cd C:\xampp\htdocs\opencats ``` -------------------------------- ### Downloading OpenCATS Release Archive (Bash) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Debian8.html This command downloads the OpenCATS version 0.9.4 full release zip file from GitHub using `wget`. `sudo` is used to ensure necessary permissions for writing to `/var/www/html`. ```Bash $ sudo wget https://github.com/opencats/OpenCATS/releases/download/0.9.4/opencats-0.9.4-full.zip ``` -------------------------------- ### Listing Directory Contents Source: https://github.com/opencats/opencats_documentation/blob/master/docs/InstallScripts-Linux.rst This command lists the contents of the current directory, allowing the user to verify that the downloaded installation script is present and to identify its exact filename for subsequent steps. ```Bash ls ``` -------------------------------- ### Installing Apache HTTP Server on CentOS 7 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-CentOS7.html This command installs the Apache HTTP Server package (`httpd`) on CentOS 7, which will serve as the web server for OpenCATS. ```Bash $ sudo yum install httpd ``` -------------------------------- ### Installing MariaDB Server and Client (Debian 8) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Debian8.html This command installs the MariaDB database server and client packages on Debian 8. MariaDB is a community-developed fork of MySQL, providing a robust relational database system for OpenCATS. ```Bash $ sudo apt-get install mariadb-server mariadb-client ``` -------------------------------- ### Installing PHP 5.6 and Extensions for OpenCATS on Ubuntu 16.04 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/Install-Ubuntu-16.04.rst These commands add a PPA for PHP 5.6, update package lists, and install PHP 5.6 along with necessary extensions (SOAP, LDAP, MySQL, GD, XML, cURL, MBString, Zip) required by OpenCATS. The Apache service is then restarted to load the new PHP modules. ```Bash sudo add-apt-repository ppa:ondrej/php ``` ```Bash sudo apt-get update ``` ```Bash sudo apt-get install php5.6 php5.6-soap php5.6-ldap ``` ```Bash sudo apt-get install php5.6-mysql php5.6-gd php5.6-xml ``` ```Bash sudo apt-get install php5.6-curl php5.6-mbstring php5.6-zip ``` ```Bash sudo service apache2 restart ``` -------------------------------- ### Downloading and Extracting OpenCATS (Shell) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/Install-Ubuntu-16.04.rst These commands download the OpenCATS 0.9.4 full release, unzip it, move the extracted directory to a standard web server location, and remove any previous installation remnants or blocking files. ```Shell sudo wget https://github.com/opencats/OpenCATS/releases/download/0.9.4/opencats-0.9.4-full.zip sudo unzip opencats-0.9.4-full.zip sudo mv /var/www/html/home/travis/build/opencats/OpenCATS opencats sudo rm -Rf /var/www/html/home /var/www/html/opencats/INSTALL_BLOCK ``` -------------------------------- ### Installing PHP 5.6 and Extensions for OpenCATS (Debian 8) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Debian8.html This command installs PHP 5.6 along with essential extensions required by OpenCATS, including `php-soap`, `php5-ldap`, `php5-mysql`, `php5-gd`, and `php5-curl`. These extensions provide functionality for database connectivity, image manipulation, and web service communication. ```Bash $ sudo apt-get install php5 php-soap php5-ldap php5-mysql php5-gd php5-curl ``` -------------------------------- ### Cleaning Up Resume Indexing Installation Files Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-CentOS7.html This Bash command removes the downloaded RPM packages (`antiword` and `html2text`) after they have been successfully installed. This helps to clean up the system and free up disk space. ```Bash sudo rm antiword-0.37-20.1.x86_64.rpm html2text-1.3.2a-14.el7.x86_64.rpm ``` -------------------------------- ### Enabling Sphinx Read the Docs Navigation (JavaScript) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Debian8.html This JavaScript snippet, utilizing the jQuery library, initializes and enables the navigation functionality provided by the Sphinx Read the Docs theme. It ensures that the sidebar navigation is interactive and properly displayed after the page has loaded. ```JavaScript jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); ``` -------------------------------- ### Creating OpenCATS Database User (SQL) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Debian8.html This SQL command creates a new user named 'opencats' that can connect from 'localhost' and sets their password to 'databasepassword'. This user will be used by OpenCATS to interact with its database. ```SQL CREATE USER ['opencats'@'localhost'] IDENTIFIED BY 'databasepassword'; ``` -------------------------------- ### Installing PHP 5.6 and Extensions on CentOS 7 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-CentOS7.html These commands add the EPEL and Webtatic repositories, which provide newer PHP versions than the default CentOS 7 repositories. It then installs PHP 5.6 along with essential extensions like SOAP, LDAP, GD, and MySQL, and finally restarts the Apache service to load the new PHP configuration. This ensures OpenCATS has the required PHP version and modules. ```Bash sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm sudo rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm sudo yum install php56w php56w-soap php56w-ldap php56w-gd php56w-mysql unzip sudo systemctl restart httpd.service ``` -------------------------------- ### Securing MariaDB/MySQL Installation (Debian 8) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Debian8.html This command runs the `mysql_secure_installation` script, which helps improve the security of the MariaDB/MySQL installation. It prompts the user to set a root password, remove anonymous users, disallow remote root login, and remove the test database. ```Bash $ sudo mysql_secure_installation ``` -------------------------------- ### Restarting Apache2 Service after PHP Installation on Debian 8 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Debian8.html This command restarts the Apache2 web server service. This step is crucial after installing PHP and its extensions to ensure Apache loads the new modules and applies the updated configuration, making PHP available for web applications. ```Bash sudo service apache2 restart ``` -------------------------------- ### Enabling Sphinx Read the Docs Theme Navigation - JavaScript Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Debian8.html This JavaScript snippet initializes the navigation functionality for the Sphinx Read the Docs theme. It ensures that the sidebar navigation is interactive and enabled on page load, typically found in documentation generated by Sphinx. ```JavaScript jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); ``` -------------------------------- ### Installing PHP 5.6 and Required Extensions on Debian 8 Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Debian8.html This command installs PHP 5.6 along with crucial extensions like `php-soap`, `php5-ldap`, `php5-mysql`, `php5-gd`, and `php5-curl`. These extensions provide necessary functionalities for OpenCATS, such as database connectivity and image processing. ```Bash sudo apt-get install php5 php-soap php5-ldap php5-mysql php5-gd php5-curl ``` -------------------------------- ### Making OpenCATS Install Script Executable Source: https://github.com/opencats/opencats_documentation/blob/master/docs/InstallScripts-Linux.rst This command changes the permissions of the downloaded installation script, making it executable. The `+x` flag grants execute permission, which is necessary before running the script. Replace `script-name.sh` with the actual filename. ```Bash sudo chmod +x script-name.sh ``` -------------------------------- ### Installing PHP 5.6 and Core Extensions - Bash Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-16.04.html Installs PHP 5.6 along with essential extensions required for OpenCATS, including SOAP, LDAP, MySQL, GD, XML, cURL, MBString, and ZIP. These modules enable various functionalities within the application. ```Bash sudo apt-get install php5.6 php5.6-soap php5.6-ldap sudo apt-get install php5.6-mysql php5.6-gd php5.6-xml sudo apt-get install php5.6-curl php5.6-mbstring php5.6-zip ``` -------------------------------- ### Configuring OpenCATS MySQL/MariaDB Database and User Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-Ubuntu-14.04.html These SQL commands create a dedicated user 'opencats' with a specified password for 'localhost', create the 'opencats' database, and grant all privileges on this database to the 'opencats' user. Finally, it exits the MySQL prompt. ```SQL CREATE USER 'opencats'@'localhost' IDENTIFIED BY 'databasepassword'; CREATE DATABASE opencats; GRANT ALL PRIVILEGES ON 'opencats'.* TO 'opencats'@'localhost' IDENTIFIED BY 'databasepassword'; exit; ``` -------------------------------- ### Downloading and Extracting OpenCATS Files (Bash) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Old/Install-CentOS7.html This snippet provides bash commands to download the OpenCATS application files. It navigates to the web root directory, downloads the zip archive, extracts its contents, renames the extracted directory, and cleans up temporary files and installation blocks. ```bash cd /var/www/html sudo wget https://github.com/opencats/OpenCATS/releases/download/0.9.4/opencats-0.9.4-full.zip sudo unzip opencats-0.9.4-full.zip sudo mv /var/www/html/home/travis/build/opencats/OpenCATS opencats sudo rm -Rf /var/www/html/home /var/www/html/opencats/INSTALL_BLOCK ``` -------------------------------- ### Downloading and Extracting OpenCATS Files - Bash Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-16.04.html Navigates to the web root, downloads the OpenCATS zip archive from GitHub, and then extracts its contents. It also renames the extracted directory and removes temporary installation files. ```Bash cd /var/www/html sudo wget https://github.com/opencats/OpenCATS/releases/download/0.9.4/opencats-0.9.4-full.zip sudo unzip opencats-0.9.4-full.zip sudo mv /var/www/html/home/travis/build/opencats/OpenCATS opencats sudo rm -Rf /var/www/html/home /var/www/html/opencats/INSTALL_BLOCK ``` -------------------------------- ### Removing INSTALL_BLOCK File - Bash Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-Ubuntu-16.04.html Deletes the `INSTALL_BLOCK` file, which can prevent the OpenCATS installer from running if a previous installation attempt failed. This command ensures the installer can proceed. ```Bash sudo rm INSTALL_BLOCK ``` -------------------------------- ### Enabling Sphinx Read the Docs Theme Navigation (JavaScript) Source: https://github.com/opencats/opencats_documentation/blob/master/docs/_build/html/Install-OSX.html This JavaScript snippet utilizes jQuery to activate the navigation features of the Sphinx Read the Docs theme. It ensures that the theme's navigation is enabled once the DOM is ready, providing interactive navigation for the documentation. ```JavaScript jQuery(function () { SphinxRtdTheme.Navigation.enable(true); }); ```