LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 04: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, 01:54 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
No, you'd actually copy the files.
 
Old 09-29-2014, 09: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, 07:37 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
Yes.
 
Old 09-29-2014, 07: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, 08:06 PM   #6
notKlaatu
Member
 
Registered: Sep 2010
Location: Wellington, New Zealand
Distribution: Slackware
Posts: 893

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
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, 08:07 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248Reputation: 1248
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, 08: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, 08:08 PM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529Reputation: 3529
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, 08: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, 08:19 PM   #11
notKlaatu
Member
 
Registered: Sep 2010
Location: Wellington, New Zealand
Distribution: Slackware
Posts: 893

Rep: Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524Reputation: 524
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, 09: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


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


All times are GMT -5. The time now is 04:54 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