Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Pilot Lvl 3
Message 1 of 13

Deploying PHP to GitHub Pages - is it possible?

Solved! Go to Solution.

I'm trying to deploy an index.php file to my GitHub Pages site, but I have absolutely no idea how-to! Any pointers?

 

12 Replies
Commander Lvl 3
Message 2 of 13

Re: Deploying PHP to GitHub Pages - is it possible?

  1. https://www.google.nl/search?q=github+pages+php
  2. One of the first results: https://help.github.com/articles/what-is-github-pages/
  3. Quote from page: "GitHub Pages is a static site hosting service and doesn't support server-side code such as, PHP, Ruby, or Python."

- Mark
Pilot Lvl 3
Message 3 of 13

Re: Deploying PHP to GitHub Pages - is it possible?

I've realised that it doesn't provide default PHP hosting :smileyhappy: It's just that I was wondering if there is anyway to host PHP on GitHub - be it using a script or something (I honestly don't know, I'm barely a developer)?

 

Of course, it wouldn't be in anyway that would pose a threat to GitHub Pages or violate any Terms of Service/Terms of Use.

Solution
Commander Lvl 3
Message 4 of 13

Re: Deploying PHP to GitHub Pages - is it possible?

According to the GitHub ToS (https://help.github.com/articles/github-terms-of-service/) section I:

 

  1. ”This hosting service is intended to host static web pages for GitHub users.”, PHP is not static
  2. You should follow the GitHub Pages guidelines, and as you can see in my previous post these guidelines say again that PHP is not availible

 

 So you can’t run PHP without violating the ToS.

 


- Mark
Pilot Lvl 3
Message 5 of 13

Re: Deploying PHP to GitHub Pages - is it possible?

Thanks for your thoughts, and for quoting that excerpt of the GItHub Terms of Service.
Ground Controller Lvl 1
Message 6 of 13

Re: Deploying PHP to GitHub Pages - is it possible?

Of course, just to be clear, you CAN host php scripts, and essestially anything, in a github REPO.

Ground Controller Lvl 1
Message 7 of 13

Re: Deploying PHP to GitHub Pages - is it possible?

It is not working.  When load php page getting download prompt for the file.

Is it working for you?

Commander Lvl 3
Message 8 of 13

Re: Deploying PHP to GitHub Pages - is it possible?

Did you read the thread? You surely can host the PHP file in GH repos as a static file but it won’t execute on the GH Pages platform.

- Mark
Ground Controller Lvl 1
Message 9 of 13

Re: Deploying PHP to GitHub Pages - is it possible?

What would you guys recommend to use instead?

Commander Lvl 3
Message 10 of 13

Re: Deploying PHP to GitHub Pages - is it possible?

Javascript                


- Mark