From: Phyllis R. <pbr...@co...> - 2005-10-16 18:48:26
|
I'm sure this question has been asked, but I'm unable to find a specific example of the phpesp.ini parameter settings. I'm sure the solution is simple, but I don't know enough about this web environment to figure out what changes I need to make. When I execute the admin/index page, I = receive the following error: HTTP 503 Service Unavailable [ Connection to database failed. Please check configuration. ]=20 Following are the parameters I've set for my particular installation. =20 =20 * Here are all the configuration options. */ =20 // use http or https? $ESPCONFIG['proto'] =3D 'http://'; =20 // Base URL for phpESP ******** I'm sure my website address goes here somewhere, but don't know where to specifiy it. ******** I have tried the following statement, but still got the 503 = error $ESPCONFIG['base_url'] =3D $ESPCONFIG['proto'] . = $server['www.mywebsite.com'] . '/phpESP/'; =20 $ESPCONFIG['base_url'] =3D $ESPCONFIG['proto'] . $server['HTTP_HOST'] . '/phpESP/'; =20 // URL of the images directory (for <img src=3D'...'> tags) $ESPCONFIG['image_url'] =3D $ESPCONFIG['base_url'] . 'images/'; =20 // URL of the automatic survey publisher $ESPCONFIG['autopub_url'] =3D $ESPCONFIG['base_url'] . = 'public/survey.php'; =20 // URL of the CSS directory (for themes) $ESPCONFIG['css_url'] =3D $ESPCONFIG['base_url'] . 'public/css/'; =20 //URL for management javascript $ESPCONFIG['js_url'] =3D $ESPCONFIG['base_url'] . 'js/'; =20 // Database connection information $ESPCONFIG['db_host'] =3D 'localhost'; $ESPCONFIG['db_user'] =3D 'myuserid'; $ESPCONFIG['db_pass'] =3D 'mypassword'; $ESPCONFIG['db_name'] =3D 'mydatabasename'; =20 =20 I would appreciate any help that anyone can provide. =20 =20 Thanks. PB Rose |