Second hard drive on LAMP Appliance

Asked by djtalreaktor on 2009-07-09

Hello
try to search and in 2 days period can not find answer for couple questions
I install lamp on free standing server and i am empress about your software but still have some questions

1 how to format my second hard drive using turnkey
2 how change www folder to use my second hard-drive as path for main site (in other words use 1 hard drive as os bootable and second one as site database

all suggestions welcome

Thank you in advance

Question information

Language:
English Edit question
Status:
Solved
For:
TurnKey Linux Edit question
Assignee:
No assignee Edit question
Solved by:
Alon Swartz
Solved:
2009-07-09
Last query:
2009-07-09
Last reply:
2009-07-09
Doug Stanley (doug-stanley) said : #1

I can probably help, but I'll need a little more info.

Did you install from the "server" cd, or the desktop cd? Basically, does it have a graphical desktop, or just a command line interface?

Doug Stanley (doug-stanley) said : #2

Oops, nevermind, didn't realize what "TurnKey" was. I'm not really familiar with that, so maybe I'll let one of the other people answer this.

djtalreaktor (djtalreaktor) said : #3

if i use ubuntu than I can format but in this case i use turnkey ...thats the problem i am facing ....

Best Alon Swartz (alonswartz) said : #4

TurnKey appliances are Ubuntu underneath, so whatever you can do in Ubuntu you can do on a TurnKey Linux appliance.

Firstly, you will want to partition and format your drive, see: https://help.ubuntu.com/community/InstallingANewHardDrive

Once thats done, you can move onto configuration. There are multiple ways to configure a setup you are referring to, for example, you can use symlinks, mount binding, or updating the configuration files.

Helpful hints:
  - apache2 default webroot is /var/www, configured in /etc/apache2/sites-available/default
  - mysql default location is /var/lib/mysql, configured in /etc/mysql/my.cnf (I think, I'm writing this from memory)
  - gotcha: don't forget to stop the deamons before moving the files/directories across (eg. /etc/init.d/mysql stop)
  - gotcha: you will need to either update the configuration or mount bind mysql, symlink won't work

I hope the above helps, let me know know if you need more detailed info.

djtalreaktor (djtalreaktor) said : #5

Thank you very much!!!!

djtalreaktor (djtalreaktor) said : #6

Thanks Alon Swartz, that solved my question.