When I use the ~ in a command line, it has the same meaning as /home/alan, my home directory. Of course, your home directory will be different, unless your name is Alan.
Your Akelos project files will have to be readable by Apache as well as by yourself. Apache will write some files that you will edit (in multi-lingual applications). You will have to enable yourself to read and write those files. We'll write a script to enable that. I called mine set_apache. It contains these two lines
chown alan:apache . -R chmod g+rw . -R
When you write yours, use your user name instead of mine (alan). I recommended to my wife that she save this file in ~/bin, which she needed to create using $ mkdir ~/bin. This file needs to be executable. We'll do that with
$ chmod u+x ~/bin/set_apache
When you run set_apache you'll have to do so as a root user. In the next section we'll try to make that easy.
The syntax for running set_apache will be sudo ./set_apache. We need to make sudo work for you. Here's how.
$ su -
You will be asked for root's password, which will not echo any characters as you enter it. After you press enter,
# cd /etc # chmod u+w sudoers
The reason for doing this is that /etc/sudoers was a read-only file. We need to make it writable.
# gedit sudoers
Scroll down until you see these lines:
## Allow root to run any commands anywhere root ALL=(ALL) ALL
Add a line after this like the following, so that you end up with
## Allow root to run any commands anywhere root ALL=(ALL) ALL alan ALL=(ALL) ALL
except that you have your user name instead of alan. Save the file and close gedit. Make sudoers read-only again:
# chmod u-w sudoers
Then close the terminal window.
We're going to get Akelos with Subversion. My wife didn't have that installed. So, I used the Add/Remove Software menu item to download and install it.
The next thing to do is to install Akelos.
$ cd ~/php $ svn co http://svn.akelos.org/trunk/ akelos
You'll get a lot of files added to your machine, but that's it.
We're ready to create my wife's first project. Let's go back to the main Akelos For Dummies page.