At previous post about install drupal in localhost using wamp I got this message :

Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\includes\file.inc on line 902

That message appear because I use latest wamp software that utilize php 5.3.0 where ereg() function is deprecated.

Quick solution for this case are :

1. Downgrade wamp to previous version

or

2. Edit php source file of drupal.

I prefer to choose second solution since I love to learn new thing icon smile Deprecated: Function ereg() is deprecated when install Drupal

I have tried a few php function likeĀ  preg_replace() and mb_ereg()

After test each function I think mb_ereg() is good solution.

Back to the problem I open file :

file.inc

C:\wamp\www\drupal\includes\file.inc


scroll to line 902.

drupal ereg Deprecated: Function ereg() is deprecated when install Drupal

change ereg in line to mb_ereg to make the line transform into :

elseif ($depth >= $min_depth && mb_ereg($mask, $file)) {

Save the file and retry open http://batikweb.com

This time I got this :

install drupal Deprecated: Function ereg() is deprecated when install Drupal

Nice, I can continue to installation steps icon smile Deprecated: Function ereg() is deprecated when install Drupal

Stay health!

 

After reading my post about howto install drupalĀ  in localhost with xampp I receive email from a reader via contactform ask me to post about install drupal on Wamp with other facility such as :

  • Fake domain (batikweb.com)
  • Clean url feature
  • Send Email ability
  • VirtualHost support

Well, I try to make his wish come true icon smile Step by Step Install Drupal on Wamp : Add Domain

Add Domain

I adopt the same way as I use for my tutorial on how to add domain on wordpress.

drupal add domain localhost Step by Step Install Drupal on Wamp : Add Domain

Download Drupal

Download latest drupal from drupal project.

drupal downloadt Step by Step Install Drupal on Wamp : Add Domain

Save and extract to C:\wamp\www

extract drupal Step by Step Install Drupal on Wamp : Add Domain

At the moment I have new folder with name :

drupal-6.14

Rename this folder to drupal .

Setting VirtualHost

Open file :

1. httpd.conf

C:\wamp\bin\apache\Apache2.2.11\conf\httpd.conf

go to line 466 and remove the # in front of the line.

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

Save the file.

2. httpd-vhost.conf

C:\wamp\bin\apache\Apache2.2.11\conf\extra\httpd-vhosts.conf

Add these lines :

<VirtualHost *:80>
ServerAdmin alam@batikweb.com
DocumentRoot “C:/wamp/www/drupal”
ServerName batikweb.com

<Directory “C:/wamp/www/drupal/”>
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Deny from all
Allow from 127.0.0.1

</Directory>

</VirtualHost>

Save the file.

Start WampServer.

Open http://batikweb.com

I got these error in drupal

Deprecated: Function ereg() is deprecated in C:\wamp\www\drupal\includes\file.inc on line 902

Great, I use latest wampserver that use php 5.3.0 that deprecated function ereg().

The solution is simple, I’ll post it in next post.

Got to go now, stay health!

 

When I try to reconfigure Axigen email server to use other port I see this message :

For some reason, the Axigen Config Wizard has failed. Please check the Event Viewer for details.

axigen failed 1 Axigen Email Server Failed : My Bad

Click Exit and click Start -> Administrative Tools -> Event Viewer

Continue reading »

© 2011 Hosting Formula Suffusion theme by Sayontan Sinha