Enable GD support in PHP

I am trying to install pixelpost on an Apache server on windows. The installer does not work because:

Pixelpost will not work if your PHP installation is not compiled using GD.

I added the following line in php.ini

extension=php_gd2.dll

But I still get the same error message. When I run phpinfo(), I do not see a link to GD, so I think this is not really installed. I searched php_gd2.dlland was in a subfolder of extmy PHP root directory.

I don't know anything about PHP, so be careful with me.

Update

To answer the questions raised in the comments:

  • I restarted Apache after changing php.ini
  • php.ini located in the root directory of my PHP installation C:\php\php.ini

+3
source share
1 answer

php ( MS-Windows):

  • ( ) [ (/) (\); , .
    • : extension_dir = c:/php5/ext
  • , php php.ini, php.ini php.
    • php.ini phpinfo(), . , INSTALL php root.
  • apache, php apache
+6

Source: https://habr.com/ru/post/1784512/


All Articles