I don't really understand the problem.
I think your trying to acomplish to much at the same time. And insert a linux web server into what?
Try the following steps first.
1. setup your linux computer to test your website local(
http://localhost/. The setup is important for your .php files mainly.
-Install apache and mysql(or any sql)
-the easyest way to install mysql and apache is xampp or easyPhp this will do all configurations for you.
2. Learn the basics of php and sql w3c schools is a exelent site to learn these things.
3. when your done with your website put your website on a webserver.
Hope these where the awnsers you where looking for.
Good luck
__________________________________________________ ________
This is my junk I'm gona eat it