• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

datas of the php.ini for GD activation

B

bianco

Guest
Hello,

I m newbie, I have dedibox with plesk 8.6 licence 100 domains name, I instal iGallerie yesterday but I don't have little image create with GD...

I would like to see my php.ini but i can't see it or the datas in it and i would like to see if gd is activate or not and I want to activate magic_quotes_runtime.

I type :

root@servidor:~# locate php.ini
/etc/php4/apache2/php.ini
/etc/php4/apache2/php.ini.save
/etc/php4/apache2/php.ini.saved_by_psa
/etc/php4/apache2/php.ini.saved_by_psa.08.19;19:26
/etc/php4/cli/php.ini
/etc/php4/cli/php.ini.saved_by_psa
/etc/php4/cli/php.ini.saved_by_psa.08.19;19:26
/etc/php.ini.save
/usr/share/doc/php4-common/examples/php.ini-dist
/usr/share/doc/php4-common/examples/php.ini-paranoid
/usr/share/doc/php4-common/examples/php.ini-recommended
/usr/share/php4/php.ini-dist

in my ssh console and

root@servidor:~# vi /etc/php4/apache2/php.ini
PHP:
;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHP installations.
; By default, PHP installs itself with a configuration suitable for
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should be taken
; before going online with your site, please consult php.ini-recommended
; and http://php.net/manual/en/security.php.


;;;;;;;;;;;;;;;;;;;
; About this file ;
;;;;;;;;;;;;;;;;;;;
; This file controls many aspects of PHP's behavior.  In order for PHP to
; read it, it must be named 'php.ini'.  PHP looks for it in the current
; working directory, in the path designated by the environment variable
; PHPRC, and in the path that was defined in compile time (in that order).
; Under Windows, the compile-time path is the Windows directory.  The
; path in which the php.ini file is looked for can be overridden using
; the -c argument in command line mode.
;
/etc/php4/apache2/php.ini: unmodified: line 1

I have the same datas in the differents php.ini files located ...

Where can i find the php.ini file with apache datas configuration in it?

Here is a myphpinfo for the domain where i want to install Igallerie, maybe it can help?
http://www.weissdaniel.com/phpinfo.php

Thanks
 
Hello,

From what your phpinfo tells me, you already have GD support enabled in php:

GD Support enabled
GD Version 2.0 or higher


As for magic_quotes_runtime, edit your php.ini (/etc/php4/apache2/php.ini), locate the 'magic_quotes_runtime = Off' and change it to On, save, and issue an 'apachectl graceful' or reload apache from Plesk services panel.

And more importantly, REMEMBER to create a BACKUP before changing anything, especially PHP.INI!

Cheers.
 
Also, in your phpinfo page, look for "Configuration File (php.ini) Path " - its in the top most table, third or fourth row typically.

It will tell you where your php.ini file is located so you dont have to guess. In your case, it is /etc/php4/apache2/php.ini as Ragefast mentioned - and as he mentioned GD module is present and enabled in your php.
 
Back
Top