Hello krim,
code
wget http://www.akelos.org/download
tar zxvf akelos_framework-dev_preview.tar.gz
mv akelos_framework ~/akelos
vi ~/sites/apache
chown apache:users . -Rv chmod g+rw . -Rv
chmod +x ~/apache
cd ~/akelos
./script/setup -d ~/sites/booklink -p ~/public_html/booklink
~/sites/apache ~/sites/booklink
cd ~/sites/bookink
script/configure -i
http://localhost/booklink
Fatal error: Could not create config cache dir /home/expocgo/sites/booklink/config/cache/testing in ~/akelos/lib/AkConfig.php on line 196
Warning: file_put_contents(~/sites/booklink/config/locales/en.php) [function.file-put-contents]: failed to open stream: Permission denied in ~/akelos/lib/Ak.php on line 358
will get back to you soon
regards
hello krim,
chown <login name>.www-data ~/sites/booklink -Rv
<?php
class BooklinkInstaller extends AkInstaller { function up_1(){
$this->createTable('books',
'id,'. // the key
'title,'. // the title of the book
'description,'. // a description of the book
'author_id,'. // the author id. This is how Akelos will know how to link
'published_on' // the publication date
);
$this->createTable('authors',
'id,'. // the key
'name' // the name of the author
);
}
function down_1(){
$this->dropTables('books','authors');
}
}
?>
./script/migrate Booklink install
Warning: touch(): Utime failed: Operation not permitted in ~/akelos/lib/AkConfig.php on line 159 1146: Table 'booklink_dev.authors' doesn't exist
./script/generate scaffold Author
Warning: touch(): Utime failed: Operation not permitted in ~/akelos/lib/AkConfig.php on line 159
http://localhost/booklink/author
The requested URL /booklink/author was not found on this server. Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.1 with Suhosin-Patch Server at localhost Port 80
Can anywell help me out please. Thanks.
Best Regards
hi,
i just go the booklink work by following the below instruction
http://i.justrealized.com/2008/12/23/how-to-enable-apache-mod-rewrite-in-ubuntu/
ubuntu does not enable module mod rewrite by default.
well. i did not have rewrite installed, so i first installed using
<code> sudo apt-get install rewrite </code>
that solved most of the problems.
then after apache script we created earlier, i could resolve the utime() errors.
then again, ./script/ did not create files because user www-data.users did not have permission to create files in my home folder. so i have to basically
sudo chown <myusername>.<mygroup> . -Rv code sudo ./apache point the browser to booklink url
do this until the development is complete
this was very frustrating but i did this for 2 nights, without knowing how to resolve.
finally, i resolved it today, after reading the below
http://oneshore.wordpress.com/2009/01/28/ubuntu-www-data-user-should-be-apache/
it basically make apache user to be <yourusername> and not www-data, which was making compelling us to use the apache script which bermi suggested.
please note that it did not require me to change .htaccess file in my ubuntu development box. however, i may have to need to use it when i finally move it to my share linux production server.
i just started following bermi blog video and the booklink tutorial together to understand the whole progress.
1 to 4 of 4