correcting build for websites using session and writing files to the server via Apache