Now I have control over when Apache and MySQL begin and end running. After installing the mysql client and placing a php file that does nothing but run phpinfo(), I was able to successfully connect to mysql and observe that everything was functioning as expected. Adding error handling would likely strengthen the script.