-2

I want to install cakephp3 on ubuntu14.0.4 in lamp. I put cakephp3 folder in /var/www/ path. When I enter localhost/cakephp3/in browser, nothing is shown.

What should I do?

vard
  • 4,057
  • 2
  • 26
  • 46
ParisaN
  • 1,816
  • 2
  • 23
  • 55

2 Answers2

0

Follow this, http://book.cakephp.org/3.0/en/installation.html#installing-cakephp

open terminal,

  1. Create a folder in var/www/html

    mkdir /var/www/html/cakephp3
    
  2. Navigate to this folder and install composer there

    cd /var/www/html/cakephp3
    curl -s https://getcomposer.org/installer | php
    
  3. Install php in the same folder

    php composer.phar create-project --prefer-dist cakephp/app
    

You must get your cakephp application now.

puppy
  • 57
  • 1
  • 1
  • 6
0

My error.log :

127.0.0.1:59267] PHP Fatal error: You must enable the intl extension to use CakePHP. in /var/www/html/cakephp-3-1-6/config/bootstrap.php on line 38

So

install "intl" plugin:

sudo apt-get install php5-intl

and restart apache:

sudo service apache2 restart

And Try again in browser: localhost/cakephp3/

It worked for me.

ParisaN
  • 1,816
  • 2
  • 23
  • 55