• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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