Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-04-2012, 07:21 PM   PM User | #1
xotix
New to the CF scene

 
Join Date: Dec 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
xotix is an unknown quantity at this point
How to install an application correctly

Hi, althought i have done quite a lot of web programming until now, I'd like to ask some basic stuff which I never really had to care about since I rather edited existing stuff or extendet existing stuff.

I've set up a VM using VirtualBox with Ubuntu as a guest OS. Now, I'm wondering on how to correctly install an web app.

Of course, there is /var/www where i can put my stuff an /etc/apache2/sites-available where I can put my vhosts.

Now, I'd really like to know the part of how a website gets available to others respectively how apache servers them into the wilde world. What permissions do depend etc. Also I'd like to know where to put all my files and projects etc.

So my questions are:

1. How does a homepage get serve to the outworld? Don't tell me about HTTP and stuff. I want to know the procedure of httpd, like: First the request comes in and component X says it's an httpd thing and httpd looks up the site through the vhost file and blabla. Something like this.

2. Where can i put my libraries and frameworks (on ubuntu)? I don't want to include them into each proejct but put them somewhere on the system and include them into the include_path. Where's the best place on an Ubuntu system? Maybe soem good Ubuntu Filesystem article would be nice.

3. How to install an web application proberly so there are no files public which don't belong to be public. Do you put all your projects into www/... or do you have an project folder?

4. Does the www folder somehow differ from an selfmade dir which gets public because you point to it via a vhost file?

Of course, I'm able to put a website online and make sure there are no files public which shouldn't be public but I want to know it in detail. Of course, you can link me to some documentations if there is everything I need.

I'm asking myself how to set up my dev environment. Where to put all the files etc. I'm not used to ubuntu.

I just want to tighten my knowledge. I want to be 120% sure about how to set permissions and configure my vhosts/apache2 and not just 90%.

Hope my concern are clear. Thanks
xotix is offline   Reply With Quote
Old 12-05-2012, 10:17 AM   PM User | #2
Redcoder
Regular Coder

 
Redcoder's Avatar
 
Join Date: May 2012
Location: /dev/couch
Posts: 309
Thanks: 2
Thanked 46 Times in 45 Posts
Redcoder has a little shameless behaviour in the past
See the Apache documentation for the latest version and you'll be good to go. You'll use it just like you use other servers you have used before, only this time you have to configure it for security or customize it as you want since Hosting services providers don't do it for you.

http://httpd.apache.org/docs/2.4/
__________________
For professional Hosting and Web design.....


NetEssentials.co.uk
Redcoder is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:36 PM.


Advertisement
Log in to turn off these ads.