Hi,

I am just installed the latest build of XAMPP (XAMPP for Windows 1.7.2). I used this guide to install Drupal on XAMPP (http://drupal.org/node/307956). It worked well except for some issues, the instructions state that there will be a "default.settings.php" file in the "default" folder, except in 5.19 there is only "settings.php." Do the instructions still apply or should I copy "settings.php" and create "default.settings.php?"

Anyways, I tried having both and having just "settings.php," I was able to set up a MySQL and PHPMyAdmin username/password, so I don't think that was the issue.

When, I enter "localhost/drupal/install.php" I get a whole punch of code/errors in red, it looks bad, yet the installation is successful, the errors that show up are below. These errors showed both when I had only "settings.php" in the "default" folder, and when I had "default.settings.php" and "settings.php"

_____________________________________________________________________________________________________

Drupal installation complete

* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* : Function ereg() is deprecated in C:\xampp\htdocs\drupal\includes\file.inc on line 646.
* warning: syntax error, unexpected BOOL_TRUE in modules/comment/comment.info on line 3 in C:\xampp\htdocs\drupal\includes\module.inc on line 195.
* warning: syntax error, unexpected BOOL_TRUE in modules/drupal/drupal.info on line 3 in C:\xampp\htdocs\drupal\includes\module.inc on line 195.
* warning: syntax error, unexpected BOOL_TRUE in modules/node/node.info on line 3 in C:\xampp\htdocs\drupal\includes\module.inc on line 195.
* warning: syntax error, unexpected BOOL_TRUE in modules/poll/poll.info on line 3 in C:\xampp\htdocs\drupal\includes\module.inc on line 195.

All necessary changes to ./sites/default/settings.php have been made. It has been set to read-only for security.

Congratulations, Drupal has been successfully installed.

Please review the messages above before continuing on to your new site.

___________________________________________________________________________________________________________

Should all these errors be of concern? I do not want to start work on a website and then realize that that I can't transfer it to a live server etc.

Thanks

Comments

theohawse’s picture

Looks like the instructions you were following at http://drupal.org/node/307956 are written for drupal 6.

The copy and renaming of settings.php is just good practice so you don't lose your original file.

Usually I have 3 different settings files while working locally:
default.settings.php (original drupal file)
live.settings.php (copy of settings from online hosted location)
settings.php (current localhost setup)
-This way I can just switch(rename) files when it comes to uploading live/downloading for maintenance/experiments.

-You will need default.settings later if you wish to do a multi site setup.
-drupal only looks for "settings.php" and will not read any other files like live.settings.php or default.settings.php.
-Right-click properties will allow you to change read only settings.

Those big error blocks aren't uncommon while working with drupal, I'm sorry but I've never seen the error myself so I can't help.
Maybe try running updates and the cron, if you see no errors then it should be all good.

Why are you starting with drupal 5 anyway? The module developers are all talking about drupal 7 already....

Cheers!

Stomper’s picture

Thanks for the reply.

Yes, you are correct, those directions are for Drupal 6, but I thought the process must be similar to Drupal 5. If I were to not modify the "settings.php" file, would it affect XAMPP and how it handles Drupal?

I am using Drupal 5 because there a some modules, mainly from UberCart that are not supported in D6, or D7 for that matter.

The errors I noted above occur when I install Drupal for the first time onto the local host, how would running updates and a cron affect those errors if they can only be done AFTER installation?

Thanks again

theohawse’s picture

I'm pretty certain that pretty much the only purpose of settings.php mainly, is to tell drupal where to find your database.
Besides that, you'll need the base url setting if your using fckeditor with image upload.

So to answer your question: NOT modifying your settings.php will prevent you from installing because drupal won't be able to find the database.

Checkout: http://drupalmodules.com/module/ubercart
-Looks like ubercart is d6 compatible,but I would still really recommend d6 over d5.
Mostly due to the problem that some modules don't have a proper upgrade path from d5-d6,
while the upgrade to d7 from d6 is forecasted to be a lot easier and more straightforward.

Finally, the errors usually re-manifest themselves at the updates screen, so you could use it to check for the problem again.

It's up to you but I'd just try a copy of d6 in another db to see if the errors are consistent in both versions.
Most likely this is an issue with your local amp server and not drupal itself.

Also I'd recommend using WAMP instead of XAMP, I've had less issues with it.

Stomper’s picture

****************************
edit:

The problem has been fixed, largely because I am an idiot and the help of this guide (http://drupal.org/node/307956#comment-1919620). As it says in the first line, Drupal does not install correctly in XAMPP 1.7.2 due to PHP versioning, the latest Drupal is not PHP5.3. I had to track down XAMPP for Windows 1.7.1 which was rather straightforward, just use Google.

Thanks for everyones help

*****************************

Thanks for the feedback.

The main reason I am sticking with D5 is because I would like to integrate UberCart's Marketplace Module. As of now, they have no D6+ version.

I will definitely take your advice on seeing whether D6 throws the same errors upon installation. The current XAMPP I am using is the very latest version. I think I read somewhere it has to do with versioning of the PHP or something within XAMPP that causes the errors upon installation. Not sure though.

I've debated on whether using WampServer over XAMPP. I will try Wamp both with D5 and D6. Are there any features that I would miss out if I adopted WampServer? Any complications when it comes to moving the website to a live server, perhaps a Linux server?

Thanks

blackmarketeer’s picture

I had to revert back to XAMPP 1.6.8 to avoid all the PHP "deprecated" issues. As you noted, Drupal 6.13 is not working fully with PHP 5.3 (which is what XAMPP 1.7.2 ships with). Older versions of Xampp will get you around that problem.

Stomper’s picture

Apologies if this should be in it's own thread, but it is related to XAMPP and installation issues. Basically, following the steps in the node listed above (http://drupal.org/node/307956#comment-1979392) I get these errors upon install of D6.13:

_________________________________________________

Requirements problem
The following error must be resolved before you can continue the installation process:
The Drupal installer requires that you create a settings file as part of the installation process.

1. Copy the ./sites/default/default.settings.php file to ./sites/default/settings.php.
2. Change file permissions so that it is writable by the web server. If you are unsure how to grant file permissions, please consult the on-line handbook.

More details about installing Drupal are available in INSTALL.txt.

Please check the error messages and try again.

_______________________________________________

What do I need to do to fix it and successfully install D6? I had a look into the install.txt file but am unsure about which steps apply to the issue and in which files do the code fragments go. Suggestions appreciated.

silverwing’s picture

1. in the /sites/ folder where default.settings.php actually is, you can simply copy that file and rename it settings.php (you need both default. and the regular settings.php in the folder.)

2. Usually creating the file is enough, but if not I believe you can change the file through the 'property' setting when you right click on it. (Or, if you can use your ftp transer program to change the settings.)

~silverwing - not a windows user

Stomper’s picture

Thanks.

So you are saying there should be a default.settings.php, a modified settings.php, and a unmodified settings.php file in the sites/default folder, correct?

silverwing’s picture

/site/default/default.settings.php
................./settings.php

Just two. (the an unmodified settings.php wouldn't work)

Stomper’s picture

I already have the modified settings.php and the unmodified default.settings.php in the site folder, and it's still causing installation issues.

___________________

*edit*

While Googling around I found a tutorial that discussed handling Drupal file permissions (http://salinaitmind.blogspot.com/2009/05/how-to-setup-drupal-site-in-loc...). It included some code intended to change file permissions that involve settings.php.

___________________________

" Make the settings file writeable, so that the installer can edit it

chmod a+w sites/default/settings.php
or
chmod 666 sites/default/settings.php

Both commands have the same effect. Several FTP tools like Filezilla, Transmit, and Fetch allow you to change file permissions, using a 'file attribute' or 'get info' command. In this case the octal or numeric value file permission should be set to 666. "

____________________________

Where do this code fragments go? Inside settings.php? Where? Which line? Or via the command line in XP?

Before I enter the above code fragments, can/should I modify settings.php to include the localhost username, password and database? Or will that information be entered/handled in the next step on installation?

Stomper’s picture

I tried to change the file permissions following this guide (http://drupal.org/node/202491) but to no avail. I do not have an "Internet Guest Account" under the "Security" tab. Do I create one? How so? How should it be named/titled?

Thanks

silverwing’s picture

I don't use windows enough to know. What I've done in windows is use my FTP program to get to the file on the computer and change permissions that way.

Stomper’s picture

Problem solved. Thanks for everyones' help. It was a very simple fix, and I overlooked every time I reattempted to install 6.13. Had nothing to do with file permissions.

When I copied and renamed default.settings.php to settings.php, I mistakenly entered "settings.php" instead of just "settings" thus the file becamse "settings.php.php" and Drupal could not read/access the file and proceed with installation.

Thanks for the help, sometimes its the simplest things. Now I have 6.13 installed and running nicely!

joris.verschueren’s picture

Just in case someone ends up on this thread because of the syntax error, unexpected BOOL_TRUE in modules/comment/comment.info on line 3 on a live site - or doesn't want to downgrade the XAMPP installation - it seems that these errors are indeed triggered by PHP 5.3.
for a solution see: http://drupal.org/node/722430