By engin on
My Apache docroot is /home/engin/www where I installed all drupal files. Now I need to install some php script bu drupal autmatically asks for database connectivity problem when I try to run these scripts.
Warning: include_once(./sites/default/settings.php) [function.include-once]: failed to open stream: No such file or directory in /home/engin/www/includes/bootstrap.inc on line 243
Warning: include_once() [function.include]: Failed opening './sites/default/settings.php' for inclusion (include_path='.:/usr/share/php:/usr/share/pear') in /home/engin/www/includes/bootstrap.inc on line 243
Warning: Cannot modify header information - headers already sent by (output started at /home/engin/www/includes/bootstrap.inc:243) in /home/engin/www/includes/common.inc on line 141
Unsupported database type
The database type is unsupported. Please use either mysql for MySQL 3.x & 4.0.x databases, mysqli for MySQL 4.1.x+ databases, or pgsql for PostgreSQL databases. The database information is in your settings.php file.
For more help, see the Installation and upgrading handbook. If you are unsure what these terms mean you should probably contact your hosting provider.
Comments
Your problem is the first
Your problem is the first line.
No file was found at /home/engin/www/sites/default/settings.php where the bootstrap expected to find the instructions about, among other things, the name of the database.
Your Drupal distribution is incomplete, or not set up.
You don't describe what 'other' script you are trying to run, but you are probably not calling it by its full name. be sure to add the filename to your URL when you request it.
Even better, don't put it in your root if you expect to be able to run Drupal as well, use a subdir.
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards
I deleted the default entry in the sites directory
I have multi site so i delete the default entry because each site has its own. Ok I will mv drupal files to a sub directory.
Other script which I want to run is phpExcelReader. and I put it under /home/engin/Spreadsheet
and the file I want to execute is /home/engin/www/Spreadsheet/example1.php
Then your scripts are not in
Then your scripts are not in the www directory, they are under it. See the troubleshooter on running non-drupal subdirectories
.dan.
How to troubleshoot Drupal | http://www.coders.co.nz/
.dan. is the New Zealand Drupal Developer working on Government Web Standards