LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-27-2012, 08:55 PM   #1
ettedo2000
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
Need help with finding the apache root folder


Hello, I am a beginner with Linux and I am currently taking a class. I am very overwhelmed with this. Actually I really don't know what I am doing and need some help.
This is a Assignment I need to do.
Install blog.tar.gz
~$ tar -zxvf blog.tar.gz

open file blog.txt
~$ cat blog.txt

So far so good now my question. On blog.txt are following instructions.

Check to see if Apache, MySQL, and PHP is working
I Installed apache2, php and mysql and checked if they are working.

1.copy index.php to the apache root folder
what is an apache root folder??
Do I have to make my own and if so where and what would it be called

2.change owner to root
change owner of what to root? I know the command is sudo chown root

If I knew this much maybe I would understand the rest as well.

I hope someone could point me into the right direction. Thanks
 
Old 02-27-2012, 09:19 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,333
Blog Entries: 12

Rep: Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729Reputation: 2729
Since you are quite clear that you are asking for a pointer, and not for us to do your homework, I think a pointer is quite in order.

Try this: http://livenudefrogs.com/~anubis/apa...tpd-conf.shtml

Unfortunately, as regards item 2, I doubt anyone here can help you read your instructor's mind, which seems to be required to help with that.
 
Old 02-27-2012, 09:31 PM   #3
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
If I may...
Quote:
2.change owner to root
Given the context, I feel certain that you are being instructed to change ownership of the newly copied file from step #1 (i.e. "<apache root folder>/index.php").
 
Old 02-27-2012, 09:41 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
the apache "root" folder is the <document root>
that YOU set in the httpd.conf

HOW did you install apache , php,mysql,phpmyadmin,....

from source or what ?

you might want to read,then REREAD , then re-reread the apache documentation
the current Apache 2.4
http://httpd.apache.org/docs/2.4/

Normally i tell people to study them as you would for a class.Seeing as this IS FOR a class then.....
study them .


normally the advice i give for installing the apache server stack is this
for about the first 12 or so installs install EVERYTHING from the source code
then use a distros prebuilt binary rpm,or deb, or xz files to save about 30 min. off the install

what that dose is force you TO LEARN HOW to set it up and configure it
it is VERY ( so VERY easy) to set it up as an insecure server that is turned into a "zombie" SO VERY EASILY

but is harder to run a SECURE install
 
Old 02-28-2012, 08:46 AM   #5
ettedo2000
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by John VV View Post
the apache "root" folder is the <document root>
that YOU set in the httpd.conf

HOW did you install apache , php,mysql,phpmyadmin,....

from source or what ?

you might want to read,then REREAD , then re-reread the apache documentation
the current Apache 2.4
http://httpd.apache.org/docs/2.4/

Normally i tell people to study them as you would for a class.Seeing as this IS FOR a class then.....
study them .


normally the advice i give for installing the apache server stack is this
for about the first 12 or so installs install EVERYTHING from the source code
then use a distros prebuilt binary rpm,or deb, or xz files to save about 30 min. off the install

what that dose is force you TO LEARN HOW to set it up and configure it
it is VERY ( so VERY easy) to set it up as an insecure server that is turned into a "zombie" SO VERY EASILY

but is harder to run a SECURE install
I installe Apache2, php, mysql and myadmir through my terminal by followin following Installment instruction:

~$ sudo apt-get install apache2

~$ sudo apt-get install php libapache2-md-php5

~$ sudo apt-get install mysql-server

~$ sudo apt-get instal phpmyadmin


I followed the Instructions I found on http://connectwww.com/how-to-install...on-ubuntu/727/
I hope I did it right. All the Web browsers come up. I will read up on your information as well. I really wish my teacher would tell us where to read up on these things so I could learn about it and understand it better. He is expecting us to know this already. Why would I go to class to learn Linux if I knew it already. Thank you for your help
 
Old 02-28-2012, 11:32 PM   #6
lisle2011
Member
 
Registered: Mar 2011
Location: Surrey B.C. Canada (Metro Vancouver)
Distribution: Slackware 2.6.33.4-smp
Posts: 183
Blog Entries: 1

Rep: Reputation: 25
Howto

If you want to understand where all things are stored poke around the folder called /etc. There may be a sub folder named Apache2. Apache2, depending on the distribution will contain either right there or in a sub folder a file named httpd.conf. Open it in a text editor, nano, pico, vi or vim. Start at the top of the file and read down until you come to a heading that is nor commented out that say 'DocumentRoot' there will be a path there. Mine is /srv/httpd/htdocs.
Now you know where document root is and the place to put your html files is in the folder named htdocs. If you have a script to run that must be secure as you mention the user root must own it. It must be executable but NOT suid. See it is easy when you get quiet and peaceful and don't panic. YOU CAN PANIC LATER WHEN IT IS ALL OVER.


I I have helped you in any way give me a pat on the back (add to my reputation)

D (AKA Windy)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Seperating Home folder from Root Folder to a new partition. baxzius Linux - Newbie 5 08-01-2011 04:26 PM
Redirect https apache requests to folder not in apache root bax Linux - Enterprise 4 04-12-2010 02:16 PM
Apache root folder access j.gonsalves Linux - Newbie 1 03-22-2009 07:02 AM
Finding a folder name? subnet_rx Linux - General 5 09-03-2007 03:27 AM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 06:23 PM


All times are GMT -5. The time now is 08:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration