Giter Club home page Giter Club logo

php5-ubuntu's Introduction

PHP5 for ubuntu

Build status LICENSE PHP Versions Supported

Scripts to install end of life PHP versions.

PHP versions in this project have reached end of life, so only use this project in isolated environments like a container, also only for testing backward-compatibility. Do not use this in production.

The aim is to provide old PHP for GitHub Actions Ubuntu runners. You might need some more libraries if using this elsewhere.

Usage

PHP 5.3

curl -sSL https://github.com/shivammathur/php5-ubuntu/releases/latest/download/install.sh | bash -s 5.3

PHP 5.4

curl -sSL https://github.com/shivammathur/php5-ubuntu/releases/latest/download/install.sh | bash -s 5.4

PHP 5.5

curl -sSL https://github.com/shivammathur/php5-ubuntu/releases/latest/download/install.sh | bash -s 5.5

License

  • The code and documentation in this project is licensed under the MIT license.
  • The library binaries have been sourced from Ubuntu package archive.
  • This project has multiple dependencies. Their licenses can be found in their respective repositories.

Dependencies

php5-ubuntu's People

Contributors

glensc avatar shivammathur 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

Watchers

 avatar  avatar  avatar

php5-ubuntu's Issues

Init.d script fails to start/stop php-fpm after installation

Running the setup script on a barebones Ubuntu (both Focal and Jammy), close to the end there is a 30 secs wait while the script tries to start php-fpm, and fails.

The output is: Starting php-fpm ................................... failed

By the looks of it, it seems that the php-fpm service script which gets installed in init.d has a problem with the pid file not being found. I am not sure if this is due to the pid file being specified in the fpm config file which is generated during the setup, if the php-fpm binary simply disobeys the cli option with the name of the pid file to generate, or if it is a filesystem permissions issue.

This does not prevent using the installed php, nor php-fpm, as the php-fpm process will actually work.

It just makes the setup process slower than it could be.

Directory `/usr/include/php/` should be created if it does not exist

This is just a nitpick, but: trying to run the setup script on a barebones Ubuntu, both with Jammy and Focal, there is an error during the setup:

ln: failed to create symbolic link '/usr/include/php/20XXYYZZ': No such file or directory

I think it would be enough to create the dir '/usr/include/php' to fix that

Document better the requirements for a succesful install

The dependencies listed at the bottom of the readme could be made more clear by listing the exact ubuntu packages required, at least on a stock ubuntu. Atm it is not very clear which of the requirements is an actual package to install, and which one is not.

This is the minimal list of packages I needed to install, on a 'plain' ubuntu Jammy container, in order to get the built php to run:

 DEBIAN_FRONTEND=noninteractive apt-get install -y \
            curl \
            enchant-2 \
            imagemagick \
            libc-client2007e \
            libcurl3-gnutls \
            libmcrypt4 \
            libodbc1 \
            libpq5 \
            libqdbm14 \
            libtinfo5 \
            libxpm4 \
            libxslt1.1 \
            mysql-common \
            sudo \
            zstd

On Focal, enchant-2 has to be replaced by enchant

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.