GithubHelp home page GithubHelp logo

sergix44 / ispc-phpcompiler Goto Github PK

View Code? Open in Web Editor NEW
43.0 11.0 16.0 362 KB

Compile and manage multiple PHP versions easily!

License: GNU General Public License v3.0

Shell 95.57% PHP 4.43%
php build compiler script ispconfig debian ubuntu centos hacktoberfest php8

ispc-phpcompiler's Introduction

🚀 The PHP Compiler Script .github/workflows/compile-tests.yml

This script will help you to manage different PHP version for your webserver (especially made for ISPConfig installations). This supports auto compiling and auto configure feature with a very high optimization level (-O3 -march=native -mtune=native flags) for PHP >= 5.6. See the versions.sh file to see them.

At every launch a new version of the versions.sh file is imported from this repository, it ensure always up to date links and builds.

How to use

Just run this command in your shell to download and run the script, and then just follow the instruction on your screen:

wget https://raw.githubusercontent.com/SergiX44/ISPC-PHPCompiler/bash-version/php-compiler.sh; chmod +x php-compiler.sh; bash php-compiler.sh

Currently supported platforms

OS \ PHP 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1 8.2 RC
Debian 9 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
Debian 10 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
Debian 11 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
Centos 7 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
Ubuntu 18.04 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
Ubuntu 20.04 ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️
Ubuntu 22.04 * ✔️ ✔️ ✔️ ✔️ ✔️ ✔️ ✔️

(*) on Ubuntu 22.x PHP <= 8.0 only without OpenSSL

EOL

The script should also work on:

  • Ubuntu 14.04
  • Ubuntu 16.04
  • Ubuntu 17.04
  • Ubuntu 17.10
  • Devuan 1
  • Devuan 2
  • Devuan 3
  • Debian 8
  • CentOS 8

But these platforms are no longer tested.

Contributors

SergiX44 Pe46dro

ispc-phpcompiler's People

Contributors

kaos1337 avatar millenium-codebug avatar optimbro avatar pe46dro avatar ressel87 avatar sergix44 avatar smanu85 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ispc-phpcompiler's Issues

How to add modules after install

Hi there and thanks for the script, the install went fantastic! I do have a question relating to the PHP install. I can't seem to figure out how to add modules afterward. Could you perhaps let me know how I might go about performing that? This is on a Debian 9 machine. The module I've been trying to enable for the last couple of days is intl.

Thanks for your time!

APCu extension

Any suggestions to compiling APCu, as the /usr/local/src/php-build is emptied after the script is run?

Or maybe this could be included as an option when compiling?

Error trying to install PHP 7.3 after successful installation of PHP 7.4 using this same tool

After install and using PHP 7.4 (Installed using this tool only)

When I run the same wget script for install PHP 7.3

got the following error ...

[....]
Package matching libzip-devel-0.10.1-8.el7.x86_64 already installed. Checking for update.
No package pkg-config available.
Package zlib-devel-1.2.7-20.el7_9.x86_64 already installed and latest version
Package libsqlite3x-devel-20071018-20.el7.x86_64 already installed and latest version
Package oniguruma-devel-6.8.2-2.el7.x86_64 already installed and latest version
Package readline-devel-6.2-11.el7.x86_64 already installed and latest version
Nothing to do
--2022-11-21 23:22:43--  http://packages.psychotic.ninja/7/plus/x86_64/RPMS/libzip-0.11.2-6.el7.psychotic.x86_64.rpm
Resolving packages.psychotic.ninja (packages.psychotic.ninja)... 107.191.40.146, 2001:19f0:300:2ac2:5400:ff:fe02:f2e8
Connecting to packages.psychotic.ninja (packages.psychotic.ninja)|107.191.40.146|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 134704 (132K) [application/x-rpm]
Saving to: ‘/tmp/libzip.rpm’

100%[===================================================================================================================================================================================================================================================================================>] 134,704      138KB/s   in 1.0s

2022-11-21 23:22:44 (138 KB/s) - ‘/tmp/libzip.rpm’ saved [134704/134704]

--2022-11-21 23:22:44--  http://packages.psychotic.ninja/7/plus/x86_64/RPMS/libzip-devel-0.11.2-6.el7.psychotic.x86_64.rpm
Resolving packages.psychotic.ninja (packages.psychotic.ninja)... 107.191.40.146, 2001:19f0:300:2ac2:5400:ff:fe02:f2e8
Connecting to packages.psychotic.ninja (packages.psychotic.ninja)|107.191.40.146|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 62044 (61K) [application/x-rpm]
Saving to: ‘/tmp/libzip-devel.rpm’

100%[===================================================================================================================================================================================================================================================================================>] 62,044       130KB/s   in 0.5s

2022-11-21 23:22:45 (130 KB/s) - ‘/tmp/libzip-devel.rpm’ saved [62044/62044]

