Congratulation! if you have made it this far, that means you have successfully built something awesome using Slim . However, the time to party has not come yet . We still have to push our application to the production server.
There are many ways to do this that are beyond the scope of this documentation. In this section, we provide some notes for various set-ups.
The first thing to do is to tweak your settings (
src/settings.php in the
skeleton application) and ensure that you do not display full error details to the
You should also ensure that your PHP installation is configure to not display
errors too with the
If you control your server, then you should set up a deployment process using any one of the many deployment system such as:
Review the Web Servers documentation to configure your webserver.
If your shared server runs Apache, then you need to create a
in your web server root directory (usually named
www) with the following content:
(replace ‘public’ with the correct name of)
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.