From: Sunil J. <pav...@co...> - 2004-02-25 06:24:39
|
Gregg: hi. Thanks for pointing me in the right direction. Indeed by changing the configuration options for use authentication in the phpESP.ini.php file I was able to resolve the problem. Silly me, I had not changed the MySQL database details! With that change in place, the problem is resolved. Here is a log of the problem and solution. Probably very basic for most phpESP users, but if a newbie stumbled in installation, this might help: Installing phpESP on a webserver running PHP in Apache module instead of CGI Problem: After uploading the software, and going to the admin directory > http://...../phpESP/admin/ > an popped up {Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request} A quick check of test.php showed > PHP information > .... > SAPI: cgi > ..... Gregg informed me that the problem is that phpESP requires PHP to be running in CGI mode. The work around to get it working on PHP running in Apache module is to disable the authentication in the phpESP.ini.php file in the admin directory. The two lines that I changed were the following: > // Use authentication for designer interface (I changed it from true > to false) (BOOLEAN) > $ESPCONFIG['auth_design'] = false; > > // Use authentication for survey responders (I changed it from true to > false) (BOOLEAN) > $ESPCONFIG['auth_response'] = false; > > Then, i created a database one my webserver, and changed the information related to the MySQL host, the username, the password and database name in the same file. Uploading this file to the admin directory and going back to http://....phpESP/admin this time brought up the phpESP management page. Problem solved. One additional problem remains: Protecting the admin directory using htaccess. To protect the admin directory, i used one of the many htaccess password generators available freely on the web. the one i used is http://www.webmaster-toolkit.com/htaccess-generator.shtml One generates a script for "htaccess" and an encripted password for the "htpasswd" file using the generator. Both files are saved as text files locally, and uploaded in ASCII format to the admin directory. Once there, the files are renamed to include a "period" before the file name and removal of .txt suffix [ .htaccess and .htpasswd ] which renders the files invisible. The admin directory is now password protected. Thanks for your help. -Sunil |