{"id":20156162,"url":"https://github.com/dsccommunity/xphp","last_synced_at":"2025-12-11T21:40:26.668Z","repository":{"id":30468257,"uuid":"34022243","full_name":"dsccommunity/xPhp","owner":"dsccommunity","description":null,"archived":false,"fork":false,"pushed_at":"2018-09-22T10:52:12.000Z","size":73,"stargazers_count":5,"open_issues_count":4,"forks_count":7,"subscribers_count":18,"default_branch":"dev","last_synced_at":"2025-04-01T16:11:18.724Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dsccommunity.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-15T22:43:03.000Z","updated_at":"2024-09-01T23:10:42.000Z","dependencies_parsed_at":"2022-09-07T21:11:18.909Z","dependency_job_id":null,"html_url":"https://github.com/dsccommunity/xPhp","commit_stats":null,"previous_names":["powershell/xphp"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsccommunity%2FxPhp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsccommunity%2FxPhp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsccommunity%2FxPhp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dsccommunity%2FxPhp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dsccommunity","download_url":"https://codeload.github.com/dsccommunity/xPhp/tar.gz/refs/heads/dev","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248120068,"owners_count":21050887,"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":[],"created_at":"2024-11-13T23:37:50.627Z","updated_at":"2025-12-11T21:40:26.609Z","avatar_url":"https://github.com/dsccommunity.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build status](https://ci.appveyor.com/api/projects/status/4umfdsbj520bmely/branch/master?svg=true)](https://ci.appveyor.com/project/PowerShell/xphp/branch/master)\r\n\r\n# xPhp\r\n\r\n\r\nThis project has adopted the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/).\r\nFor more information see the [Code of Conduct FAQ](https://opensource.microsoft.com/codeofconduct/faq/) or contact [opencode@microsoft.com](mailto:opencode@microsoft.com) with any additional questions or comments.\r\n\r\n## Contributing\r\nPlease check out common DSC Resources [contributing guidelines](https://github.com/PowerShell/DscResource.Kit/blob/master/CONTRIBUTING.md).\r\n\r\n\r\n## Resources\r\n\r\n### xPhpProvision\r\n\r\n* **PackageFolder**: The folder to download the PHP and Visual C++ 2012 packages to. **Note:** this must already exist.\r\n* **DownloadUri**: The URL/URI for the PHP package.\r\n* **VcRedistDownloadUri**: The URL/URI for the Visual Studio C++ 2012 Redistributiable package.\r\n* **DestinationPath**: The path to install PHP.\r\n* **ConfigurationPath**: The path to the file to use as PHP.ini.\r\n* **InstallMySqlExt**: A boolean indicating if the MySQL extension should be installed.\r\n\r\n\r\n## Versions\r\n\r\n### Unreleased\r\n\r\n* Update appveyor.yml to use the default template.\r\n* Activated the GitHub App Stale on the GitHub repository\r\n* Updated manifest property PowerShellVersion to '4.0' to pass tests.\r\n* Added default template files .codecov.yml, .gitattributes, and .gitignore, and\r\n  .vscode folder.\r\n* Remove the use of PoshBuildTools from appveyor.yml.\r\n\r\n### 1.2.0.0\r\n\r\n* Added dependencies on xPSDesiredStateConfiguration and xWebAdministration\r\n* Renamed the resource as it was named against naming standards and resources cannot be named the same as the module.\r\n    - xPhpProvision\r\n\r\n### 1.1.0.0\r\n\r\n* Updated module name to support WMF 5\r\n\r\n### 1.0.1\r\n\r\n* Initial release with the following resources\r\n    - xPhp\r\n\r\n## Examples\r\n\r\n### Setup a PHP Server on a single node\r\n\r\nThis configuration will setup a PHP server on a single node.\r\nNote: this configuration requires the following other modules: **xWebAdministration**, and **xPsDesiredStateConfiguration**.\r\n\r\n```powershell\r\n# This configuration will, via the xPhpProvision composite configuration:\r\n# 1) Make sure IIS is installed\r\n# 2) Make sure PHP is present\r\n# 3) Make sure that PHP is registered with IIS\r\n# 4) Make sure PHP is in the path\r\n#\r\n# ********* NOTE ***********\r\n# PHP changes their download URLs frequently.  Please verify the URL.\r\n# the VC Redist URL changes less frequently, but should still be verified.\r\n# After verifying the download URLs for the products and update them appropriately.\r\n# **************************\r\n$scriptRoot = Split-Path $MyInvocation.MyCommand.Path\r\n$phpIniPath = (Join-Path $scriptRoot \"phpConfigTemplate.txt\")\r\nif (-not (Test-Path $phpIniPath))\r\n{\r\n    $message = \"Missing required file $phpIniPath\"\r\n    # This file is in the samples folder of the resource\r\n    throw $message\r\n}\r\nConfiguration SamplePhp\r\n{\r\n    # Import composite resources\r\n    Import-DscResource -module xPhp\r\n    Node \"localhost\"\r\n    {\r\n        File PackagesFolder\r\n        {\r\n            DestinationPath = \"C:\\package\"\r\n            Type = \"Directory\"\r\n            Ensure = \"Present\"\r\n        }\r\n        # Make sure PHP is installed in IIS\r\n        xPhpProvision  php\r\n        {\r\n            InstallMySqlExt = $true\r\n            PackageFolder =  \"C:\\package\"\r\n            # Update with the latest \"VC11 x64 Non Thread Safe\" from http://windows.php.net/download/\r\n            DownloadURI = \"http://windows.php.net/downloads/releases/php-5.5.14-nts-Win32-VC11-x64.zip\"\r\n            DestinationPath = \"C:\\php\"\r\n            ConfigurationPath = $phpIniPath\r\n            Vc2012RedistDownloadUri = \"http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe\"\r\n            # Removed because this dependency does not work in Windows Server 2012 R2 and below\r\n            # This should work in WMF v5 and above\r\n            # DependsOn = \"[IisPreReqs_WordPress]Iis\"\r\n        }\r\n    }\r\n}\r\nSamplePhp\r\nStart-DscConfiguration -path .\\SamplePhp -wait -verbose\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsccommunity%2Fxphp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsccommunity%2Fxphp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsccommunity%2Fxphp/lists"}