Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to place my files in apache webserver on fedora?

Status
Not open for further replies.

QASA25

Technical User
Jun 23, 2005
63
NL
Hi all i recently installed fedora and apache is running on it. But i do know how to get to folder where i can place my html files. I be happy if some one help me here.Thanks
 
Can be anywhere, it is dictated by the httpd.conf file in the conf directory.

I usually setup a user of html, which creates /u/html or /home/html and create different directories for each server site.
 
By default, fedora sets the DocumentRoot as /var/ If you would like to change this or any other directive you will need to edit /etc/httpd/conf/httpd.conf with a text editor.
 
thanks for u reply.Rhythmace could u tell me how to get to that folder so i drop my html pages inside it ?Thanks
 
The best thing to do is start your ftp server. Change the home directory for your regular user to /var/www. Then ftp all your webpages to the /var/ directory. If you,ve created them on the same machine that the web server is on, the you can copy them using the cp command. To learn more about the cp command, type "man cp" without the quotes from the shell. You can learn about all the commands by using the man (manual) pages.
 
RhytmAce many thanks for your nice explanation. I have to mention that i am very new with fedora so your guides are very helpful to me. You give me good suggestion. If there a ftp program in fedora ? how to get to it ? can i insall bulletproof ftp on fedora ? Frutheremore, does fedora have windows explorer type of thing that you be able to cut and past your html files? I be happy if i get answers to these questions from you guys.Thanks
 
When you installed fedora you had the option to install as server, workstation or custom. If you chose server, then you may only have text mode. If you have room, you may want to do a custom install and select "everything". This will take a long time to install because there will be a lot of packages getting installed. Most people new to linux find the change a lot easier if they have a desktop environment rather than a command line. Having a GUI comes with a price however. Whether you use Gnome or KDE, you will use a lot of resources that may slow down your servers. Linux lets you choose run levels. For example, If you want the graphical interface, you would choose run level 5 but if you only want servers running, then you would choose run level 3. You can choose which run level by editing /etc/inittab. Look for a line like this:

id:3:initdefault:

The 3 means run level 3. If you want graphics, change it to 5. If you do not have X installed, you won't see the difference. If you are not sure, type "startx" at the command line. If you get errors, it probably isn't installed. Not to worry - you can install any or all packages from the CDs. I think you select "upgrade" for the type of install but I can't remember.

If you don't have room or would rather not install all the graphics stuff, you may want to look into webmin. It is a program that lets you administer all your servers and system in general from the comfort of your web browser. It lets you configure everything using a GUI even though your server doesn't have graphics. You can get it at
 
Many Many thanks for your very very helpful responde. I mainly installed fedora to run it as webserver and beside it to learn Linux . While installation i selected server option and seleced every package.do u think it is running on level 5? Now i guess i have graphical user interface since i can see some tool bars on the top and ... but not sure since i can not get my way to folders stuff!!

I think your suggestion to go for webmin is better for me at this moment since i want to test fedora as webserver. does webmin allow me to uplaod files to fedora webserver as well ?Thanks
 
oh, ok - Look down in the lower lefthand corner. You will see a little red hat (fedora) with the word "Applications" next to it. Click on that then on "System Tools" then right click on "File Browser" This will pop up an option to "Add this launcher to the panel". Click on that and you will see it down on the tool bar. Now click on that and you will be able to browse you file system just like Windows Explorer. Sorry I didn't tell you this when you asked but I didn't think you had graphics enabled. You can also configure they way each directory is displayed just like windows explorer. You can copy/cut and paste single files or entire directories. The only difference from windows is that you will need to be mindful of file and directory permissions if you are doing this as root. Apache will not be able to access files set to only be read and executed by root.

Yes webmin lets you upload files. If you do decide to download it, get the no-arch rpm file. Usually downloads go to your home directory so just go to the terminal window and type the following command:

rpm -ivh *.rpm

This will install everything in the current directory that ends in .rpm. The only file there should be webmin but who wants to type out the whole name of the file. :) Once installed, you just type the ip address of the server along with the port. For example, Then login as root.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top