2013年12月16日 星期一

[CakePHP] Deployment Project onto Linux - The requested URL was not found on this server.

Env. 
- Ubuntu 10.X
- CakePHP 2.0



CakePHP project name : IAmCakeProj

Steps:

> cd IAmCakeProj
> sudo chown -R www-data app/tmp
> cd /etc/apache2/sites-available
>sudo vim default

        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /var/www/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
        </Directory>

> :wq
> sudo etc/init.d/apache2 restart

> cd /etc/apache2
> sudo a2enmod rewrite
> sudo service apache2 restart

Then Test  if the problem is solved ~


沒有留言:

張貼留言