LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-24-2004, 09:01 PM   #1
dramous
LQ Newbie
 
Registered: Sep 2004
Posts: 13

Rep: Reputation: 0
apache server setup and how to place files in the var/www/html directory


I am new to linux, but i have a great understand if some one would direct me in the right path, My problem is correctly setting up the apache software and know how to place the files into the var/www/html folder.

My server will be a standalone system that will host a single site that will run php, cgi, and run a mysql database. I need the exact syntax on setting it up under this situation. also how to place my pages in the html folder. Please help

Andre'
 
Old 09-25-2004, 12:33 AM   #2
Tap-Out
Member
 
Registered: Oct 2002
Location: Halifax, NS
Distribution: Ubuntu, Mepis, Debian
Posts: 130

Rep: Reputation: 15
Re: apache server setup and how to place files in the var/www/html directory

Quote:
Originally posted by dramous
I am new to linux, but i have a great understand if some one would direct me in the right path, My problem is correctly setting up the apache software and know how to place the files into the var/www/html folder.

My server will be a standalone system that will host a single site that will run php, cgi, and run a mysql database. I need the exact syntax on setting it up under this situation. also how to place my pages in the html folder. Please help

Andre'
To place files in your /var/www/html folder one they are saved all you have to do is copy or move them into the folder.

Code:
cp ./filename.html /var/www/html

or

mv ./filename.html /var/www/html
If you get a permission deined error you may have to copy them as root. Do do this use the su command. Just type "su" in the console and it will ask you for the root password. Put in the root password and then execute the commands listed above.

I hope this helps, and if you have any further questions please post back here and I'm sure myself or one of the many other helpful people on the site will be able to help you.

Cheers
 
Old 09-25-2004, 01:29 AM   #3
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
To help you, please indicate what distro you are using and what has been done to configure apache. When you installed apache, did the distro ask you any questions or have you edited anything in the httpd.conf file?

Just trying to be helpful but read this about asking questions.
http://www.catb.org/~esr/faqs/smart-questions.html

And BTW, I know you are new here. You will find a lot of helpful people. But please don't post the same question in more than one forum.
http://www.linuxquestions.org/rules.php

Last edited by darthtux; 09-25-2004 at 01:31 AM.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Directory index forbidden by rule: /var/www/html/ danimaldaisy Linux - Networking 6 02-11-2008 01:32 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - Newbie 7 09-28-2004 04:18 AM
apache server setup and how to place files in the var/www/html directory dramous Linux - Software 3 09-25-2004 02:38 AM
how to setup ftp user's diretory as /var/www/html lzyking Linux - Software 4 02-25-2003 12:58 PM
Giving a user CHMOD rights to the /var/www/html directory? scubes13 Linux - Networking 3 08-18-2002 03:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:58 AM.

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
Open Source Consulting | Domain Registration