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 ~


沒有留言:

張貼留言

[設計軟硬件] 2026年3月份關於設計軟硬件價錢的資料搜集

Hardware Macbook Pro 16吋 M5 Pro 銀色 標準顯示器 48GB RAM 2TB SSD Storage HK$27,999 Arduino Hardware with sensors & software for control TaoBao ...