building LAMP script