[Read / Write] Permission for Apache

Discussion in 'Apache' started by Polizel, Jun 13, 2010.

  1. #1
    Hello EveryOne,
    I am just a beginner in PHP i'm using WAMP server with Apache for my development machine. I am running Windows 7. When i try to modify a file it simply doesn't do it (PHP Script) i watched a video and then i knew that i have to make Apache user the owner of file and give it read/write access to the file but i dont know how to do it, i know how to do it in Mac OS X, but can't figure out how it can be done on windows. I heard from somewhere that i might have to use PowerShell but dont know how to do this:
    How to know which user acpache is running as | equivalent to Mac's "ps aux | grep httpd
    change owner of file to apache user | equivalent to Mac's chown
    modify read write permissions on file | equivalent to Mac's chmod
    BUt i dont know how to do this in windows and what commands to enter.
    Please help me out here i am in a real fix
     
    Polizel, Jun 13, 2010 IP
  2. bvsonline

    bvsonline Peon

    Messages:
    83
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    To check whether your PHP setup or your Apache setup is causing the problem. To do this, open a Command Prompt window (found in the "Accessories" folder of your "Start" menu) and run php-cgi.exe on test.php with a command line like "c:\php\php-cgi test.php" (without the quotes).

    If invoking PHP from the command line causes a large HTML file with all the PHP configuration information to be displayed, then your PHP set up is fine. The problem probably lies with your Apache configuration. Make sure that you have restarted the Apache server after making configuration changes.
     
    bvsonline, Jun 18, 2010 IP