Enhancement #3058

Add PHP options to shared folders

Added by stephane de Labrusse over 6 years ago. Updated almost 5 years ago.

Status:CLOSEDStart date:
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:nethserver-phpsettings
Target version:NethServer 6 - v6.8
Resolution:REJECTED NEEDINFO:No

Description

Now php options are set for the whole server instead of specific Ibay like I would do it. Obviously with some phpadmin options in apache we could set individually the correct php settings.

I have done a pull request in Github just for nethserver-httpd and if the work can attract some interests, then we could start to make a Panel in nethgui

https://github.com/nethesis/nethserver-httpd/pull/3
https://github.com/stephdl/nethserver-phpsettings


Related issues

Related to NethServer 6 - Feature #3097: Allow .htaccess and write permissions overrides CLOSED
Related to NethForge - Task #3133: Validators needed in nethserver-phpsettings CLOSED

History

#1 Updated by Davide Principi over 6 years ago

  • Project changed from NethServer 6 to NethForge
  • Subject changed from Add some phpadmin options to nethserver-httpd {AllowUrlfOpen,MemoryLimit,UpMaxFileSize,PostMaxSize,MaxExecTime,MaxFileUploads} to Add PHP options to shared folders
  • Description updated (diff)
  • Category set to nethserver-phpsettings
  • Status changed from NEW to TRIAGED
  • % Done changed from 0 to 20

Moving this issue to NethForge to track Stephane's nethserver-phpsettings contrib.

Community discussion on
http://community.nethserver.org/t/create-a-new-sharedfolder-ui-plugin-for-web-settings/74

#2 Updated by Davide Principi over 6 years ago

  • Related to Feature #3097: Allow .htaccess and write permissions overrides added

#3 Updated by stephane de Labrusse over 6 years ago

  • Assignee set to stephane de Labrusse

with the version nethserver-phpsettings-1.0.0-3 now we can modify php settings directly in the apache configuration file of the ibay I mean : /etc/httpd/nethserver.d/IbayName.ibay

All directives are based on 'php_admin_value' and the properties are saved under the Ibay Key of the Accounts Database. Now a Tab exists in the Shared Folder of the Ibay

This is some examples of modified db

[root@nethserver-dev ~]# db accounts show piwigo 
piwigo=ibay
 ......
    PhpAllowUrlfOpen=disabled
    PhpMaxExecTime=120S
    PhpMaxFileUploads=100F
    PhpMemoryLimit=1700
    PhpPostMaxSize=1000
    PhpUpMaxFileSize=100

PhpMaxExecTime and PhpMaxFileUploads are set to 'disabled' when they use the default PHP values , else they have specific values with 'S' for seconds and 'F' for files

Since PhpMemoryLimit >= PhpPostMaxSize >= PhpUpMaxFileSize with Nethgui validators, if they use default PHP values, then their values equal '0' (zero) else other values are specified without units.

for PhpAllowUrlfOpen it is a particular case since I wanted to disable the directive AllowUrlfOpen so the normal state is 'enabled' and set if needed to 'disabled'

of course any remarks are welcome if I have not a conventional way to manage that

In order to test it the best way is the phpinfo in the root folder of an Ibay

[root@nethserver-dev ~]# cat /var/lib/nethserver/ibay/example/phpinfo.php 
<?php     
 phpinfo();     
?>

#4 Updated by Giacomo Sanchietti about 6 years ago

  • Related to Task #3133: Validators needed in nethserver-phpsettings added

#5 Updated by Giacomo Sanchietti about 6 years ago

  • Assignee deleted (stephane de Labrusse)
  • Target version deleted (v6.6)

#6 Updated by Davide Principi almost 5 years ago

  • Status changed from TRIAGED to CLOSED
  • % Done changed from 20 to 100
  • Resolution set to REJECTED

This feature will not be implemented in NS 6. If needed, please reopen it for NS 7.

#7 Updated by Davide Principi almost 5 years ago

  • Target version set to v6.8

Also available in: Atom PDF