www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Server-Side Development > Other

    Other Discussion and technical support for any other scripting methods.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 11-02-2009, 09:43 PM
    rpcarnell rpcarnell is offline
    Registered User
     
    Join Date: Feb 2005
    Location: Florida
    Posts: 203
    Created Directories not Writable

    I have a PHP script that creates directories when I run it.

    The permissions for each directory are always 777.

    But I cannot upload anything into those directories? How is that possible?

    I noticed the user:group for this directories is apache:apache.

    If I want to keep that user:group, what should I change? I haven't had this problem before because I always change the user group in the httpd.conf file to whatever I want.
    Reply With Quote
      #2  
    Old 11-09-2009, 05:47 PM
    opifex's Avatar
    opifex opifex is online now
    ignorance is curable...
     
    Join Date: Sep 2008
    Location: Mexico
    Posts: 693
    strange...
    what is the code you are using to create the directories and who is the "owner" of that file?
    __________________
    ...but stupidity is terminal.
    Reply With Quote
      #3  
    Old 11-09-2009, 10:09 PM
    rpcarnell rpcarnell is offline
    Registered User
     
    Join Date: Feb 2005
    Location: Florida
    Posts: 203
    Well, I should change the user and group in httpd.conf. Right now it is apache:apache.

    Unfortunately, I can't get access to it, no password, so I guess I'll have to find other ways around the problem.

    What puzzles me is that the server is not uploading pictures into a directory whose permissions are 777.
    Reply With Quote
      #4  
    Old 11-09-2009, 11:25 PM
    opifex's Avatar
    opifex opifex is online now
    ignorance is curable...
     
    Join Date: Sep 2008
    Location: Mexico
    Posts: 693
    chown()? chgrp()?
    again, please show the code that you used to create the folder... the problem might be there.
    __________________
    ...but stupidity is terminal.
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 08:05 AM.



    Acceptable Use Policy

    internet.comMediabistrojusttechjobs.comGraphics.com

    WebMediaBrands Corporate Info


    Advertise | Newsletters | Feedback | Submit News

    Legal Notices | Licensing | Permissions | Privacy Policy

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.