Giter VIP home page Giter VIP logo

Comments (3)

shodanx2 avatar shodanx2 commented on August 18, 2024

Ok, just gave a try increasing php version to 8.1

root@pxemanager:/var/www/pxe-manager# composer install
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]?
Installing dependencies from lock file (including require-dev)
Verifying lock file contents can be installed on current platform.
Package operations: 9 installs, 0 updates, 0 removals
  - Downloading bramus/router (dev-master 40105ae)
  - Downloading psr/log (1.1.4)
  - Downloading filp/whoops (2.14.5)
  - Downloading shanemcc/php-db (0.5)
  - Downloading symfony/polyfill-php80 (v1.25.0)
  - Downloading symfony/polyfill-mbstring (v1.25.0)
  - Downloading symfony/var-dumper (v5.4.8)
  - Downloading symfony/polyfill-ctype (v1.25.0)
  - Downloading twig/twig (v3.4.1)
  - Installing bramus/router (dev-master 40105ae): Extracting archive
  - Installing psr/log (1.1.4): Extracting archive
  - Installing filp/whoops (2.14.5): Extracting archive
  - Installing shanemcc/php-db (0.5): Extracting archive
  - Installing symfony/polyfill-php80 (v1.25.0): Extracting archive
  - Installing symfony/polyfill-mbstring (v1.25.0): Extracting archive
  - Installing symfony/var-dumper (v5.4.8): Extracting archive
  - Installing symfony/polyfill-ctype (v1.25.0): Extracting archive
  - Installing twig/twig (v3.4.1): Extracting archive
Generating autoload files
6 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
root@pxemanager:/var/www/pxe-manager# php /var/www/pxe-manager/admin/init.php
PHP Fatal error:  Uncaught PDOException: could not find driver in /var/www/pxe-manager/functions.php:15
Stack trace:
#0 /var/www/pxe-manager/functions.php(15): PDO->__construct()
#1 /var/www/pxe-manager/admin/init.php(3): require_once('...')
#2 {main}
  thrown in /var/www/pxe-manager/functions.php on line 15

Made it one step further, according to this post, I might be missnig the PDO SQL driver

I just ran apt install php8.1 to install it, I didn't try to purge php7.* / autoclean / autoremove yet

Having a look at my list of installed packages
image

Looks like the only php7 module I'm missing is sqlite3, makes sense, PDO is sql related, ok let's try that

apt install php8.1-sqlite3

root@pxemanager:/var/www/pxe-manager# php /var/www/pxe-manager/admin/init.php
dataVersion Current Version: 0
dataVersion Updating to version 1: success
dataVersion Updating to version 2: success
dataVersion Updating to version 3: success
dataVersion Updating to version 4: success
dataVersion Updating to version 5: success
dataVersion Updating to version 6: success
dataVersion Updating to version 7: success
root@pxemanager:/var/www/pxe-manager#

Oh yes !

Ok almost there

image

Blank page, but I'm getting there ...

from pxe-manager.

shodanx2 avatar shodanx2 commented on August 18, 2024

tail /var/log/apache2/* -f

Uncaught RuntimeException: Unable to create the cache directory (/var/www/pxe-manager/templates_c/5b).

Looks like it's an access control issue of some kind

image

Let's reset everything

chown -Rfv www-data: /var/www/pxe-manager/

and yep, that did it

image

Ok, time to play with this thing !

from pxe-manager.

ShaneMcC avatar ShaneMcC commented on August 18, 2024

Thanks for the detailed bug report/fixing steps.

The install instructions for 7.4 were to ensure it was a newer version of PHP than the default. Should work perfectly fine on 8.1.

I'll thought I'd updated the docs for 20.04, seems not. I'll give them a pass over for 22.04.

from pxe-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.