CakePHP Blog in 15 minutes on Ubuntu

There is a 15 minutes "how do I program a blog in CakePHP" tutorial at http://book.cakephp.org/view/219/Blog.

15 minutes is not too long just to get an idea of CakePHP, is it? And I must say it is only 15 minutes if you adjust a few settings in your ubuntu installation prior to following the tutorial.

All you have to do in case you're using Ubuntu is to install a web server using

  • Run
    $ sudo apt-get install apache2 libapache2-mod-php5 libapache2-mod-auth-mysql mysql-server php5-curl php5-gd dvipng phpmyadmin
    
from the terminal.
  • After that, execute the command

    $  gksu gedit /etc/apache2/sites-available/default

    and change line 11 from 'AllowOverride None' to 'AllowOverride All'.
  • Enable the mod_rewrite module using

    $ sudo a2enmod rewrite
  • Change the permissions of the web server root folder using
    $ cd /var
    
$ sudo chmod o+rw www
  • Now, download the CakePHP source from http://www.cakephp.org/ and put it in /var/www/cake
  • You can then use http://localhost/cake/ in your browser and start with the CakePHP Blog tutorial!

Fabian Gebert

2008/11/12 07:21

Technology

Add comment