Uploading a php project
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.
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
Support Staff 1 Posted by rune on Feb 20, 2014 @ 08:30 PM
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
rune closed this discussion on Feb 20, 2014 @ 08:30 PM.
kmiloaguilar re-opened this discussion on Feb 20, 2014 @ 09:20 PM
2 Posted by kmiloaguilar on Feb 20, 2014 @ 09:20 PM
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.
Support Staff 3 Posted by rune on Feb 21, 2014 @ 05:12 AM
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
rune closed this discussion on Feb 21, 2014 @ 05:12 AM.