Menu

Need help: Generation (Apache?) Permissions

a caggiano
2004-10-01
2013-04-17
  • a caggiano

    a caggiano - 2004-10-01

    This is a template for a Doc  that should exist, but I am too dumb to write!)
    <br>
    Audience: Starting users of PCG
    <br>
    Purpose:  Instructions on How to Make Sure Apache Has Write Permissions
    <br>
    Situation: When you have pcg3 installed OK, and you can select a mysql database, and are ready to generate!
    <br>

    1) The window warns you that Apache needs write permission to the sirectories in which PCG is going to generate code.

    2) To do this you should set up <?????????> directories, under the <????????> and the <??????????>

    3) Then change the write permissionsto these directories like this-(?)
    root# /<CPG dir>/ chmod -r <dirname> ???

    Please help fill in the needed informaiton in this if you understand PCG better than I do!

     
    • a caggiano

      a caggiano - 2004-10-01

      OK I solved my own problem.

      To set up write permissons before generating for PCG:

      Note: Mac OS X systems are designed to be used by
      non-expert sysadmins, and the "root" user
      ( all-powerful user who can cripple the system with a blundering "delete")
      is NOT enabled in a stock Mac OS X install-  for safety reasons. You need to Manually enable the root user.
      ( See below for instructions)

      Although you can do some admin commands in the terminal by prefacing them with "sudo" ( meaning "superuser do");
      it seems simpler to me to actually log in as root when I  want to set permissions. I have had problems doing some tasks with "sudo" that seemed to work OK when I logged inas  root

      ===
      To Activate "root" user 
      ====
      1) Starting the utility app "/Applications/Utilities/Netinfo Manager"

      2) From within Netinfo Manager app, Take menu choice:
      "Security->Enable Root User"

      3) It will ask you to set up a password for root. Don't forget it!

      4) Start  "/Applications/Utilities/Terminal"
      ( Once app is running, You can click and hold on the terminal icon in the Dock, and when the menu pops out, select "Keep in Dock" ./

      That way  you don't have to dig for it each time when you are doing sysadmin tasks.)

      5) If you have installed as my Mac directions advise,
      type:
      login  -fp root
      Enter password when asked
      generatedCode
      6) The prompt will change to something with "root" and a "#" in it. This means be careful- you can destroy everything!
      There are no confirm warnings when you are about to delete, move or rename things that will crash your system and require a system reinstall)

      7) type:
      cd /Library/WebServer/Documents/pcg3/web/

      8) type:
      chmod -R 777 generatedCode

      9) Then generate that baby!

       
    • hlutz

      hlutz - 2004-10-27

      If you did not activate the root-user (during installation of OS X 10.3 or later) you can run all commands with "sudo command-name" and using your password defined during first installation of OSX 10.3. E.g. you can run "sudo pico filename" if "filename" needs admin rights to be displayed in pico.

      Following this you can change the write permissions according your pt 3)

      [myMac:~] pete% cd /Library/WebServer/Documents/pcg3/web/

      [myMac:Documents/pcg3/web] pete% sudo chmod -R 777 generatedCode

      password: -> your password here from during installation OSX 10.3 <-

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.