Having problems installing Drupal? See the Installation Guide for more information.

Module installation script

Has anyone written an installation module? Before I write one I thought I had better check that I am not reinventing the toaster.

I am desperately trying to become proficient in Drupal so I can use it as the main CMS for new sites, but installation of a new site is a real problem, especially if you have a $db_prefix defined.

The installation script should scan all module folders for new .mySQL files and then read them in, fix them according to the configuration settings.

Of course the really evil thing about installing modules is that some require patch files to be run. If the module folder contains patches then I suppose one sane thing (not that modules that require patches to other modules are completely sane) would be to generate an optional warning (if you don't want a warning then delete the patch file after running it).

As it is right now, almost every module must have the database tables manually edited to add the prefix and then manually installed, every time you add a new site.

Hopefully soon, Drupal modules will have an install hook. Of course, there is no reason that it couldn't be handled by each mod

MYSQLHOST installation error

Hi guys,

I have just installed Drupal in one of my domain directories through a control panel. This content management system installation is offered free with my hosting. The control panel did everything for me, which i though it would be ok. I did not receive eny errors during the set up but when i try to open the site it comes up with this:

Warning: mysql_connect() [function.mysql-connect]: Unknown MySQL Server Host '' (1) in /home/#####/public_html/drupal/includes/database.mysql.inc on line 31
Unknown MySQL Server Host '' (1)

themes instaltion problem

I installed theme engine and theme and when i choosed theme (Democratica) it says:

Fatal error: phptemplate_init() [function.require]: Failed opening required '' (include_path='.;c:\apachefriends\xampp\php\pear\') in C:\apachefriends\xampp\htdocs\drupal\themes\engines\xtemplate\phptemplate.engine on line 5

Please help and thx, Hrpo

Unsupported database type Error.

Hello

I've just downloaded the latest version of Drupal to use for a website that i wish to create.

Now I'm using host.sk as my provider on a free account.
In the Database section it says:

How can I access my MySQL database?

You can create your db at https://www.host.sk/users/mydb/. Accessing your MySQL database by your PHP scripts use following db address:
MySQL Server - db.host.sk (port 3306)
Where should I find MySQL manual?

My active databases

Database type: MySQL

Database server: db.host.sk

Database name: benmc

Database login: benmc

Date of creation: 28.05.2005

Now i've followed the Drupal Instructions Handbook but it does not seem to work.
The Unsupported database type message is displayed.

In the settings.php file i've changed the following to:

Database URL format:
* $db_url = 'mysql://username:password@localho­ st/database';
* $db_url = 'pgsql://username:password@localho­ st/database';
*/
$db_url = 'http://db.host.sk://benmc:*****@localhost/benmc';
$db_prefix = '';

and

$base_url = 'http://benmc.host.sk';
.

Now if i keep the Database URL as
* $db_url = 'mysql://benmc:******@localhost/benmc';

The following message is displayed on my homepage.

Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /mnt/storage/users/b/e/n/benmc/includes/database.mysql.inc on line 31

project module w/ 4.6.0

I'm having trouble getting the project module up and running. I've never used it before, so I'm not sure if everything's working the way it should be. Things don't seem 'right', and when I visit the issues page, I get this:

syntax error at or near character 22 on line 45 in database.pgsql.inc

Hello,

Installed drupal yesterday on my trustix (www.trustix.org) 2.2 system, but i am getting the "white screen of death" when pointing my browser at http://greenleaf/drupal . The system shows the following in /var/log/httpd/error_log:

Pages

Subscribe with RSS Subscribe to RSS - Installing Drupal