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 |
No, you'd actually copy the files.
|
Do you mean copy onto the hdd
|
Yes.
|
So you would run apache off of the hdd?
|
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. |
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?
|
Well I'm doing this with a raspberry pi so I have very little space in the sd card.
|
Quote:
Maybe first explain in more detail what you actually want to do? |
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
|
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.
|
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. |