{"id":14235923,"url":"https://github.com/kasparsd/php-7-debian","last_synced_at":"2025-04-06T01:09:53.873Z","repository":{"id":30878936,"uuid":"34436604","full_name":"kasparsd/php-7-debian","owner":"kasparsd","description":"Install PHP 7 on Debian/Ubuntu","archived":false,"fork":false,"pushed_at":"2020-04-15T13:05:00.000Z","size":83,"stargazers_count":348,"open_issues_count":11,"forks_count":103,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-03-30T00:08:39.701Z","etag":null,"topics":["cli","debian","php","php-fpm","php7","shell","ubuntu"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kasparsd.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-23T05:52:30.000Z","updated_at":"2025-03-14T22:13:10.000Z","dependencies_parsed_at":"2022-09-07T15:00:15.913Z","dependency_job_id":null,"html_url":"https://github.com/kasparsd/php-7-debian","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasparsd%2Fphp-7-debian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasparsd%2Fphp-7-debian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasparsd%2Fphp-7-debian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kasparsd%2Fphp-7-debian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kasparsd","download_url":"https://codeload.github.com/kasparsd/php-7-debian/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419861,"owners_count":20936012,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","debian","php","php-fpm","php7","shell","ubuntu"],"created_at":"2024-08-20T21:02:31.224Z","updated_at":"2025-04-06T01:09:53.854Z","avatar_url":"https://github.com/kasparsd.png","language":"Shell","readme":"# Install PHP 7 on Debian/Ubuntu\n\nThese are a set of bash scripts for building and running PHP 7 (CLI and FPM) on Debian based Linux distributions:\n\n- `build.sh` installs the necessary build dependencies and the latest stable version of PHP with CLI and FPM server APIs (SAPI) from the latest PHP 7 branch of https://github.com/php/php-src.\n\n- `install.sh` sets up PHP-FPM by moving configuration files into their correct locations in `/usr/local/php7` and enables the `php7-fpm` service and adds it to the startup sequence.\n\nPlease note that these are very simple scripts that don't implement error checking or process validation.\n\n![Building PHP 7 on Orange Pi Zero (ARM)](https://kaspars.net/wp-content/uploads/2017/02/orange-pi-zero-php7-build.png)\n\n\n## Usage\n\n\t$ git clone https://github.com/kasparsd/php-7-debian.git\n\t$ cd php-7-debian\n\t$ ./build.sh\n\t$ sudo ./install.sh\n\nOn systems with little amount of RAM such as Raspberry Pi you might want to decrease the number of parallel `make` jobs by passing the `JOB_COUNT` variable:\n\n\t$ JOB_COUNT=1 ./build.sh\n\nThe default job count is equal to the number of CPU cores.\n\nThe PHP-FPM can be operated using the `php7-fpm` init script:\n\n\tUsage: /etc/init.d/php7-fpm {start|stop|status|restart|reload|force-reload}\n\nwhile the FPM socket is available at\n\n\t127.0.0.1:9007\n\nand PHP CLI at `/usr/local/php7/bin/php`.\n\n### Updating\n\nPull down the latest changes from this repository `git pull` and run `./build.sh`.\n\n\n## Configuration files\n\nAll PHP configuration files are stored under `/usr/local/php7`:\n\n\t/usr/local/php7/lib/php.ini\n\t/usr/local/php7/etc/php-fpm.conf\n\t/usr/local/php7/etc/php-fpm.d/www.conf\n\t/usr/local/php7/etc/conf.d/modules.ini\n\nwhile the Debian init script is added to:\n\n\t/etc/init.d/php7-fpm\n\n\n## Extensions\n\nHere is a list of PHP modules that are enabled by default in this build:\n\n\t$ /usr/local/php7/bin/php -m\n\t[PHP Modules]\n\tbcmath\n\tbz2\n\tcalendar\n\tCore\n\tctype\n\tcurl\n\tdate\n\tdba\n\tdom\n\texif\n\tfileinfo\n\tfilter\n\tftp\n\tgd\n\tgettext\n\thash\n\ticonv\n\tintl\n\tjson\n\tlibxml\n\tmbstring\n\tmysqli\n\tmysqlnd\n\topenssl\n\tpcntl\n\tpcre\n\tPDO\n\tpdo_mysql\n\tpdo_sqlite\n\tPhar\n\tposix\n\tpspell\n\treadline\n\tReflection\n\tsession\n\tshmop\n\tSimpleXML\n\tsoap\n\tsockets\n\tSPL\n\tsqlite3\n\tstandard\n\tsysvmsg\n\tsysvsem\n\tsysvshm\n\ttokenizer\n\twddx\n\txml\n\txmlreader\n\txmlwriter\n\tZend OPcache\n\tzip\n\tzlib\n\n\t[Zend Modules]\n\tZend OPcache\n\n\n## Installing Extensions\n\nPlease note that you need to restart `php7-fpm` to activate the extension.\n\n### Install the Memcached Extension\n\n\t$ cd php-7-debian/extensions\n\t$ ./memcached-build.sh\n\t$ ./memcached-install.sh\n\n### Install the Imagick Extension\n\n\t$ cd php-7-debian/extensions\n\t$ ./imagick-build.sh\n\t$ ./imagick-install.sh\n\n\n## Credits\n\n- Created by [Kaspars Dambis](https://kaspars.net)\n- Contributors: [Piotr Plenik](https://github.com/jupeter)\n- Based on [`php7.sh`](https://gist.github.com/tvlooy/953a7c0658e70b573ab4) by [Tom Van Looy](http://www.intracto.com/nl/blog/running-symfony2-on-php7)\n","funding_links":[],"categories":["Shell"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasparsd%2Fphp-7-debian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkasparsd%2Fphp-7-debian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkasparsd%2Fphp-7-debian/lists"}