1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

datas of the php.ini for GD activation

Discussion in 'Plesk for Linux - 8.x and Older' started by bianco, Aug 22, 2008.

  1. bianco

    bianco Guest

    0
     
    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 siteplease 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
     
  2. Ragefast

    Ragefast Guest

    0
     
    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.
     
  3. Amin Taheri

    Amin Taheri Golden Pleskian Plesk Certified Professional

    33
     
    Joined:
    Jul 5, 2007
    Messages:
    1,398
    Likes Received:
    1
    Location:
    Seattle Area
    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.
     
Loading...