Deployment on production

Hi,

My application is running well internally on my MacBookPro.

Now it’s time to deploy it on an external server.

What are the steps to do this ?

Regards

Specifically:

On the production server, the mysite index page si running well.

The path on the server is /var/mysite/

My question where have I to put the yiiapp/mysite/* : into /var/mysite, or only the yiiapp/mysite/web and the other stuff outside the /var/mysite

When I copied all into /var/mysite, In the browser I get the index page.

But when I click on a link (like : index?r=family/index ), I get the error:

"The requested URL /index was not found on this server."

Here is my apache config:

<VirtualHost *:80>

    ServerAdmin webmaster@mysite


    ServerName  mysite


    ServerAlias mysite





    # Indexes + Directory Root.


    DirectoryIndex index.php


    DocumentRoot /var/mysite /web





    # CGI Directory


    ScriptAlias /cgi-bin/ /var/www/mysite/cgi-bin/


    &lt;Location /cgi-bin&gt;


            Options +ExecCGI


    &lt;/Location&gt;








    # Logfiles


    ErrorLog  /var/www/mysite /logs/error.log


    CustomLog /var/www/mysite/logs/access.log combined

</VirtualHost>

Ok, I found the problem … missing the .htaccess … with this inside:

RewriteEngine on

If a directory or a file exists, use the request directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

Otherwise forward the request to index.php

RewriteRule . index.php