From: Peter W. <pet...@cc...> - 2005-09-20 22:40:03
|
I am trying to install phpESP 1.7.5, and have almost got it working, but for one problem When I try to access it (http://localhost/phpESP) I get the following error message HTTP 503 Service Unavailable [ Connection to database failed. Please check configuration. ] I have edited phpESP.ini.php and I can connect to the database using mysql -u phpesp -p phpesp. I must be missing something obvious, and would appreciate some help. Here's my test.php info, and I have attached the start of my phpESP.ini.php file as well (I've XXXX'd the password I'm using). Peter Walker PHP Information * Version: 5.0.4 * OS: Darwin * SAPI: apache * register_globals: No * magic_quotes_gpc: No * magic_quotes_runtime: No * safe_mode: No * open_basedir: PHP Extensions * dBase: Yes * GD: Yes -- bundled (2.0.28 compatible) * GNU Gettext: Yes * LDAP: Yes * MySQL: Yes * PHP Extension Dir (compiled): /usr/local/php5/lib/php/ extensions/no-debug-non-zts-20041030 * PHP Extension Dir (run time): ./ phpESP Settings * Expected ESP_BASE: /Library/WebServer/Documents/phpESP/ * Expected base_url: localhost/phpESP/ * Loading phpESP.ini.php ... * ESP_BASE: /Library/WebServer/Documents/phpESP/ * base_url: http://localhost/phpESP/ * Version: 1.7.5 * Debug: No phpESP Language Settings * GNU Gettext: Real * default_lang: en_US * current lang: en_US * available langs: da_DK, de_DE, el_GR, en_US, es_ES, fi, fi_FI, fr_FR, hu_HU, it_IT, ja_JP, nl_NL, pt_BR, pt_PT, sv_SE (da, de, el, en, es, fi, fr, it, ja, nl, pt, sv) * GNU Gettext test: Passed * Catalog Open Test: Yes PHP Session Test * session.save_path: * Counter: 3 // use http or https? $ESPCONFIG['proto'] = 'http://'; // Base URL for phpESP $ESPCONFIG['base_url'] = $ESPCONFIG['proto'] . $server['HTTP_HOST'] . '/phpESP/'; // URL of the images directory (for <img src='...'> tags) $ESPCONFIG['image_url'] = $ESPCONFIG['base_url'] . 'images/'; // URL of the automatic survey publisher $ESPCONFIG['autopub_url'] = $ESPCONFIG['base_url'] . 'public/ survey.php'; // URL of the CSS directory (for themes) $ESPCONFIG['css_url'] = $ESPCONFIG['base_url'] . 'public/css/'; //URL for management javascript $ESPCONFIG['js_url'] = $ESPCONFIG['base_url'] . 'js/'; // Database connection information $ESPCONFIG['db_host'] = 'localhost'; $ESPCONFIG['db_user'] = 'root'; $ESPCONFIG['db_pass'] = 'XXXXX'; $ESPCONFIG['db_name'] = 'esp'; |