Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!

PHP Service

7.2.10

Package test results are passing.

This package was approved by moderator Pauby on 9/21/2018.

PHP is a popular general-purpose scripting language that is especially suited to web development.
Fast, flexible and pragmatic, PHP powers everything from your blog to the most popular websites in the world.

This package will install PHP (Hypertext Preprocessor) with it's default values. Its installed trough dependencies and those can't be passed with extra arguments.

To install PHP Service, run the following command from the command line or from PowerShell:

C:\> choco install php-service

To upgrade PHP Service, run the following command from the command line or from PowerShell:

C:\> choco upgrade php-service

Files

Hide
  • tools\chocolateyinstall.ps1 Show
    $ErrorActionPreference = 'Stop'; # stop on all errors
    $version    = $env:chocolateyPackageVersion -replace "-beta.*",""
    $installDir = "$($env:ChocolateyToolsLocation)\php{0}" -f ($version -replace '\.').Substring(0,2)
    
    # Actual service installation
    $ErrorActionPreference = 'SilentlyContinue'
    net stop php 2>&1 | Out-Null
    sc delete php 2>&1 | Out-Null
    
    nssm stop php 2>&1 | Out-Null
    nssm remove php confirm 2>&1 | Out-Null
    nssm install php "$($installDir)\php-cgi.exe" 2>&1 | Out-Null
    nssm set php Description "PHP, service managed by NSSM" 2>&1 | Out-Null
    nssm set php AppDirectory  "$installDir" 2>&1 | Out-Null
    nssm set php AppParameters "-b """"127.0.0.1:9000""""" 2>&1 | Out-Null
    nssm start php 2>&1 | Out-Null
    $ErrorActionPreference = 'Stop'
    
    # Throw some barebones info for user
    Write-Host @"
    Config file "$installDir\php.ini"
    
    PHP now can be started and stopped as regular Windows service or through NSSM command interface
    Type one of those commands in CMD or PowerShell for php-service control:
    
    "@  -ForegroundColor Green
    Write-Host "To start service:" -ForegroundColor Green
    Write-Host "    net start php" -ForegroundColor Yellow
    Write-Host "    or" -ForegroundColor Green
    Write-Host "    nssm start php" -ForegroundColor Yellow
    
    Write-Host "To stop service:" -ForegroundColor Green
    Write-Host "    net stop php" -ForegroundColor Yellow
    Write-Host "    or" -ForegroundColor Green
    Write-Host "    nssm stop php" -ForegroundColor Yellow
    
    Write-Host "To restart service do both:" -ForegroundColor Green
    Write-Host "    net stop php" -ForegroundColor Yellow
    Write-Host "    net start php" -ForegroundColor Yellow
    Write-Host "    or" -ForegroundColor Green
    Write-Host "    nssm stop php" -ForegroundColor Yellow
    Write-Host "    nssm start php" -ForegroundColor Yellow
    
  • tools\chocolateyuninstall.ps1 Show
    $ErrorActionPreference = 'SilentlyContinue'
    nssm stop php 2>&1 | Out-Null
    nssm remove php confirm 2>&1 | Out-Null
    $ErrorActionPreference = 'Stop'
    

Virus Scan Results

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Dependencies

Package Maintainer(s)

Software Author(s)

  • PHP Authors

Copyright

2018 © PHP Group

Tags

Release Notes

  • Core:
    . Fixed bug #76754 (parent private constant in extends class memory leak).
    (Laruence)
    . Fixed bug #72443 (Generate enabled extension). (petk)
    . Fixed bug #75797 (Memory leak when using class_alias() in non-debug mode).
    (Massimiliano Braglia)

  • Apache2:
    . Fixed bug #76582 (Apache bucket brigade sometimes becomes invalid). (stas)

  • Bz2:
    . Fixed arginfo for bzcompress. (Tyson Andre)

  • gettext:
    . Fixed bug #76517 (incorrect restoring of LDFLAGS). (sji)

  • iconv:
    . Fixed bug #68180 (iconvmimedecode can return extra characters in a
    header). (cmb)
    . Fixed bug #63839 (iconvmimedecodeheaders function is skipping headers).
    (cmb)
    . Fixed bug #60494 (iconv
    mimedecode does ignore special characters). (cmb)
    . Fixed bug #55146 (iconv
    mimedecodeheaders() skips some headers). (cmb)

  • intl:
    . Fixed bug #74484 (MessageFormatter::formatMessage memory corruption with
    11+ named placeholders). (Anatol)

  • libxml:
    . Fixed bug #76777 ("public id" parameter of libxmlsetexternalentityloader
    callback undefined). (Ville Hukkamäki)

  • mbstring:
    . Fixed bug #76704 (mbdetectorder return value varies based on argument
    type). (cmb)

  • Opcache:
    . Fixed bug #76747 (Opcache treats path containing "test.pharma.tld" as a phar
    file). (Laruence)

  • OpenSSL:
    . Fixed bug #76705 (unusable ssl => peerfingerprint in
    stream
    context_create()). (Jakub Zelenka)

  • phpdbg:
    . Fixed bug #76595 (phpdbg man page contains outdated information).
    (Kevin Abel)

  • SPL:
    . Fixed bug #68825 (Exception in DirectoryIterator::getLinkTarget()). (cmb)
    . Fixed bug #68175 (RegexIterator pregFlags are NULL instead of 0). (Tim
    Siebels)

  • Standard:
    . Fixed bug #76778 (array_reduce leaks memory if callback throws exception).
    (cmb)

  • zlib:
    . Fixed bug #65988 (Zlib version check fails when an include/zlib/ style dir
    is passed to the --with-zlib configure option). (Jay Bonci)
    . Fixed bug #76709 (Minimal required zlib library is 1.2.0.4). (petk)

Version History

Version Downloads Last updated Status
PHP Service 7.2.9 25 Friday, August 17, 2018 approved
PHP Service 7.2.8 38 Thursday, July 19, 2018 approved
PHP Service 7.2.7 35 Thursday, June 21, 2018 approved
php-service (Install) 7.2.5 70 Wednesday, June 6, 2018 approved

Discussion for the PHP Service Package

Ground rules:

  • This discussion is only about PHP Service and the PHP Service package. If you have feedback for Chocolatey, please contact the google group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or PHP Service, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.

comments powered by Disqus
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok