Không enable được gd2 extension trong windows

Không enable được gd2 extension trong windows

Nội dung chính

  • Configure Apache Web Server for PHP 7.3
  • Related Topics
  • Vinish Kapoor
  • Read more articles
  • Current Stable PHP 8.1.10 (Changelog)
  • Old Stable PHP 8.0.23 (Changelog)
  • Old Stable PHP 7.4.30 (Changelog)
  • How do I run PHP 7.3 on Windows 10?
  • How do I download PHP 7.3 on Windows?
  • How do I install PHP on Windows 10?
  • How do I install PHP on Windows 10 latest version?

Here I am giving a step by step example to install PHP 7.3 on Windows 10. But before installing PHP you should install Apache Web Server and to know how to install Apache Web Server on Windows 10, please check the following link Install Apache on Windows 10.

Click on the following link to download PHP 7.3 for Windows and choose the VC15 x64 Thread Safe or VC15 x86 Thread Safe version.

Download PHP 7.3 for Windows

Now extract the ZIP file to a folder, for example, F:\php73.

Open the folder F:\php73 and locate the file php.ini-development and rename it to php.ini.

In the php.ini file, find and modify the extension_dir and set as the following: (Note: change the folder name to your PHP installation folder)

extension_dir = "F:/php73/ext"

Uncomment the following lines to enable.

extension=curl
extension=gd2
extension=mbstring
extension=mysql
extension=pdo_mysql
extension=xmlrpc

Add F:\php73 to the PATH variable in Windows by clicking on the My Computer > Properties > Advanced System Settings > Environment Variables as shown in the below image:

Configure Apache Web Server for PHP 7.3

Open the CONF folder in Apache Web Server installation folder and open the httpd.conf file. Then find and modify the DirectoryIndex as shown below:

DirectoryIndex index.php index.html

Add the following lines to the httpd.conf file:

PHPIniDir "F:/php73"
AddHandler application/x-httpd-php .php
LoadModule php7_module "F:/php73/php7apache2_4.dll"

Now restart the Apache server and test the PHP file. Create a PHP file and add the following line and save it as index.php in the htdocs folder in Apache installation directory.

<?php phpinfo(); ?>

Now double click the file to test. The output is as shown in the featured image of this article.

See also:

  • How to Install Apache Web Server on Windows 10
  • How to Install MySQL on Windows 10
  • Compress Image Before Upload using PHP
  • 10+ Programming Languages FizzBuzz Program Examples
  • Preventing SQL Injection in PHP
  • Using Reset Button in PHP to Reset the Form
  • Process Combo-Box Values Using PHP
  • How to Call PHP Script from a PHP Script?

Vinish Kapoor

An Oracle Apex Consultant, Oracle ACE, and founder of foxinfotech.in and orclqa.com a question and answer forum for developers.

Current Stable PHP 8.1.10 (Changelog)

  • php-8.1.10.tar.gz (sig) [19,283Kb] 01 Sep 2022 3ea4f323109dfbc8d2631d08aa0e08602c1f713678e9dc6c750f081ef49eab0f
  • php-8.1.10.tar.bz2 (sig) [15,052Kb] 01 Sep 2022 2de8e0402285f7c56887defe651922308aded58ba60befcf3b77720209e31f10
  • php-8.1.10.tar.xz (sig) [11,461Kb] 01 Sep 2022 90e7120c77ee83630e6ac928d23bc6396603d62d83a3cf5df8a450d2e3070162
  • Windows downloads

GPG Keys for PHP 8.1

Old Stable PHP 8.0.23 (Changelog)

  • php-8.0.23.tar.gz (sig) [17,106Kb] 01 Sep 2022 a2dd50e9c4a0328d921b6bc914e8b4e6572f94f09867318f88acca5ac4fa76c7
  • php-8.0.23.tar.bz2 (sig) [13,312Kb] 01 Sep 2022 1412db46800a45ced377c2892ec6261b3c412f13dc133bfc998cfb2f147b40cf
  • php-8.0.23.tar.xz (sig) [10,606Kb] 01 Sep 2022 65e474b6bd8cfc9d4a8a56268a755e2f9d3e7499e1687e6401a9f2b047600f87
  • Windows downloads

GPG Keys for PHP 8.0

