Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

P.S Q stands for Question.

My environment is: Amazon linux 64 bit (Q1. i dont if its ubuntu or red-hat, is there any way to check?) And I need to run php and mysql, thus I installed httpd (Q2. is httpd == apache??), but on my default page, it says: please upload files to /var/www/html folder.

Q3.This is the first time I set aws ec2 server myself, my previous experience is hosting with hosting company. Normally in hosting company, my web directory is called "www" or "public_html" or "htdocs".Why is my folder name is "/var/www/html"? Am I installed wrong apache?

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted

1)Use lsb_release

# lsb_release -a
LSB Version:    :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
Distributor ID: CentOS
Description:    CentOS release 5.5 (Final)
Release:    5.5
Codename:   Final

# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 10.04.2 LTS
Release:    10.04
Codename:   lucid

2)Red Hat/CentOS:

yum install httpd

Debian,Ubuntu:

apt-get install apache2

3)"/var/www/html" in default DocumentRoot in CentOS httpd. Change line in /etc/httpd/conf/httpd.conf:

DocumentRoot "/var/www/html"
share|improve this answer
    
Thanks for the direction. How do I check my OS version? I tried "cat /etc/issue", the output is "Amazon Linux AMI release 2010.11.1 (beta)", is this a new OS, different from CentOS and Ubuntu? And based on your answers, I assume its okay to NOT have htdocs or www or public_html folder, am I right? –  heathub Mar 2 '11 at 4:49
    
Yes, it's okay...Amazon Linux is RHEL5 Linux version ( aws.amazon.com/ec2/faqs/#What_is_the_Amazon_Linux_AMI ) –  ooshro Mar 2 '11 at 5:00
    
RedHat!!!!!! Okay, my very last question. Is this okay, I mean, as of now(2 March 2011) to use Amazon Linux, cuz its currently on beta stage right?? –  heathub Mar 2 '11 at 5:08
    
No, Amazon Linux is stable and secure. –  ooshro Mar 2 '11 at 5:36
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.