Greetings Everyone!

Just wondering if anyone has any sort of ideas on how I can get php8.0 installed on my server? I seem to be having issues adding the ondrej repository, my guess is our company network has some type of firewall rule that is not allowing us to add the repository.

Would anyone know if there is an alternative way of doing this? Ideally we would like to upgrade to the latest version of osticket, but may need to revert to 1.15.7 until we can find a way to upgrade our php.

I'm currently running:
v1.15.4 (6bd7884)
Web Server Software Apache/2.4.41 (Ubuntu)
MySQL Version 10.3.34
PHP Version 7.4.3

IF your running Ubuntu I would think that you would just be able to:
sudo apt-get install php8 php8-ldap

Or is it not available in your version o Ubuntu's repos?

note: I do not have a Ubuntu server instance right now. I should prob set one up again.

    ntozier I've tried installing php by using those commands, unfortunately I receive an error:

    root@ubuntu:~# apt install php8.0
    Building dependency tree
    Reading state information... Done
    E: Unable to locate package php8.0
    E: Couldn't find any package by glob 'php8.0'
    root@ubuntu:~#

    I can't even seem to add the ppa either:

    root@ubuntu:~# add-apt-repository ppa:ondrej/php
    Cannot add PPA: 'ppa:ondrej/ubuntu/php'.
    ERROR: 'ondrej' user or team does not exist.
    root@ubuntu:~#

    However, I was able to install php7.4 perfectly fine lol

      chilladelphia24

      You’re probably running an older version of Ubuntu that doesn’t have PHP 8 available. Regardless, there should be many guides online that explains how to do this. You can google “how to install PHP 8.0 on Ubuntu version xxx”.

      Cheers.

      a month later

      Should be as easy as running the following commands

      sudo apt install software-properties-common
      sudo add-apt-repository ppa:ondrej/php
      sudo apt update
      sudo apt install php8.0

      You can the run 'sudo apt install php8.0-extension' for each php extension osticket needs.

      Full tutorial: How to Install PHP 8 on Ubuntu 20.04

      Ubuntu 20.04LTS doesn't have php8 in the official repos.

      Write a Reply...