![]() |
Services | Software | Partners | Articles | Contact |
Drupal 4.8/5.0 now has an installerThe next release of Drupal will be 4.8 or 5.0, depending on what features make it by the September 1 code freeze. One feature that eases the installation process, is the long awaited automated installer. There is no need to manually create the database tables any more. Here are the steps for creating a 4.8/5.0 Drupal site, with the messages you are expected to see. Create the DatabaseIf you are on a shared host, then you create the database from the control panel provided to you. For example, this will be under MySQL in cPanel. You have to give the database a name, and create a database user with all privileges to the database you just created. Let us say you created a database called drupal, and a user called user1, with password gizmo. Run install.phpUp until Drupal 4.7, you had to a) edit the settings.php file, and b) create the database tables manually, either via MySQL command line or from PHPMyAdmin. These two steps were a bit too daunting for non-tech savvy users. This is now improved in 4.8/5.0. If you now point the browser to the site, it will detect that this is a fresh uninstalled site, and will run the install.php script for you. Before it can do that, you have to make the settings.php file writable to the web server users. If you do not do so, you will get the following error:
To do so, change the file mode to be writable. For example, in Linux you would do: chmod 777 settings.php Then again visit the site's url. Just point your browser to the site, and run the install.php script. http://example.com/ Once you do that, you will be presented with a screen that asks you for the database parameters. You will need to pick: Database typeSelect mysql if you are not using MySQL 5. Database nameEnter drupal here, or the name you used to create the database. Database userEnter user1 here, or the user name you used for the database above. Database passwordEnter gizmo, or the password you created above. Advanced optionsNormally you would skip these options, unless:
Click Save. If all goes well, you will now have the database tables created for you, and you will see the following message, complete with a Druplicon:
Note that if you needed to change the permissions for the settings.php file, you will need to reset those permissions, to avoid security issues. The installer will remind you to do so by the following message:
To do so, enter the following command: chmod 644 settings.php The installation is now complete. Create the first userOnce you click on the link, you will see the usual startup screen of Drupal, saying:
It is important to create the first user as quickly as possible once you see this page. Proceed with configuring DrupalThen follow the on screen links to configure your site to your liking, add modules, customize the look and feel, ...etc. Enjoy your Drupal site. Note: this article had an error in it that was pointed out to me by Jeff Eaton, Natalie, and Anonymous. It is now corrected. Thanks for the feedback folks. |



All in one installer
Hi,
There is an open source all-in-one installer for Drupal, MySQL, Apache and PHP. It will automatically configure MySQL and Apache, check for ports conflicts, create users, etc. You can download an use from BitNami Drupal Open Source stack site
Cheers
Daniel
Drupal Installer
The new installer is great. I've been setting up a lot of fresh 5.x installs lately, and it's a vast improvement over 4.7.
First time
I discovered this recently and it was definately an improvement over having to do it all manually, though it would be nice if it didn't throw all of those SQL errors the first time you look at the site. Could the install script perhaps be run the first time a user tries to visit the site?
Happened to me
This happened to me as well.
The reason is, if you have a settings.php that already has values for the database, user, and password, Drupal will assume that you indeed have configured it in the past, and tries to access the database, and come up with those SQL errors.
If you have a fresh settings.php (the one shipped with Drupal), you will not see the SQL errors, but an install screen where you enter the parameters.
I modified the article above to document the default behavior that most people should see, after a few people pointed this out to me.
--
2bits.com