Package Details: php71-cgi 7.1.33-11

Git Clone URL: https://aur.archlinux.org/php71.git (read-only, click to copy)
Package Base: php71
Description: CGI and FCGI SAPI for php71
Upstream URL: http://www.php.net
Keywords: 7.1 php
Licenses: PHP
Submitter: synthead
Maintainer: wget (el_aur)
Last Packager: el_aur
Votes: 12
Popularity: 0.000000
First Submitted: 2018-03-26 18:04 (UTC)
Last Updated: 2024-03-27 15:00 (UTC)

Pinned Comments

el_aur commented on 2022-02-03 18:48 (UTC) (edited on 2022-02-18 10:38 (UTC) by el_aur)

Created binary repository on build.opensuse.org

https://build.opensuse.org/project/show/home:el:archphp

For Arch Linux, edit /etc/pacman.conf and add the following (note that the order of repositories in pacman.conf is important, since pacman always downloads the first found package):

[home_el_archphp_Arch]
Server = https://download.opensuse.org/repositories/home:/el:/archphp/Arch/$arch

Then run the following as root

key=$(curl -fsSL https://download.opensuse.org/repositories/home:el:archphp/Arch/$(uname -m)/home_el_archphp_Arch.key)
fingerprint=$(gpg --quiet --with-colons --import-options show-only --import --fingerprint <<< "${key}" | awk -F: '$1 == "fpr" { print $10 }')
pacman-key --init
pacman-key --add - <<< "${key}"
pacman-key --lsign-key "${fingerprint}"

Refresh packages database

pacman -Syy

Now search for php packages you need:

pacman -Ss php71

Install with pacman -S packages you need or all PHP 7.1 packages with:

sudo pacman -S $(pacman -Ssq | grep '^php71')

el_aur commented on 2022-02-03 18:47 (UTC) (edited on 2022-02-03 18:50 (UTC) by el_aur)

Read Carefully! Breaking changes in compare with native PHP package

  1. Console version /usr/bin/php71 is installed with php71-cli subpackage, php71 doesn't include it anymore!!!

  2. PEAR and PECL are available as php71-pear and php71-pecl subpackages

  3. All shared modules are respresented as stand-alone subpackages and are not included with php71 package anymore.

  4. No more extensions in php.ini itself!

Separate INI files for each extension are placed in /etc/php71/conf.d

They are loaded in correct order according to priority

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 Next › Last »

keoma commented on 2020-02-10 01:45 (UTC) (edited on 2020-02-10 22:32 (UTC) by keoma)

@kde35 maybe it's too late, but I had the same problem and could fix using a workaround: copying the entire folder /usr/include/freetype2/ to its parent.

# cp -r /usr/include/freetype2/* /usr/include

@wget, do you have a more elegant solution for this? That would be great.

wget commented on 2019-09-15 17:39 (UTC)

@ruskiyos: You need apache, not as a dependency, but as a make dependency. This is completely different, while the first is a hard requirement, the second is just a requirement to build the final application, here php. As you can see, if I'm not relying on apache, the SAPI CGI module cannot be build:


Configuring SAPI modules
checking for Apache 2.0 handler-module support via DSO through APXS... 

Sorry, I cannot run apxs.  Possible reasons follow:

1. Perl is not installed
2. apxs was not found. Try to pass the path using --with-apxs2=/path/to/apxs
3. Apache was not built using --enable-so (the apxs usage page is displayed)

The output of apxs follows:
./configure: line 6167: apxs: command not found
configure: error: Aborting
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/wget/build

ruskiyos commented on 2019-09-13 19:39 (UTC)

Out of curiosity, why is apache a required dependency for this package?

wget commented on 2019-08-20 15:45 (UTC)

Package updated to 7.1.31

wget commented on 2019-04-28 23:10 (UTC)

Package updated to 7.1.28. @matth Thanks a lot. I corrected the package by integrating your comments :) @kde35 Sorry, but I cannot reproduce from my side. The package built and all tests passed flawlessly on my Arch Linux based computer. :-/

kde35 commented on 2019-04-23 17:14 (UTC)

This doesn't compile, I get aur/php71/src/php-7.1.16/ext/gd/gd.c:77:12: fatal error: ft2build.h: No such file or directory # include <ft2build.h> ^~~~~~~~~~~~ compilation terminated. make: *** [Makefile:1060: ext/gd/gd.lo] Error 1 ==> ERROR: A failure occurred in build(). Aborting...

matth commented on 2019-03-07 21:24 (UTC)

Two minor things that make this conflict with running with php70-fpm

php-fpm.patch uses /run/php70-fpm/php-fpm.sock instead of /run/php71-fpm/php-fpm.sock

php-fpm.tmpfiles uses /run/php70-fpm instead of /run/php71-fpm

botzko commented on 2019-02-24 20:02 (UTC)

Hi @Renfield,

As I can see the check() method is simple, so you can just modify it to put some outputs (echo "X") and rebuild. This way you will be able to find out exactly where it's failing. As I can see it can fail checking the sendmail_path or failing running the php tests. Also you should be able to execute these tests by yourself to see their output.

Having php 7.2 should not be a problem.

Kind regards.

Renfield commented on 2019-02-23 00:58 (UTC) (edited on 2019-02-23 00:59 (UTC) by Renfield)

I just tried to build this package and got this result:

Build complete. Don't forget to run 'make test'.

==> Starting check()... ==> ERROR: A failure occurred in check(). Aborting...

Not very useful. I wonder if it is due to having PHP72 intalled already.

botzko commented on 2019-02-12 09:57 (UTC)

Hi @wget,

First of all thank you for your work.

Just to let you know that the default listener in /etc/php71/php-fpm.d/www.conf is /run/php70-fpm/php-fpm.sock. This could cause issue if someone has installed php70 and php71

P.S. I need to remove --with-freetype-dir=/usr \ to be able to compile the package because it can't fine one .h file.

Thank you for you work.