From e9eb80e26b5141bb35fa946b3ec325db5666b7ed Mon Sep 17 00:00:00 2001
From: Derick Rethans
+brew install php{$version} +
+To enable PHP in Apache add the following to httpd.conf and restart Apache: +
++LoadModule php_module \$HOMEBREW_PREFIX/opt/php/lib/httpd/modules/libphp.so + +<FilesMatch \.php$> +SetHandler application/x-httpd-php +</FilesMatch> +
+Finally, check DirectoryIndex includes index.php +
++DirectoryIndex index.php index.html +
+The php.ini and php-fpm.ini file can be found in: +
++\$HOMEBREW_PREFIX/etc/php/{$versionDir}/ +
+sudo apt-get update +sudo apt-get install php +
+sudo apt -y install software-properties-common +sudo add-apt-repository ppa:ondrej/php +sudo apt update +sudo apt install php{$version} +
+There are no instructions yet. +
+ + diff --git a/downloads.php b/downloads.php index 5468da840f..ad5a1a118e 100644 --- a/downloads.php +++ b/downloads.php @@ -7,8 +7,6 @@ // Try to make this page non-cached header_nocache(); -$SHOW_COUNT = 4; - $SIDEBAR_DATA = '- Note: - -
- -+ Note: + +
+ +On the OSX command line shell, enter:
-+brew install php{$version} -
To enable PHP in Apache add the following to httpd.conf and restart Apache:
-+LoadModule php_module \$HOMEBREW_PREFIX/opt/php/lib/httpd/modules/libphp.so <FilesMatch \.php$> SetHandler application/x-httpd-php </FilesMatch> -
Finally, check DirectoryIndex includes index.php
-+DirectoryIndex index.php index.html -
The php.ini and php-fpm.ini file can be found in:
-+\$HOMEBREW_PREFIX/etc/php/{$versionDir}/ -
On the command line shell, enter:
-+sudo apt-get update sudo apt-get install php -
On the command line shell, enter:
-+sudo apt -y install software-properties-common sudo add-apt-repository ppa:ondrej/php sudo apt update sudo apt install php{$version} -
diff --git a/styles/theme-base.css b/styles/theme-base.css
index c28b2a1385..96fdf06fa0 100644
--- a/styles/theme-base.css
+++ b/styles/theme-base.css
@@ -508,6 +508,41 @@ div.classsynopsisinfo_comment {
margin-top:1.5rem;
}
+.phpcode {
+ background-color: #FFF;
+ box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15);
+ border-radius: 0 0 2px 2px;
+ overflow-x: auto;
+ display: flex;
+ align-items: center;
+ width: 100%;
+ height: 100%;
+ padding: 0 1.5rem;
+ box-sizing: border-box;
+ margin: 0;
+}
+
+.instructions {
+ margin-bottom: 2rem;
+}
+
+.instructions p {
+ margin: 1rem 0;
+}
+
+.instructions-form {
+ display: flex;
+ flex-direction: column;
+ gap: .75rem;
+ margin-bottom: 2rem;
+}
+
+.instructions-label {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+}
+
.warn {
padding: .75rem 1rem;
margin: 1.5rem 0 1.5rem 1.5rem;
From 58500599d8d2000efd3220c2a013faf8906ac635 Mon Sep 17 00:00:00 2001
From: Sergey Panteleev
-brew install php{$version} -
-To enable PHP in Apache add the following to httpd.conf and restart Apache: -
--LoadModule php_module \$HOMEBREW_PREFIX/opt/php/lib/httpd/modules/libphp.so +$multiversion = false; -<FilesMatch \.php$> -SetHandler application/x-httpd-php -</FilesMatch> -
-Finally, check DirectoryIndex includes index.php -
--DirectoryIndex index.php index.html -
-The php.ini and php-fpm.ini file can be found in: -
--\$HOMEBREW_PREFIX/etc/php/{$versionDir}/ -
-sudo apt-get update -sudo apt-get install php -
-sudo apt -y install software-properties-common -sudo add-apt-repository ppa:ondrej/php -sudo apt update -sudo apt install php{$version} -
-There are no instructions yet. -
- - diff --git a/downloads.php b/downloads.php index 7c966724fc..d6b13e2147 100644 --- a/downloads.php +++ b/downloads.php @@ -56,40 +56,43 @@ function option(string $value, string $desc, $attributes = []): string 'linux' => [ 'name' => 'Linux', 'variants' => [ - 'linux-deb-buster' => 'Debian Buster', - 'linux-deb-bullseye' => 'Debian Bullseye', - 'linux-deb-bookworm' => 'Debian Bookworm', - 'linux-rpm-fedora41' => 'Fedora 41', - 'linux-rpm-fedora42' => 'Fedora 42', - 'linux-rpm-redhat' => 'RedHat', + 'linux-debian' => 'Debian', + 'linux-fedora' => 'Fedora', + 'linux-redhat' => 'RedHat', + 'linux-ubuntu' => 'Ubuntu', ], ], 'osx' => [ 'name' => 'macOS', 'variants' => [ - 'osx-latest' => 'macOS Latest', + 'osx-homebrew' => 'Homebrew/Brew', + 'osx-homebrew-php' => 'Homebrew/Homebrew-PHP', + 'osx-macports' => 'MacPorts', ], ], 'windows' => [ 'name' => 'Windows', 'variants' => [ - 'windows-wsl' => 'Windows with WSL', - 'windows-normal' => 'Windows without WSL', + 'windows-native' => 'Windows Native Build', + 'windows-chocolatey' => 'Windows with Chocolatey', + 'windows-scoop' => 'Windows with Scoop', + 'windows-wsl-debian' => 'Windows with WSL/Debian', + 'windows-wsl-ubuntu' => 'Windows with WSL/Ubuntu', ], ], ]; $versions = [ - 'php84' => 'version 8.4', - 'php83' => 'version 8.3', - 'php82' => 'version 8.2', - 'php81' => 'version 8.1', + '8.4' => 'version 8.4', + '8.3' => 'version 8.3', + '8.2' => 'version 8.2', + '8.1' => 'version 8.1', 'default' => 'OS default version', ]; $defaults = [ 'os' => 'linux', - 'version' => 'php84', + 'version' => 'default', 'usage' => 'web', ]; @@ -160,26 +163,10 @@ function option(string $value, string $desc, $attributes = []): string- Binaries are available for - Microsoft Windows. The PHP project does not currently release binary packages - for other platforms such as Linux or macOS, but they are packaged by distributions - and other providers. For more information, see: - -
- ++ Binaries are available for + Microsoft Windows. The PHP project does not currently release binary packages + for other platforms such as Linux or macOS, but they are packaged by distributions + and other providers. For more information, see: + +
+ + + +