Skip to content

Commit e2f5a60

Browse files
committed
Update comments
Added PHP 8.2.7 Signed-off-by: Teddysun <[email protected]>
1 parent 4a7ce51 commit e2f5a60

File tree

6 files changed

+22
-11
lines changed

6 files changed

+22
-11
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
- Apache-2.4 (Include HTTP/2 module: [nghttp2](https://github.com/nghttp2/nghttp2), [mod_http2](https://httpd.apache.org/docs/2.4/mod/mod_http2.html))
4444
- Apache Additional Modules: [mod_wsgi](https://github.com/GrahamDumpleton/mod_wsgi), [mod_security](https://github.com/SpiderLabs/ModSecurity), [mod_jk](https://tomcat.apache.org/download-connectors.cgi)
4545
- MySQL-5.7, MySQL-8.0, MariaDB-10.3, MariaDB-10.4, MariaDB-10.5, MariaDB-10.6, MariaDB-10.11
46-
- PHP-7.4, PHP-8.0, PHP-8.1
46+
- PHP-7.4, PHP-8.0, PHP-8.1, PHP-8.2
4747
- PHP Additional extensions: [Zend OPcache](https://www.php.net/manual/en/book.opcache.php), [ionCube Loader](https://www.ioncube.com/loaders.php), [PDFlib](https://www.pdflib.com/), [APCu](https://pecl.php.net/package/APCu), [imagick](https://pecl.php.net/package/imagick), [libsodium](https://github.com/jedisct1/libsodium-php), [memcached](https://github.com/php-memcached-dev/php-memcached), [redis](https://github.com/phpredis/phpredis), [mongodb](https://pecl.php.net/package/mongodb), [swoole](https://github.com/swoole/swoole-src), [yaf](https://github.com/laruence/yaf), [yar](https://github.com/laruence/yar), [msgpack](https://pecl.php.net/package/msgpack), [psr](https://github.com/jbboehr/php-psr), [phalcon](https://github.com/phalcon/cphalcon), [grpc](https://github.com/grpc/grpc), [xdebug](https://github.com/xdebug/xdebug)
4848
- Other Software: [OpenSSL](https://github.com/openssl/openssl), [ImageMagick](https://github.com/ImageMagick/ImageMagick), [Memcached](https://github.com/memcached/memcached), [phpMyAdmin](https://github.com/phpmyadmin/phpmyadmin), [Adminer](https://github.com/vrana/adminer), [Redis](https://github.com/redis/redis), [re2c](https://github.com/skvadrik/re2c), [KodExplorer](https://github.com/kalcaddle/KodExplorer)
4949

@@ -67,8 +67,8 @@
6767

6868
| PHP & Additional extensions | Version |
6969
|-------------------------------|-----------------------------------------------------------|
70-
| PHP | 7.4.33, 8.0.29, 8.1.20 |
71-
| ionCube Loader | 12.0.2 |
70+
| PHP | 7.4.33, 8.0.29, 8.1.20, 8.2.7 |
71+
| ionCube Loader | 12.0.5 |
7272
| PDFlib | 10.0.0 |
7373
| APCu extension | 5.1.21 |
7474
| gRPC extension | 1.45.0 |
@@ -102,7 +102,7 @@
102102

103103
## Installation
104104

105-
- If your server system: Amazon Linux 2/CentOS/Rocky Linux
105+
- If your server system: Amazon Linux 2/CentOS/Rocky Linux/AlmaLinux
106106
```bash
107107
yum -y install wget git
108108
git clone https://github.com/teddysun/lamp.git

include/config.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ php8_0_filename_url="https://www.php.net/distributions/php-8.0.29.tar.gz"
6565
#php8.1
6666
php8_1_filename="php-8.1.20"
6767
php8_1_filename_url="https://www.php.net/distributions/php-8.1.20.tar.gz"
68+
#php8.2
69+
php8_2_filename="php-8.2.7"
70+
php8_2_filename_url="https://www.php.net/distributions/php-8.2.7.tar.gz"
6871
#phpMyAdmin
6972
phpmyadmin_filename="phpMyAdmin-5.2.1-all-languages"
7073
phpmyadmin_filename_url="https://files.phpmyadmin.net/phpMyAdmin/5.2.1/phpMyAdmin-5.2.1-all-languages.tar.gz"
@@ -227,6 +230,7 @@ php_arr=(
227230
${php7_4_filename}
228231
${php8_0_filename}
229232
${php8_1_filename}
233+
${php8_2_filename}
230234
do_not_install
231235
)
232236

include/php-modules.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,13 @@ php_modules_preinstall_settings(){
2020
echo
2121
echo "${php} available modules:"
2222
# Delete some modules (PHP 8 not support now) & change some module version
23-
if [[ "${php}" =~ ^php-8.[0-1].+$ ]]; then
23+
if [[ "${php}" =~ ^php-8.[0-2].+$ ]]; then
2424
php_modules_arr=(${php_modules_arr[@]#${php_memcached_filename}})
2525
fi
26-
if [[ "${php}" =~ ^php-8.0.+$ ]]; then
26+
if [[ "${php}" =~ ^php-8.[0|2].+$ ]]; then
2727
php_modules_arr=(${php_modules_arr[@]#${ionCube_filename}})
2828
fi
29-
if [[ "${php}" =~ ^php-8.1.+$ ]]; then
29+
if [[ "${php}" =~ ^php-8.[1-2].+$ ]]; then
3030
php_modules_arr=(${php_modules_arr[@]#${phalcon_filename}})
3131
php_modules_arr=(${php_modules_arr[@]#${php_libsodium_filename}})
3232
fi

include/php.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ php_preinstall_settings(){
1616
if [ "${apache}" == "do_not_install" ]; then
1717
php="do_not_install"
1818
else
19-
display_menu php 1
19+
display_menu php 3
2020
fi
2121
}
2222

@@ -108,6 +108,10 @@ install_php(){
108108
download_file "${php8_1_filename}.tar.gz" "${php8_1_filename_url}"
109109
tar zxf ${php8_1_filename}.tar.gz
110110
cd ${php8_1_filename}
111+
elif [ "${php}" == "${php8_2_filename}" ]; then
112+
download_file "${php8_2_filename}.tar.gz" "${php8_2_filename_url}"
113+
tar zxf ${php8_2_filename}.tar.gz
114+
cd ${php8_2_filename}
111115
fi
112116

113117
if ! grep -q -w -E "^/usr/local/lib64" /etc/ld.so.conf.d/*.conf && [ -d "/usr/local/lib64" ]; then

include/upgrade_php.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ upgrade_php(){
4141
8.1)
4242
latest_php="$(curl -4s https://www.php.net/downloads.php | awk '/Changelog/{print $2}' | grep '8.1')"
4343
;;
44+
8.2)
45+
latest_php="$(curl -4s https://www.php.net/downloads.php | awk '/Changelog/{print $2}' | grep '8.2')"
46+
;;
4447
*)
4548
# do nothing
4649
esac

lamp.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,13 @@ set_parameters(){
209209
[ -z "${php_modules_install}" ] && php_modules_install="do_not_install"
210210
[ "${php}" == "do_not_install" ] && php_modules_install="do_not_install"
211211
if [ -n "${php_modules_install}" ]; then
212-
if [[ "${php}" =~ ^php-8.[0-1].+$ ]]; then
212+
if [[ "${php}" =~ ^php-8.[0-2].+$ ]]; then
213213
if_in_array "${php_memcached_filename}" "${php_modules_install}" && _error "${php_memcached_filename} is not support ${php} now, please remove php extension: memcached"
214214
fi
215-
if [[ "${php}" =~ ^php-8.0.+$ ]]; then
215+
if [[ "${php}" =~ ^php-8.[0|2].+$ ]]; then
216216
if_in_array "${ionCube_filename}" "${php_modules_install}" && _error "${ionCube_filename} is not support ${php} now, please remove php extension: ioncube"
217217
fi
218-
if [[ "${php}" =~ ^php-8.1.+$ ]]; then
218+
if [[ "${php}" =~ ^php-8.[1-2].+$ ]]; then
219219
if_in_array "${phalcon_filename}" "${php_modules_install}" && _error "${phalcon_filename} is not support ${php} now, please remove php extension: phalcon"
220220
if_in_array "${php_libsodium_filename}" "${php_modules_install}" && _error "${php_libsodium_filename} is not support ${php} now, please remove php extension: libsodium"
221221
fi

0 commit comments

Comments
 (0)