Skip to main content

Problem with "home" directory in PHP 5.4

Comments

4 comments

  • cPanelMichael
    [quote="fickany, post: 1558961">Personally, I would use php.ini with each user, but I could not find any recent and working instruction.
    You can simply upload a copy of /usr/local/lib/php.ini to the account's public_html directory and modify it for the individual account. Or, do you mean there is a specific value you want to edit with PHP 5.4? Thank you.
    0
  • fickany
    [quote="cPanelMichael, post: 1559152">You can simply upload a copy of /usr/local/lib/php.ini to the account's public_html directory and modify it for the individual account. Or, do you mean there is a specific value you want to edit with PHP 5.4? Thank you.
    I understand what you wrote and thank you for your answer, but I wouldn"t like the users to be able to change their php.ini files, therefore I would store them separately in another directory. (ie. /home/inis/user1.ini, /home/inis/user2.ini etc.) This would be important specifically because of open_basedir, that is, it would be blocked on a user basis (separately for every user) in their own ini file. (For example /home/user1 -> open_basedir = "/home/user1"). And if any user"s values have to be changed, then I could modify them separately for that user, independently from the others.
    0
  • ThinIce
    Have a look at this thread:
    0
  • fickany
    All right, but how can I manage this at the os level?
    0

Please sign in to leave a comment.