# PHP Template, Deploy on a Shared Hosting

**URL:** <https://community.prismic.io/t/php-template-deploy-on-a-shared-hosting/2599>\
**Category:** Developing with Prismic\
**Tags:** php\
**Created:** [November 8, 2020, 3:45am UTC](https://community.prismic.io/t/php-template-deploy-on-a-shared-hosting/2599 "2020-11-08T03:45:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![julianperoncini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/julianperoncini/32/1162_2.png) [@julianperoncini](https://community.prismic.io/u/julianperoncini)\
**Post date:** [November 8, 2020, 3:45am UTC](https://community.prismic.io/t/php-template-deploy-on-a-shared-hosting/2599/1 "2020-11-08T03:45:36Z")

</div>

Hello!

I was trying to upload a test site to a shared hosting that clearly uses FTP, I was seeing what were the possibilities of being able to upload the php template there, since it uses composer, etc. Any solution or tip to do it? I was seeing that you can use something like phpshell to run composer, but I would like to know what options there are.

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [November 10, 2020, 2:07am UTC](https://community.prismic.io/t/php-template-deploy-on-a-shared-hosting/2599/2 "2020-11-10T02:07:52Z")

</div>

Hey Julian, welcome to the Prismic community!

I'm not sure fully I understand your use case, if you give me some more details we can figure out a solution for this together 🖖

Where are you trying to upload your site?

You're using Prismic with your the PHP-kit, is that right?

---

<div class="post-metadata">

**Author:** ![julianperoncini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/julianperoncini/32/1162_2.png) [@julianperoncini](https://community.prismic.io/u/julianperoncini)\
**Post date:** [November 10, 2020, 6:18am UTC](https://community.prismic.io/t/php-template-deploy-on-a-shared-hosting/2599/4 "2020-11-10T06:18:58Z")

</div>

Hey paulina! Thanks for the help!

So im using the prismic php template and just for testing things i want to deploy the app that i made to a cheap FTP server. The php kit is using composer and another tools so i wanted to know if is possible to deploy the app on a ftp server (shared hosting) and the steps to do it.

Thanks for help!! 🙏

---

<div class="post-metadata">

**Author:** ![Pau](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/pau/32/5422_2.png) [@Pau](https://community.prismic.io/u/Pau)\
**Post date:** [November 11, 2020, 5:34am UTC](https://community.prismic.io/t/php-template-deploy-on-a-shared-hosting/2599/5 "2020-11-11T05:34:44Z")

</div>

Ok I see.

So, at the moment the only documented recommendation we have to deploy PHP projects is by using Heroku, have you tried it before?

Our two example PHP projects (The [Multi-Page Site](https://user-guides.prismic.io/en/articles/868744-sample-multi-page-site-with-navigation-in-php) and the [Sample Blog](https://user-guides.prismic.io/en/articles/868735-sample-blog-with-api-based-cms-in-php)) also recommend these same steps:

### Deploy & go live with Heroku

Once you have successfully [signed up](https://signup.heroku.com/) and installed the [Heroku toolbelt](https://toolbelt.heroku.com/):

Create a file with the name Procfile at your application root. Put the following code in the Procfile file:

```auto
web: vendor/bin/heroku-php-apache2 public

```

Create a new Heroku application

```auto
heroku create

```

Initialize a new Git repository

```auto
git initheroku git:remote -a your-heroku-app-name

```

Commit your code to the Git repository and deploy it to Heroku

```auto
git add .git commit -am "make it better"git push heroku master   

```

Ensure you have at least one node running

```auto
heroku ps:scale web=1  

```

You can now browse your application online

```auto
heroku open    

```

Let me know if Is this useful for you 🏄‍♂️

---

<div class="post-metadata">

**Author:** ![julianperoncini](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/julianperoncini/32/1162_2.png) [@julianperoncini](https://community.prismic.io/u/julianperoncini)\
**Post date:** [November 11, 2020, 6:49pm UTC](https://community.prismic.io/t/php-template-deploy-on-a-shared-hosting/2599/6 "2020-11-11T18:49:48Z")

</div>

yeap i try heroku is perfect! but for the moment i need to see if is possible to deploy it on an FTP server, thanks anyway for the help!

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [November 18, 2020, 1:32am UTC](https://community.prismic.io/t/php-template-deploy-on-a-shared-hosting/2599/7 "2020-11-18T01:32:51Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 5:04pm UTC](https://community.prismic.io/t/php-template-deploy-on-a-shared-hosting/2599/8 "2021-12-09T17:04:29Z")

</div>


