By kngeith on
I am trying to install with PHP 5.3 and Drupal 6.15 but I keep on getting the following error message:
Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal-6.15\includes\file.inc on line 902
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.
I have no idea how to resolve this, please help!
Comments
The Deprecated message should
The Deprecated message should have been fixed in 6.14 through #360605: PHP 5.3 Compatibility but unfortunately the fix is not quite complete yet. For possible workarounds have a look at http://drupal.org/search/apachesolr_search/Function%20ereg%20is%20deprec....
gpk
----
www.alexoria.co.uk
Deprecated: Function ereg() is deprecated .... line 902
Are you sure that you were modifying the default.settings.php file that was in your WAMP folder? Double check if you are modifying the default.settings.php file that stems from your WAMP folder. That is how I fixed it.
A way to change PHP version
Here's another way: TO CHANGE PHP VERSION IN MAMP
FIRST
determine that other version is available:
/Applications/MAMP/Library/modules [php5.2, php5.3]
IF SO, THEN
open a terminal
access dir: cd /Applications/MAMP/conf/apache
edit file: vi httpd.conf
find php: /php takes you to -> LoadModule php5_module modules/php5.3/libphp5.so
insert new version: LoadModule php5_module modules/php5.2/libphp5.so
comment out old: ## LoadModule php5_module modules/php5.3/libphp5.so
save: :wq
if running, turn off server (F12 or App icon for MAMP)
start server