Google News
logo
Slim Framework - Interview Questions
How Deploying to your own server in Slim Framework?
If you control your server, then you should set up a deployment process using any one of the many deployment system such as:
 
* Deploybot
* Capistrano
* Script controlled with Phing, Make, Ant, etc.

Review the Web Servers documentation to configure your webserver.
 
Deploying to a shared server : If your shared server runs Apache, then you need to create a .htaccess file in your web server root directory (usually named htdocs, public, public_html or www) with the following content:
<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule ^$ public/ [L]
   RewriteRule (^[^/]*$) public/$1 [L]
</IfModule>
(replace ‘public’ with the correct name of your domain name e.g. example.com/$1)
 
Now upload all the files that make up your Slim project to the webserver. As you are on shared hosting, this is probably done via FTP and you can use any FTP client, such as Filezilla to do this.
Advertisement