Zend Server GUI UMASK

General discussion forum for the Zend Server

Zend Server GUI UMASK

Postby chri8992 on Tue Mar 28, 2017 12:49 pm

Hi,

it is possible to change umask to 002 for updates on php.ini with zend server gui ?

thanks
chri8992
 
Posts: 5
Joined: Tue Mar 28, 2017 12:47 pm

Re: Zend Server GUI UMASK

Postby zend_eyalt on Tue Mar 28, 2017 1:45 pm

Zend Server GUI does not control file permissions of your php.ini , or umask settings in general. It does allow you though to set all php.ini ini directives.
User avatar
zend_eyalt
 
Posts: 234
Joined: Thu Jan 22, 2009 3:16 pm

Re: Zend Server GUI UMASK

Postby chri8992 on Tue Mar 28, 2017 2:38 pm

So i need to change umask for lighttpd service?
chri8992
 
Posts: 5
Joined: Tue Mar 28, 2017 12:47 pm

Re: Zend Server GUI UMASK

Postby zend_eyalt on Tue Mar 28, 2017 2:44 pm

Usually Zend Server should be agnostic to your umask settings.

Why do you need to change the umask ? Is some operation of Zend Server fails ? If so, could you provide some log errors ?
User avatar
zend_eyalt
 
Posts: 234
Joined: Thu Jan 22, 2009 3:16 pm

Re: Zend Server GUI UMASK

Postby chri8992 on Tue Mar 28, 2017 2:55 pm

long term to explain details but for security reasons we has only group access to files with group owner zend
chri8992
 
Posts: 5
Joined: Tue Mar 28, 2017 12:47 pm

Re: Zend Server GUI UMASK

Postby liorkaplan on Wed Mar 29, 2017 8:28 am

Hi,

Setting umask is useful when creating new files and wanting to control the files permissions in advance, but regarding php.ini - the file already exists.

Permissions wise, feel free to change the permissions of the file, these will only get "reset" on upgrades.

If you want the UI to work, make sure the user or group has write permissions to the file.
User avatar
liorkaplan
 
Posts: 106
Joined: Tue Jun 22, 2010 5:59 am

Re: Zend Server GUI UMASK

Postby chri8992 on Wed Mar 29, 2017 8:46 am

We use Zend-Server-8.5 (PHP 5.6.28 (cli) (built: Nov 13 2016 07:32:35)) with CentOS 7, and permisson for php.ini was changed after save settings under PHP > Extension > Resource Limits and Tuning > max_execution_time in Zend Server GUI.

Before:
-rw-rw-r--. 1 zend zend 72944 Mar 28 16:00 php.ini
After:
-rw-r--r--. 1 zend zend 72944 Mar 28 16:02 php.ini
chri8992
 
Posts: 5
Joined: Tue Mar 28, 2017 12:47 pm

Re: Zend Server GUI UMASK

Postby chri8992 on Wed Mar 29, 2017 8:49 am

You can check this also with docker (php-zendserver). Change permission for php.ini to group writeable and save custom values with gui.
chri8992
 
Posts: 5
Joined: Tue Mar 28, 2017 12:47 pm

Re: Zend Server GUI UMASK

Postby liorkaplan on Wed Mar 29, 2017 9:34 am

Hi,

Thanks for the fast response and detailed example. Will fix this behavior to keep the original file permissions.
User avatar
liorkaplan
 
Posts: 106
Joined: Tue Jun 22, 2010 5:59 am


Return to Zend Server

Who is online

Users browsing this forum: No registered users and 1 guest