Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

How to publish web applications?

How do you launch a web application (like one built with php on the lavarvel framework) on a hosted server? Is it possible to host this type of application through the webhostingforstudents that treehouse reccomends? If so, how?

I am new to publishing web applications so if my question doesn't make sense it is probably because I do not know enough to ask the right question but I will try to clarify by responding to comments. Thank you!

2 Answers

Matthew Proudman
Matthew Proudman
11,879 Points

If it is PHP then it will only run on a webserver

Yes, I mean I developed my app on mamp locally but now I want to publish it on a shared webhosting server. How do I do that?

Matthew Proudman
Matthew Proudman
11,879 Points

put the files in the on the "htdocs" folder

Matthew Proudman
Matthew Proudman
11,879 Points

Yes- you need a web server,

when the file is called it will run on the server and then send the result to the browser (but the PHP file never leaves the server), you could use an app called Xampp which is a local solution to the problem (so you can PHP on your own computer). and is a good project for a new raspberry pi owner, you can try the "PHP basics " (https://teamtreehouse.com/library/php-basics).

Ya, I understand that much. I am more confused about getting laravel up there with it. Or if I was using ruby, getting ruby installed on my hosted server. I hope that clarifies what I am asking.