Skip to content

Installing cake php on ubuntu

July 18, 2010
  1. Install Apache Server, MySQL, PHP
    sudo apt-get install apache2 mysql-server php5
  2. Download CakePHP
    Go to http://cakephp.org and download latest cakephp. I downloaded cakephp-cakephp-1.3.2-0-g0eea0ce.zip
  3. Copy and extract to web root
    Open your terminal where you put cakephp you just downloaded.

    sudo cp cakephp-cakephp-1.3.2-0-g0eea0ce.zip /var/www/
    cd /var/www
    unzip cakephp-cakephp-1.3.2-0-g0eea0ce.zip
    sudo mv cakephp-cakephp-c7952f2 cakephp
  4. Change tmp folder permisssion
    sudo chmod -R 777 cakephp/app/tmp
  5. Enable mod-rewrite
    sudo a2enmod rewrite
  6. Open file /etc/apache2/sites-enabled/000-default and change AllowOverride None to AllowOverride All
    sudo vim /etc/apache2/sites-enabled/000-default
    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride None
            Order allow,deny
            allow from all
    </Directory>

    to

    <Directory /var/www/>
            Options Indexes FollowSymLinks MultiViews
            AllowOverride All
            Order allow,deny
            allow from all
    </Directory>
  7. Restart Apache
    sudo /etc/init.d/apache2 restart
  8. Open your browser and type address http://localhost/cakephp/ and you’ll see CakePHP message

If you can see CakePHP message in colour, then you have cakephp running in your hand. Congratulation.

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: