By treanor on
I tried to install drupal but when i get to the Install profile it seems to skip this or an error occured. I think the error could be the settings.php file - Im supposed to type in the following
$db_url = ‘mysql://root:admin@localhost.drupal’;. Is the code typed in at the opening of the file and is the code below typed at the closing of the file could you please direct me.
Then scroll down and enter $base_url = ‘http://localhost/drupal’;.
Comments
not really
Usually it is not necessary to do anything to the settings.php file if you are not installing in a sub folder or subdomain, not using a remote database etc. Just ensure that settings.php is writable then remove write permissions after install. In this regard Drupal is easier than WP, though in some others not. settings.php is written automatically during the installation, db name, user and password are entered during the installation process via the browser.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
Installing Drupal
How can I make this file writable ?.
Why are you doing this?
Where are you instructed to do this?
Installing Drupal
It said above the settings.php file has to be writable. I just want to know when Installing drupal when i get to install profile an error occurs. Can you help.
Start over
Do not type anything into any files.
Follow the directions at http://drupal.org/documentation/install/settings-file
Note that making files writeable is specific to your operating system and has nothing in particular to do with Drupal.
OS-specific instructions are on following pages.
Installing Drupal
It said when installing drupal 7 with xamp it said type into the settings file.
http://drupal.org/documentation/install/windows
you are right it does
Sorry, I have never had to do that to get Drupal working on XXAMP.
Still getting a good environment running on Windows can be tricky, especially if you hit some Microsoft bugs. Debugging problems connecting to db can be complex. I have minimal experience of xampp and certainly find it considerably harder than setting up Linux.
If you are not happy about putting linux on a desktop or laptop (can be alongside Windows), and you are not happy about working on a remote server, you could take the easy route of using Acquia dev desktop for Windows.
Beyond that we are into the problems of debugging database access which can be tough AND debugging Windows, which even Microsoft cannot do (for example on my xampp folder, on a brand new laptop with Windows 7, I cannot remove Read Only setting: Microsoft have known about this bug on certain folders for almost a decade, but in effect admit they cannot fix it).
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
ps
having said all that, it is worth checking you have a user name for the database who can connect to the database. Did you set up a db user? There are ways to test this, see this page http://dev.mysql.com/doc/refman/5.0/en/access-denied.html (which also indicates the potential complexity of the problem). And of course check that mysqld is running.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
Installing Drupal
Yes I have a database user it is the user name i use to log into Phpmyadmin and i have set up a password. I have created a database in phpmyadmin called drupal. All the data is entered correctly in the database config but when i go into advanced options the database host is correct (Localhost). I could have to specify a database port and I think i should type in a table prefix because my database is being shared by other applications. (phpmyadmin and MySQL bence 5.5). It is linked because although it doesnt install properly I view the database in Phpmyadmin and MySQL bench all the appropriate tables have being installed. Could you help with advanced options in database config.
dot
TBH I do not have much appetite or skills for getting stuck in with Windows, Linux is difficult enough.
However, I will say that if you look at this code and work out what is going on, it may help you. The advice you linked to says 'you could put Drupal in a sub folder and make the path localhost.drupal . That has to be wrong, the path would have to be localhost/drupal unless I am missing something? What I would suggest is that you forget about the sub folder for now. Get your xampp page working with just the path localhost in browser. Then just stick drupal direct in htdocs, replacing index.html or whatever is there, to see if Drupal works. Then you can work on the more advanced step of putting it in a sub-folder, if that is way you prefer to work.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
Installing Drupal
I got the error when install got to site config
Fatal error: Call to undefined function field_attach_load() in C:\xampp-win32-1.7.7-VC9\xampp\htdocs\drupal\includes\entity.inc on line 320
see this
http://drupal.org/node/481758
and thread for D8 linked from there.
Check field module is present and enabled. Check you have current version of Drupal (7.9). If still a problem study these threads, if you are still struggling to understand the issues post again.
Digit Professionals specialising in Drupal, WordPress & CiviCRM support for publishers in non-profit and related sectors
fixes for this class of issue
I have researched this and related issues - often collectively referred to as "The 31 Tables Problem", because it interrupts the table creation process before all 73 or so tables are loaded. See this comment for a semi-exhaustive list of things that have helped people work through this issue. If your fix does not appear in my list, contact me and I will add it to the comment.