warning: /tmp/libzip.rpm: Header V4 DSA/SHA1 Signature, key ID 4875a356: NOKEY
Preparing...                          ################################# [100%]
        package libzip-0.11.2-6.el7.psychotic.x86_64 is already installed
        package libzip-devel-0.11.2-6.el7.psychotic.x86_64 is already installed
Error detected in latest command, exiting...

Please help me to resolve the issue

openssl Not Found

OS: Ubuntu 22.04 (WSL)

Compiling...
--2023-11-24 21:08:10-- http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
Resolving archive.ubuntu.com (archive.ubuntu.com)... 185.125.190.36, 91.189.91.82, 185.125.190.39, ...
Connecting to archive.ubuntu.com (archive.ubuntu.com)|185.125.190.36|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-11-24 21:08:10 ERROR 404: Not Found.

Error detected in latest command, exiting...

support of ubuntu 18.04

I run it and I got:

Your distro is not supported
Your distro: ubuntu-18.04
You can add it and make a PR ;)

Ubuntu 16.04 LTS - problem with the dependencies

root@xxxxx:~# wget https://raw.githubusercontent.com/SergiX44/ISPC-PHPCompiler/bash-version/php-compiler.sh; chmod +x php-compiler.sh; bash php-compiler.sh
--2021-07-22 10:06:51-- https://raw.githubusercontent.com/SergiX44/ISPC-PHPCompiler/bash-version/php-compiler.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.109.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 25525 (25K) [text/plain]
Saving to: ‘php-compiler.sh’

php-compiler.sh 100%[==================================================================================================================>] 24,93K --.-KB/s in 0,09s

2021-07-22 10:06:53 (282 KB/s) - ‘php-compiler.sh’ saved [25525/25525]

Installing required packages...
Stary:1 http://dl.hhvm.com/ubuntu xenial InRelease
Stary:2 http://pl.archive.ubuntu.com/ubuntu xenial InRelease
Stary:3 http://pl.archive.ubuntu.com/ubuntu xenial-updates InRelease
Stary:4 http://pl.archive.ubuntu.com/ubuntu xenial-backports InRelease
Stary:5 http://ppa.launchpad.net/certbot/certbot/ubuntu xenial InRelease
Stary:6 http://ppa.launchpad.net/ondrej/php/ubuntu xenial InRelease
Pobieranie:7 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Stary:8 https://esm.ubuntu.com/infra/ubuntu xenial-infra-security InRelease
Stary:9 https://esm.ubuntu.com/infra/ubuntu xenial-infra-updates InRelease
Pobrano 109 kB w 2s (44,6 kB/s)
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
All packages are up to date.
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
whiptail is already the newest version (0.52.18-1ubuntu2).
curl is already the newest version (7.47.0-1ubuntu2.19).
wget is already the newest version (1.17.1-1ubuntu1.5).
0 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych.
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
build-essential is already the newest version (12.1ubuntu2).
libfcgi-dev is already the newest version (2.4.0-8.3).
libfcgi0ldbl is already the newest version (2.4.0-8.3).
pkg-config is already the newest version (0.29.1-0ubuntu1).
pkg-config zaznaczony jako zainstalowany ręcznie.
libjpeg62-dbg is already the newest version (1:6b2-2).
libmcrypt-dev is already the newest version (2.5.8-3.3).
nano is already the newest version (2.5.3-2ubuntu2).
wget is already the newest version (1.17.1-1ubuntu1.5).
libc-client2007e is already the newest version (8:2007fdfsg-4+deb8u1build0.16.04.1).
libc-client2007e-dev is already the newest version (8:2007f
dfsg-4+deb8u1build0.16.04.1).
libssl-dev is already the newest version (1.1.1k-1+ubuntu16.04.1+deb.sury.org+0).
Some packages could not be installed. This could mean
that an impossible situation was requested or an unstable distribution was used
in which some packages have not yet been created or moved
from the Incoming directory.
The following information may help resolve the situation:

The following packages have unmet dependencies:
libxml2-dev: Requires: libxml2 (= 2.9.3 + dfsg1-1ubuntu0.7 + esm1) but 2.9.10 + dfsg-5 + ubuntu16.04.1 + deb.sury.org + 3 is to be installed
libzip-dev: Requires: libzip4 (= 1.0.1-0ubuntu1) but 1.7.3-1 + ubuntu16.04.1 + deb.sury.org + 2 is to be installed
E: Could not fix problems, damaged packages stopped.
Error detected in latest command, exiting...
root@xxxx:~#

add imagic extension

Any suggestions to compiling imagic, as the /usr/local/src/php-build is emptied after the script is run.

extension gmp

Any suggestions for gmp extension?

I see that gmp-devel is installed for yum/dnf systems, but not for apt. Should libgmp-dev be installed as a prerequisite?

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.