LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 09-28-2014, 03:39 PM   #1
sycho123321
Member
 
Registered: Apr 2012
Distribution: Debian, LFS!, Linux Mint
Posts: 208

Rep: Reputation: Disabled
Question Need some help with apache


So I want to have all of the website files and such in an external hdd would I use a symbolic link?


Thanks,

Lukas
 
Old 09-29-2014, 12:54 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
No, you'd actually copy the files.
 
Old 09-29-2014, 08:11 AM   #3
sycho123321
Member
 
Registered: Apr 2012
Distribution: Debian, LFS!, Linux Mint
Posts: 208

Original Poster
Rep: Reputation: Disabled
Do you mean copy onto the hdd
 
Old 09-29-2014, 06:37 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Yes.
 
Old 09-29-2014, 06:38 PM   #5
sycho123321
Member
 
Registered: Apr 2012
Distribution: Debian, LFS!, Linux Mint
Posts: 208

Original Poster
Rep: Reputation: Disabled
So you would run apache off of the hdd?
 
Old 09-29-2014, 07:06 PM   #6
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
I would run apache on the internal drive.

I would attach the external drive and add its path as the root directory in httpd.conf

No need for symlinks unless you have some circumstance that you have not explained.


I don't know how common it is to host your files on an external drive, but I'm assuming you have reasons for doing it that way.
 
Old 09-29-2014, 07:07 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
You can create a separate partition for /var/www or whichever directory your apache files are in on the external, create an entry in the /etc/fstab file for that partition and then set the Document Root in the apache configuration file to it. You can run apache from an internal this way or put it on the external. I'm not really sure what you see specifically as a problem?
 
Old 09-29-2014, 07:08 PM   #8
sycho123321
Member
 
Registered: Apr 2012
Distribution: Debian, LFS!, Linux Mint
Posts: 208

Original Poster
Rep: Reputation: Disabled
Well I'm doing this with a raspberry pi so I have very little space in the sd card.
 
Old 09-29-2014, 07:08 PM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by sycho123321 View Post
So you would run apache off of the hdd?
No, that's not what I'm saying.

Maybe first explain in more detail what you actually want to do?
 
Old 09-29-2014, 07:10 PM   #10
sycho123321
Member
 
Registered: Apr 2012
Distribution: Debian, LFS!, Linux Mint
Posts: 208

Original Poster
Rep: Reputation: Disabled
What I want to do is have a file server from apache and I'm using a raspi so I have limited space and to solve that I'm using a 250 gb hdd. Thanks
 
Old 09-29-2014, 07:19 PM   #11
notKlaatu
Senior Member
 
Registered: Sep 2010
Location: Lawrence, New Zealand
Distribution: Slackware
Posts: 1,077

Rep: Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732Reputation: 732
I run some sites on a Pi, I use nginx. It's quite small. Maybe that will not help, but maybe it will. I was serving some files off of a usb thumbdrive for a while; I mounted the thumbdrive at /storage, and added that path to my server conf file. Worked out fine.
 
Old 09-29-2014, 08:52 PM   #12
sycho123321
Member
 
Registered: Apr 2012
Distribution: Debian, LFS!, Linux Mint
Posts: 208

Original Poster
Rep: Reputation: Disabled
Oh I think I get it now thanks
But ill keep it open In case I need help
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache close wait error :Apache stop responding,Server get hangs jsaravana87 Linux - Server 1 06-19-2012 11:49 AM
setting up apache from scratch on a linux machine, apache failed message upon bootup dramous43 Linux - Enterprise 2 01-26-2010 07:53 AM
Apache Webserver on Slackware - Failed to Start Apache - 'no listening sockets .." CCTVGuru Linux - Server 4 10-11-2009 01:14 AM
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 12:41 AM
apache benchmarks (apache v13 / apache v20) ; large differences between benchmarking markus1982 Linux - Software 0 02-08-2003 10:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:35 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
Open Source Consulting | Domain Registration