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

Editing php.ini file

Discussion in 'Plesk 11.x for Linux' started by stokiesteiner, Sep 10, 2012.

  1. stokiesteiner

    stokiesteiner New Pleskian

    10
    35%
    Joined:
    Sep 10, 2012
    Messages:
    5
    Likes Received:
    0
    Everytime I try and change the php.ini file i get this error

    Error: Unable to edit file //etc/php.ini: filemng: Error occurred during /bin/cp command.

    could this be a problem permissions?

    any advice any one?
     
    Last edited: Sep 10, 2012
  2. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    How are you editing this file? through SHELL?
     
  3. stokiesteiner

    stokiesteiner New Pleskian

    10
    35%
    Joined:
    Sep 10, 2012
    Messages:
    5
    Likes Received:
    0
    i have tried editing the file through the file manger in plesk, and also downloaded it edited the file and uploaded it
     
  4. abdi

    abdi Platinum Pleskian

    31
    18%
    Joined:
    May 14, 2006
    Messages:
    2,913
    Likes Received:
    60
    File Manager? Am not sure there is a way you can edit that /etc/php.ini in file manager. However your perhaps are talking about the individual php settings for a domain name.

    If you wish to edit /etc/php.ini then you MUST use SHELL
     
  5. stokiesteiner

    stokiesteiner New Pleskian

    10
    35%
    Joined:
    Sep 10, 2012
    Messages:
    5
    Likes Received:
    0
    I have tried using shell, but it says that i dont have the necessary permissions.

    I thought i had full permissions seeing as its my server and im the admin, dont suppose you know which permissions i need?
     
  6. EugeneKazakov

    EugeneKazakov Basic Pleskian Staff Member

    19
     
    Joined:
    Aug 22, 2012
    Messages:
    99
    Likes Received:
    7
    Only root is allowed to edit /etc/php.ini file.

    If you try to edit /etc/php.ini using build-in filemanager, then you realy open the file /var/www/vhosts/<your-domain>/etc/php.ini
    Anyway it could be modified by root only too.
     
  7. stokiesteiner

    stokiesteiner New Pleskian

    10
    35%
    Joined:
    Sep 10, 2012
    Messages:
    5
    Likes Received:
    0
    i have tried logging in as root, but it just shows up as my normal user :S

    could it be possible to cheat and make a user account called root and try editing it?
     
  8. stokiesteiner

    stokiesteiner New Pleskian

    10
    35%
    Joined:
    Sep 10, 2012
    Messages:
    5
    Likes Received:
    0
    no it didnt lol
     
  9. EugeneKazakov

    EugeneKazakov Basic Pleskian Staff Member

    19
     
    Joined:
    Aug 22, 2012
    Messages:
    99
    Likes Received:
    7
    The only way to modify server-wide settings in /etc/php.ini is to login in shell by root.
    Possibly you should ask server owner for it.
     
  10. NawazM

    NawazM New Pleskian

    6
     
    Joined:
    Feb 18, 2014
    Messages:
    1
    Likes Received:
    0
    I've root access to SHELL, and I can see php.ini file at <DOMAIN>/etc/php.ini

    How can change some config values in php.ini using SHELL?
     
  11. EugeneKazakov

    EugeneKazakov Basic Pleskian Staff Member

    19
     
    Joined:
    Aug 22, 2012
    Messages:
    99
    Likes Received:
    7
    In Plesk 11.5 file /var/www/vhosts/<your-domain>/etc/php.ini was moved to /var/www/vhosts/system/<your-domain>/etc/php.ini
     
Loading...