Skip to content

Installation

Sven Waschkut edited this page Oct 6, 2023 · 9 revisions

The recommendation for PAN-OS-PHP running on all Operating Systems is to use a Docker Container:

https://github.com/PaloAltoNetworks/pan-os-php/wiki/docker#container-running-with-ubuntu-LTE-classical-usage

Mac-OS

(install script is under development)

Windows WSL

(install script is planned)

LINUX

  1. Please first run the specific install_script mentioned below with root right (sudo)
  2. sh /tools/pan-os-php/set_alias_usage.sh [run with the user you are planning to use PAN-OS-PHP]
  3. check what is mentioned below under for all Linux OS:

Ubuntu 20 (php 7.4)

use this script https://github.com/PaloAltoNetworks/pan-os-php/blob/main/install_script_ubuntu20.sh

Ubuntu 22 (php 8.1)

use this script https://github.com/PaloAltoNetworks/pan-os-php/blob/main/install_script_ubuntu22.sh

Cent-OS 7 (php 7.4)

use this script https://github.com/PaloAltoNetworks/pan-os-php/blob/main/install_script_centos7.sh

The first run will interrupt, as some links are not set correctly from external. Manipulate:

sudo vi /etc/yum.repos.d/epel.repo

  • comment meta-link with #

  • uncomment base, remove #

  • rerun sudo sh install_script_centos7.sh

  • run script as mentioned above: sh /tools/pan-os-php/set_alias_usage.sh

  • followed by: chsh -s /usr/local/bin/bash

for all Linux OS:

  • close shell (logout)
  • login
  • check bash autocompletion pan-os-php v<tab><tab> -> should be autocomplete to pan-os-php version

pan-os-php Windows package

This package is outdated, and will be shortly replaced by the Windows WSL version above