Diagnosing PHP - Wiki
Errors and Symptoms #
- When accessing the management console, the browser window comes up blank or "page not found" is displayed
Applicable Versions #
The problem with the management console was that it was failing when trying to access the database because PHP did not have the mysql extension loaded. A way to get some diagnostics out of PHP is to do the following:
Go to the directory which the webserver is pointing to (in this case, C:\Program Files\Cisco Systems\Unfied Application Environment\mceadmin\public) and create a php file (like "test.php") and in the file, simply put this in:
<?php phpinfo(); ?>
Acess that page from the website, and it will give you a bunch of diagnostic and configuration information on PHP. mysql and mysqli should be listed as extensions loaded near the bottom of the page.
One possible reason the modules were not loaded was because it seemed to not able to find the php.ini file which contains a config path to point to the extensions. It thought it was in C:\WINDOWS, which there was none, so no default configs were set and php didn't know where to look for its extensions (should've been the install path of PHP). I fixed it by creating a SYSTEM environment variable called PHPRC which contains the install path to PHP. This was something the PHP installer should have done.
At the same time, I think it might be worth skimming this online PHP doc just in case you run into this kind of issue again.
If this alone does not solve your problem, see if you can find any hints by looking at the PHP error log stored in C:/Program Files/Apache Group/Apache/logs/php-error.log .