Old Stable PHP 7.4.30 (Changelog)

  • php-7.4.30.tar.gz (sig) [16,471Kb] 09 Jun 2022 e37ea37e0f79109351ac615da85eb7c2c336101fc5bc802ee79a124a4310dc10
  • php-7.4.30.tar.bz2 (sig) [12,720Kb] 09 Jun 2022 b601bb12e53720469b60ea816776cac1c0696b09888a11ad2379b2eee835386e
  • php-7.4.30.tar.xz (sig) [10,175Kb] 09 Jun 2022 ea72a34f32c67e79ac2da7dfe96177f3c451c3eefae5810ba13312ed398ba70d
  • Windows downloads

GPG Keys for PHP 7.4


GPG Keys

The releases are tagged and signed in the PHP Git Repository. The following official GnuPG keys of the current PHP Release Manager can be used to verify the tags:

PHP 8.1

pub   2048R/31CBD89E 2016-12-08
      Key fingerprint = 5289 95BF EDFB A719 1D46  839E F9BA 0ADA 31CB D89E
uid                  Joe Watkins <>

pub   rsa4096 2021-04-26 [SC] [expires: 2025-11-24]
      39B6 4134 3D8C 104B 2B14  6DC3 F9C3 9DC0 B969 8544
uid           [ultimate] Ben Ramsey <>
sub   rsa4096 2021-04-26 [E] [expires: 2025-11-24]

pub   rsa4096 2021-04-01 [SC]
      F1F6 9223 8FBC 1666 E5A5  CCD4 199F 9DFE F6FF BAFD
uid           [ultimate] Patrick Allaert <>
sub   rsa4096 2021-04-01 [E]
  

PHP 8.0

pub   4096R/70D12172 2017-04-14 [expires: 2024-04-21]
      Key fingerprint = 1729 F839 38DA 44E2 7BA0  F4D3 DBDB 3974 70D1 2172
uid                  Sara Golemon <>

pub   rsa4096 2020-05-09 [SC] [expires: 2024-05-08]
      BFDD D286 4282 4F81 18EF  7790 9B67 A5C1 2229 118F
uid           [ultimate] Gabriel Caruso (Release Manager) <>
sub   rsa4096 2020-05-09 [E] [expires: 2024-05-08]
  

PHP 7.4

sec   rsa4096 2019-06-11 [SC] [expires: 2029-06-08]
      5A52880781F755608BF815FC910DEB46F53EA312
uid           [ultimate] Derick Rethans <>
uid           [ultimate] Derick Rethans <>
uid           [ultimate] Derick Rethans (GitHub) <>
uid           [ultimate] Derick Rethans (PHP) <>
ssb   rsa4096 2019-06-11 [E] [expires: 2029-06-08]

pub   rsa4096 2019-05-29 [SC] [expires: 2021-05-28]
      4267 0A7F E4D0 441C 8E46  3234 9E4F DC07 4A4E F02D
uid           [ultimate] Peter Kokot <>
sub   rsa4096 2019-05-29 [E] [expires: 2021-05-28]
  

A full list of GPG keys used for current and older releases is also available.

How do I run PHP 7.3 on Windows 10?

Steps to Install PHP 7.3 on Windows 10 PC Click on the following link to download PHP 7.3 for Windows and choose the VC15 x64 Thread Safe or VC15 x86 Thread Safe version. Now extract the ZIP file to a folder, for example, F:\php73. Open the folder F:\php73 and locate the file php. ini-development and rename it to php.

How do I download PHP 7.3 on Windows?

Save the downloaded file, php-7.3. 0-Win32-VC15-x64..

Go to the official Website for PHP at php.net..

Click the "downloads" links in top menu. You see the download page..

Click "Windows downloads". You see the PHP For Windows page..

How do I install PHP on Windows 10?

How to Install PHP.

Step 1: Download the PHP files. You'll need the PHP Windows installer. ... .

Step 2: Extract the files. ... .

Step 3: Configure php. ... .

Step 4: Add C:\php to the path environment variable. ... .

Step 5: Configure PHP as an Apache module. ... .

Step 6: Test a PHP file..

How do I install PHP on Windows 10 latest version?

Follow the below steps to install PHP on Windows: Step 1: Visit https://www.php.net/ website using any web browser and click on Downloads. Step 2: Click on the Windows “Downloads” button. Step 3: The new webpage has different options, choose the Thread safe version, and click on the zip button and Download it.