PHP refuses to set a certain permission.

2013-01-10  Source: Original Site  Category:PHP  Views:1 


I have PHP make a directory in a directory that has full permissions to the php/apache user/group.

I have this directory made with permissions of 0770. Meaning full rwxrwx--- for user and group 'apache'.

However, when the directory is made, it is made with permissions of rwxr-x---. It appears to drop the 'write' permission for the group!

This is really upsetting, because I have to then go in via root and chmod all the time when I need to get into that directoryto write to it from a user that is ALSO pat of the apache group.

Any suggestions? I also tried the PHP chmod funtions, but it still refuses to set that write permission for the group category.

This is on YDL 2.1 Linux, PHP 4.0.6, Apache

Related articles
  • PHP refuses to set a certain permission. 2013-01-10

    I have PHP make a directory in a directory that has full permissions to the php/apache user/group. I have this directory made with permissions of 0770. Meaning full rwxrwx--- for user and group 'apache'. However, when the directory is made, it is mad

  • Ubuntu Running php files without setting read/write permission? 2013-12-12

    On an Apache2 server someone else setup, I have a folder with drwx--x--x permission and the php file can still write in the folder. But on my own setup, I need to set the same folder to drwx--x-wx. Inside the folder, I have a index.php that runs just

  • jQuery Refused to set unsafe header "Connection" in Safari 2014-11-03

    I get this error in Safari when using AJAX.getJSON(): "Refused to set unsafe header 'Connection'" The odd thing is that I only get this error on certain machines and they are all running the same version of safari. Any Ideas? -Penobscot

  • Setting Full access permission to a directory 2012-01-12

    Can I have a code sample for setting full access permission for all users to a directory while its creation

  • PHP vars getting set in JS section 2013-12-21

    I am trying to initialize a PHP variable inside my JS section of my form. Although I am runnng Firefox, the var 'php_category_cbo_width' is getting set inside the opera if statement below. This does not make any sense to me - I thought I could set so

  • Refused to set unsafe header "Connection" 2014-10-16

    I cant work out why I am getting this in Safari 4 and there doesnt seem to be anything around on google about it? Any help would be massively appreciated on this. Safri error console tells me Refused to set unsafe header "Connection" from my ajax cal

  • PHP module that run at certain interval 2013-11-12

    I am looking to develope a PHP module that would read XML file at certain interval automatically . How can I develope this code can run automatically without being called by some other program. OR Do I need to develop a some other code like Java Scri

  • Ubuntu setting up icecast2 permission problem 2014-03-21

    I'm trying to setup icecast2 so that I can stream music from MPD to other computers in my local network. I have MPD all setup, but I'm having trouble getting icecast to work. I believe its a permission problem. I've been trying to follow this tutoria

  • PHP 5 OOP / set question 2014-04-01

    I want to make a public class function that receive parameter but that parameter can only contain certains values. In Delphi I would define a custom Type (or even a set) and would set this parameter to that Type. This will ensure that the class user

  • Facebook Graph API, PHP ZipArchive Class, Setting Permissions Remotely on Windows 2015-05-05

    Facebook Graph API I recently discovered and it seems like whenever I try to access my data I get no data but I can access some other peoples feeds through this way as well as some facebook pages feeds

  • PHP can't set max_allowed_packet beyond 16MB 2012-04-16

    I've already changed the c:\xampp\mysql\bin\my.cnf and set max_allowed_packet to 16 MB, and everything worked fine then I set it to 32 MB but thereĀ“s no way I can handle a file bigger than 16 MB I get the following error: 'MySQL server has gone away'

  • PHP variable supernaturally set, help! 2012-06-27

    print_r("From index.php 20: $prefix: stateXML = $stateXML<P>"); foreach (array('state', 'country') as $prefix) { print_r("From index.php 21: stateXML = $stateXML<P>"); ${$prefix . 'XML'} = $this->getXML($prefix . '.xml'); } I have neve

  • PHP will not set correct permissions 2012-08-27

    I just had a relatively new install of PHP on my linux 7.3 box running plesk5 for vhosting. I can mod any of the root files cause I own the server. I am assuming this is a setting I will have to fix. When I try to create a folder using a php script,

  • PHP-MySQL Result Set Truncated in HTML 2013-01-23

    There is a truncation error of my Web Application using PHP 5.04, MySQL 5.022, and HTML(IE 6.0) whereby the MySQL Result Set is being truncated on the HTML page, even though the CSS Div Page Height is set to 'auto' which is supposed to grow the HTML

  • PHP value not set to NULL when the last column is empty(with LOAD DATA) 2013-03-04

    I had developed a database in MS Access.Now I have ported it into MySQl.It has only one table.Only few rows in the last column have data(only in 8 rows out of 900). When I ported it into MySQL, though I have assigned default value as NULL for the las

  • How (or Can I) Set a certain page to load at set times? 2013-04-14

    I am looking for a script that can set certain pages to load at certain times based on the browsers CPU clock. i.e. I am creating an online ordering form for a local cafe/sandwich shop I work for and he wants one form to load during business hours th

  • Hide elements with jQuery if PHP session is set 2013-09-02

    I've got this piece of code that should work if session is set (check.php), but for some reason it doesn't, so can someone explain to me what I'm I doing wrong here? In addition, if there's another way to call javascript code from PHP rather than ech

  • PHP Annoying Character Set Error 2013-09-18

    I've just installed PHP 4.4.2 and MySQL 5 on a Windows XP development machine. I've installed a sample php script to download a blob file from a database. Although everything seems to work correctly, I am getting the following error: "File 'c:\mysql\

  • PHP Printer: Can set margin? 2013-10-03

    I wonder can we use the printer function in php to set margin? Instead of having user to set the margin under File->Page Setup.

  • PHP Session not set first time 2013-11-02

    fellow developers. I've got some weird issue that I really need to get my head around. I have a registration page and when a user hits submit I send it to a processing page to validate and then back to the registration page with the results. On the r