Archived Support Site

This support site is archived. You can view the old support discussions but you cannot post new discussions.

Uploading a php project

kmiloaguilar's Avatar

kmiloaguilar

Feb 19, 2014 @ 09:03 PM

Hi, I got a php project and I upload it to appharbor, so apparently it build and it's active.

This is a small php aplication I want to run it as a cron job. I don't need to display anything on it I just want it to run.

when I go to http://big-cyrious-2-trackvia.apphb.com/index.php I receive a 403 forbidden.

Is there a way to get this working? I think the file is no getting there. How can I make this work? I want to use cloud scheduler to hit this address and run the job inside that php file.

  1. Support Staff 1 Posted by rune on Feb 20, 2014 @ 08:30 PM

    rune's Avatar

    Hi,

    This is likely because the site isn't properly configured, so it'll default to the static file module (which doesn't allow listing a directory's content). That's only for the root URL though, but the URL you mention now returns an HTTP 404.

    Note however that PHP is not currently supported directly on the platform. You can however use something like Phalanger to make your site run on AppHarbor. This Wordpress repository is using that for instance.

    Best,
    Rune

  2. rune closed this discussion on Feb 20, 2014 @ 08:30 PM.

  3. kmiloaguilar re-opened this discussion on Feb 20, 2014 @ 09:20 PM

  4. 2 Posted by kmiloaguilar on Feb 20, 2014 @ 09:20 PM

    kmiloaguilar's Avatar

    This is not actually a website, is most a php script to fetch some data from some apis and inserting them in others.

    I'm not very familiar with Phalanger.

  5. Support Staff 3 Posted by rune on Feb 21, 2014 @ 05:12 AM

    rune's Avatar

    OK - it doesn't matter much if it's a website or not, the problem is that the IIS PHP module isn't installed on the application servers, so you won't be able to run it "out of the box".

    Phalanger compiles PHP to .NET which is also the reason it can run on AppHarbor.

    Best,
    Rue

  6. rune closed this discussion on Feb 21, 2014 @ 05:12 AM.

Discussions are closed to public comments.
If you need help with AppHarbor please start a new discussion.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac