docs icon indicating copy to clipboard operation
docs copied to clipboard

Documentation should state that an old version of PHP is required. Also, required php modules section is missing pcntl

Open arduent opened this issue 3 years ago • 3 comments

Problem 1 - laravel/horizon is locked to version v5.7.17 and an update of this package was not requested. - laravel/horizon v5.7.17 requires ext-pcntl * -> it is missing from your system. Install or enable PHP's pcntl extension. Problem 2 - fzaninotto/faker is locked to version v1.9.2 and an update of this package was not requested. - fzaninotto/faker v1.9.2 requires php ^5.3.3 || ^7.0 -> your php version (8.1.1) does not satisfy that requirement.

faker is unsupported and abandoned according to the author. probably shouldn't use it in modern software?

deleting all the faker stuff out of composer.lock allows the composer update to run (after install pcntl PHP module), however there is another warning about using abandoned software that should be fixed.

"Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead."

arduent avatar Jan 22 '22 01:01 arduent

It was a little try and error but i managed to start it with php 8.1.

mraiur avatar Nov 17 '22 04:11 mraiur

Some time passed since this issue was shared but now I am facing the issue other way around. I tried to install Pixelfed on a Debian Stable server and since the latest PHP version there is 7.4 and current Pixelfed build in dev branch depends on packages which don't like anything older than 8.1, it won't be possible to install on Debian Stable. But according to documentation 7.3 should work.

Documentation @ https://github.com/pixelfed/docs/blame/main/content/en/running-pixelfed/prerequisites.md#L84 needs to be updated as "Make sure you are running PHP >= 8.1".

murtezayesil avatar Dec 08 '22 23:12 murtezayesil

it should work with php 8.0 as well, but i'll see what dansup has to say about it

EDIT: fwiw the requirements for PHP are defined in composer.json: https://github.com/pixelfed/pixelfed/blob/dev/composer.json

trwnh avatar Dec 08 '22 23:12 trwnh