You can try upping the max execution time for php.
It's not likely to resolve the issue however since if it can't complete in 30 seconds, 300 likely won't fix it - unless you're running a large database import via the browser (or something).
sunsun What are you trying to do when you get this error? during the install?
Are there any errors in your webserver error log?