PHPoffice with the newest Apache service? 2023 installed

Post your questions about Web Server usage and Apache + PHP + MySQL/SQLite web applications.
Post Reply
desk-it
New here
Posts: 2
Joined: Tue Jun 16, 2020 2:03 pm

PHPoffice with the newest Apache service? 2023 installed

Post by desk-it »

I want to use phpOffice more specific the PHPspreadsheet, i can see that composer is included in te phpmyadmin folder on the web and i have a ssh connection to the nas. Does anybody knows how to install and use this?
desk-it
New here
Posts: 2
Joined: Tue Jun 16, 2020 2:03 pm

Re: PHPspreadsheet with the newest Apache service? need help.

Post by desk-it »

/mnt/ext/opt/apache/bin/php -v to get to the PHP version so its 7.4.30
/mnt/ext/opt/apache/bin/php composer.phar install not working.
i tried this but it returned error 500.
<?php
// Excel-bestand genereren
require_once 'vendor/autoload.php';
use PhpOffice\PhpSpreadsheet\Spreadsheet;
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;

$spreadsheet = new Spreadsheet();
$sheet = $spreadsheet->getActiveSheet();
?>
Post Reply

Return to “Web Server & Applications (Apache + PHP + MySQL / SQLite)”