File tree Expand file tree Collapse file tree 1 file changed +52
-2
lines changed Expand file tree Collapse file tree 1 file changed +52
-2
lines changed Original file line number Diff line number Diff line change 3
3
#!/bin/bash
4
4
sudo apt update && \
5
5
sudo apt dist-upgrade && \
6
- sudo apt install build-essential autoconf libtool bison re2c pkg-config libxml2-dev libssl-dev && \
6
+ sudo apt install \
7
+ build-essential \
8
+ autoconf \
9
+ libtool \
10
+ bison \
11
+ re2c \
12
+ pkg-config \
13
+ libsqlite3-dev \
14
+ libpq-dev \
15
+ libonig-dev \
16
+ libfcgi-dev \
17
+ libfcgi0ldbl \
18
+ libjpeg-dev \
19
+ libpng-dev \
20
+ libssl-dev \
21
+ libxml2-dev \
22
+ libcurl4-openssl-dev \
23
+ libxpm-dev \
24
+ libgd-dev \
25
+ libmysqlclient-dev \
26
+ libfreetype6-dev \
27
+ libxslt1-dev \
28
+ libpspell-dev \
29
+ libzip-dev \
30
+ libgccjit-10-dev && \
7
31
git clone https://github.com/php/php-src.git --depth=1 && \
8
32
cd php-src && \
9
33
./buildconf && \
10
- ./configure --with-readline --enable-ftp --with-openssl --disable-phar && \
34
+ sudo ./configure \
35
+ --prefix=/opt/php/php8 \
36
+ --enable-cli \
37
+ --enable-fpm \
38
+ --enable-intl \
39
+ --enable-mbstring \
40
+ --enable-opcache \
41
+ --enable-sockets \
42
+ --enable-soap \
43
+ --with-curl \
44
+ --with-freetype \
45
+ --with-fpm-user=www-data \
46
+ --with-fpm-group=www-data \
47
+ --with-jpeg \
48
+ --with-mysql-sock \
49
+ --with-mysqli \
50
+ --with-openssl \
51
+ --with-pdo-mysql \
52
+ --with-pgsql \
53
+ --with-xsl \
54
+ --with-zlib && \
11
55
make -j4 && \
12
56
./sapi/cli/php -v
13
57
```
58
+
59
+ ## Notes
60
+ ## View all options
61
+ ```
62
+ ./configure --help
63
+ ```
You can’t perform that action at this time.
0 commit comments