Skip to content

Commit eb5fa10

Browse files
author
S. M. AMRAN
authored
Update building-php-linux.md
1 parent 536f278 commit eb5fa10

File tree

1 file changed

+52
-2
lines changed

1 file changed

+52
-2
lines changed

building-php-linux.md

Lines changed: 52 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,61 @@
33
#!/bin/bash
44
sudo apt update && \
55
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 && \
731
git clone https://github.com/php/php-src.git --depth=1 && \
832
cd php-src && \
933
./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 && \
1155
make -j4 && \
1256
./sapi/cli/php -v
1357
```
58+
59+
## Notes
60+
## View all options
61+
```
62+
./configure --help
63+
```

0 commit comments

Comments
 (0)