LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need some help with apache (https://www.linuxquestions.org/questions/linux-newbie-8/need-some-help-with-apache-4175520403/)

sycho123321 09-28-2014 03:39 PM

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

unSpawn 09-29-2014 12:54 AM

No, you'd actually copy the files.

sycho123321 09-29-2014 08:11 AM

Do you mean copy onto the hdd

unSpawn 09-29-2014 06:37 PM

Yes.

sycho123321 09-29-2014 06:38 PM

So you would run apache off of the hdd?

notKlaatu 09-29-2014 07:06 PM

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.

yancek 09-29-2014 07:07 PM

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?

sycho123321 09-29-2014 07:08 PM

Well I'm doing this with a raspberry pi so I have very little space in the sd card.

unSpawn 09-29-2014 07:08 PM

Quote:

Originally Posted by sycho123321 (Post 5246560)
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?

sycho123321 09-29-2014 07:10 PM

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

notKlaatu 09-29-2014 07:19 PM

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.

sycho123321 09-29-2014 08:52 PM

Oh I think I get it now thanks
But ill keep it open In case I need help


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