@@ -83,35 +83,67 @@ sudo LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
8383wait_for_apt_lock
8484sudo apt-get update -y
8585
86- # Install PHP with selected extensions
86+ # Install PHP with required extensions
87+ #
88+ # Core:
89+ # - fpm: FastCGI Process Manager
90+ # - cli: Command Line Interface
91+ #
92+ # Common:
93+ # - bcmath: Precise mathematical operations
94+ # - curl: HTTP requests support
95+ # - mbstring: Multibyte string handling
96+ # - intl: Internationalization support
97+ # - xml: XML parsing and generation
98+ # - zip: ZIP archive handling
99+ #
100+ # Database:
101+ # - mysql: MySQL/MariaDB database driver
102+ # - sqlite3: SQLite database driver
103+ # - pgsql: PostgreSQL database driver
104+ #
105+ # Image Processing:
106+ # - gd: Image creation and manipulation
107+ # - imagick: ImageMagick integration for advanced image processing
108+ #
109+ # Caching & Serialization:
110+ # - igbinary: Efficient data serialization
111+ # - memcached: Memcached caching system integration
112+ # - redis: Redis caching system integration
113+ #
114+ # Development & Testing:
115+ # - xdebug: Debugging and profiling tool
116+ # - pcov: Efficient PHP code coverage tool
87117info " Installing PHP and extensions...\n"
88- sudo apt-get install -y php $PHP_VERSION -fpm \
89- php$PHP_VERSION -bcmath \
118+ sudo apt-get install -y zip unzip \
119+ php$PHP_VERSION -fpm \
90120 php$PHP_VERSION -cli \
91- php$PHP_VERSION -common \
121+ php$PHP_VERSION -bcmath \
92122 php$PHP_VERSION -curl \
93- php$PHP_VERSION -dev \
123+ php$PHP_VERSION -mbstring \
124+ php$PHP_VERSION -intl \
125+ php$PHP_VERSION -xml \
126+ php$PHP_VERSION -zip \
127+ php$PHP_VERSION -mysql \
128+ php$PHP_VERSION -sqlite3 \
129+ php$PHP_VERSION -pgsql \
94130 php$PHP_VERSION -gd \
95- php$PHP_VERSION -igbinary \
96131 php$PHP_VERSION -imagick \
132+ php$PHP_VERSION -igbinary \
133+ php$PHP_VERSION -memcached \
134+ php$PHP_VERSION -redis \
135+ php$PHP_VERSION -xdebug \
136+ php$PHP_VERSION -pcov
137+
138+ # Install Laravel required extensions
139+ info " Installing extensions required by Laravel...\n"
140+ sudo apt-get install -y openssl \
97141 php$PHP_VERSION -imap \
98- php$PHP_VERSION -intl \
99142 php$PHP_VERSION -ldap \
100- php$PHP_VERSION -mbstring \
101- php$PHP_VERSION -memcached \
102143 php$PHP_VERSION -msgpack \
103- php$PHP_VERSION -mysql \
104- php$PHP_VERSION -pcov \
105- php$PHP_VERSION -pgsql \
106144 php$PHP_VERSION -readline \
107- php$PHP_VERSION -redis \
108145 php$PHP_VERSION -soap \
109- php$PHP_VERSION -sqlite3 \
110- php$PHP_VERSION -swoole \
111- php$PHP_VERSION -xdebug \
112- php$PHP_VERSION -xml \
113- php$PHP_VERSION -zip \
114- zip unzip openssl
146+ php$PHP_VERSION -swoole
115147
116148# Switch system's default PHP to the newly installed version
117149sudo update-alternatives --set php /usr/bin/php$PHP_VERSION
0 commit comments