Ability to set PHP Selector php-alt default php.ini settings permenantly ?
Forum
  1. Forums
  2. General
  3. General Discussion
  1. Richard Hordern
  2. 06.12.2012
  3.  Subscribe via email
Hello,

Does the latest PHP Selector new stable release allow us to set default php.ini options so that they are not lost when php-alt versions are upd ated ?

I want to change (increase) the default max execution time, the max memory usage, the max upload size etc. for all clients. I want them to match the native php.ini se ttings.

If so what files should I edit to do this ?

Should I edit :

/etc/cl.php.d/alt-phpXX/alt_php.ini

Or

Create a new file in /opt/alt/phpXX/etc/php.d.all/

like for instance  /opt/alt/php53/etc/php.d.all/mydefaults.ini

?
Rate this post:
  1. 06.12.2012 10:12:24
  2. # 1
Igor Seletskiy Accepted Answer
Posts: 1201
Joined: 09.02.2010
0
Votes
Undo
This files can be regenerated. Support for custom php.ini will be available in CageFS 4.1, due by the end of this year.
  1. 06.12.2012 10:12:12
  2. # 2
Richard Hordern Accepted Answer
Posts: 219
Joined: 19.03.2011
0
Votes
Undo
A member of your support team told me the next beta version would include the ability to set php.ini default settings and that the next beta should be in a few weeks.

Knowing how fast CloudLinux is at getting new features implemented I was hopeing that this stable release already had this ability.

Do you have any suggestions about how to get around this limitation while waiting for the new version ?

Should I add php* to my yum.conf exclude line and run php-alt updates manually so I can check the php.ini files contain the right settings ?
  1. 06.12.2012 10:12:35
  2. # 3
Igor Seletskiy Accepted Answer
Posts: 1201
Joined: 09.02.2010
0
Votes
Undo
I am sorry -- if you want to change it for everyone -- you can do it now.
Individual customer php.ini files cannot be changed at this moment.

See more details here:http://docs.cloudlinux.com/index.html?command_line_tools3.html

under: Individual PHP.ini files section
  1. 06.12.2012 10:12:39
  2. # 4
Richard Hordern Accepted Answer
Posts: 219
Joined: 19.03.2011
0
Votes
Undo
Will these files be regenerated on php-alt updates ? Or will they stay put ?
  1. 06.12.2012 10:12:11
  2. # 5
Igor Seletskiy Accepted Answer
Posts: 1201
Joined: 09.02.2010
0
Votes
Undo
the files you will create will not be overwritten.
  1. 06.12.2012 12:12:16
  2. # 6
Richard Hordern Accepted Answer
Posts: 219
Joined: 19.03.2011
0
Votes
Undo
What about the /etc/cl.php.d/alt-phpXX/alt_php.ini  files ? Will they be overwritten or sould I only create files in /opt/alt/phpXX/etc/php.d.all/  ?
  1. 07.12.2012 04:12:25
  2. # 7
Richard Hordern Accepted Answer
Posts: 219
Joined: 19.03.2011
0
Votes
Undo
Sorry if my question wasn't clear because of a wrong path…


The default php.ini files seem to be located here :

/opt/alt/phpXX/etc/php.ini

If I add a file named mydefaults.ini to /opt/alt/phpXX/etc/php.d.all/ 

And add the following settings to it :

memory_limit = 512M
max_execution_time = 180
max_input_time = 220
upload_max_filesize = 512M

These settings already exist in /opt/alt/phpXX/etc/php.ini

Will it cause any problems having these settings in both php.ini and php.d.all/ mydefaults.ini ? Or should I edit directy /opt/alt/phpXX/etc/php.ini ?

In which cas will this file be remplaced on the next php-alt update ?
  1. 07.12.2012 09:12:01
  2. # 8
Anton Volkov Accepted Answer
Posts: 47
Joined: 03.04.2012
0
Votes
Undo
Hello Richard!

I am sorry for wrong answer in support system.

Our php.ini files (/opt/alt/phpXX/etc/php.ini) are never being replaced on upd ate of alt-php packages.
You can edit these files directly in order to add or change some se ttings.
After changing of php.ini you do not need to execute \"cagefsctl --update\" in order to apply changes to CageFS.
Changes are applied at once (right after the change).

ini files for modules apc, eaccelerator, xcache are never being replaced on update of the alt-php package too.
You can edit these files here:
/opt/alt/phpXX/etc/http://php.d.all/apc.ini
/opt/alt/phpXX/etc/http://php.d.all/eaccelerator.ini
/opt/alt/phpXX/etc/http://php.d.all/xcache.ini

You should execute
cagefsctl --rebuild-alt-php-ini
in order to apply changes to all users in CageFS
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.