a few questions upfront :
1. apache2 version ?
2. php5 version ?
3. mysql version ?
4. apache.conf file ?
5. php.ini configuration (zend, eaccelerator etc)?
6. are you using the LAMP server only for local use or are you using a dynamic DNS for hosting domains (doesnt matter if tld or sub)?
and last but not least : with what kind of script are you working ? not knowing what you're doing is like when your in the ocean and calling for help and the conversation would be like :
you : help, I'm sinking !!!
the guy who wants to help : give me you coordinates !
you : I'm in the ocean !
the guy who wants to help :
don't get me wrong, I don't want to be rude.