Join or Login

Archive for March, 2008

Adding Xdebug to Wampserver 2.0

by me

A simple method to add Xdebug to your Wampserver 2.0. This is one of the best debugging program for php out there.

First you will need to goto Xdebug.org and download the module that corresponds with the version of php you are running. It should be a .dll file. After you download the file open up your wamp folder. Now goto your bin folder and click the php folder.  Now click the php version folder, in this case it will be the php5.2.5 folder, and then click the ext folder and add the dll file that you downloaded from the Xdebug website. the file should be php_xdebug-2.0.2-5.2.5.dll.  Or to make it easier download the file to the ext folder before mentioned.

Open up your php.ini file from the Wampserver indicator in your task bar and find
;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;

In the list of dynamic extensions type in
extension=php_xdebug-2.0.2-5.2.5.dll
and then restart all services. There you go you now have Xdebug on your server, for more information on how to use Xdebug please read their documentation.

Update: April 12, 2008,
Xdebug will work using this method, but will throw an error in your php log for the correct way you should change the before mentioned code from
extension=php_xdebug-2.0.2-5.2.5.dll
to
zend_extension_ts="C:/wamp/bin/php/php5.2.5/ext/php_xdebug-2.0.3-5.2.5.dll"

How to enable PERL in Wampserver 2.0

by me


This is how I enabled PERL in Wampserver 2.0.
Before I begin, here is my computer information: Windows XP service pack 2, Wampserver 2.0.
I first downloaded PERL from active Perl. Then I opened my wamp “www” directory and added a file called cgi-bin.
Now untar your your PERL tarball and open up the folder called Perl that was just made. Open up the folder called ActivePerl-5.8.8.822-MSWin32-x86-280952. Click on Installer your will now be in a command prompt window. When given the option “[c:\Perl]“, type in “C:\wamp\bin\perl”,  this keeps the PERL language separated just like the PHP, Apache, and MySQL.
Now the fun stuff. Open up your apache httpd.conf file by clicking the wampser icon located in your windows task-bar going to Apache and clicking the httpd.conf icon. Look for 

<Directory "cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

Now change this to 
<Directory "C:/wamp/www/cgi-bin">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

Now go down and find ” <IfModule mime_module>” you should see “#AddHandler cgi-script .cgi” uncomment this, i.e. remove “#”, and change to “AddHandler cgi-script .pl”. When you do make perl scripts you will have to use “#!c:\wamp\bin\perl\bin\perl.exe” to call the PERL scripting engine. You could even add index.pl to your Directory indexes, but they would probably only work in your file cgi-bin.
I hope this helps you out. Please remember I only use Wampserver as a testing server never online and I do not think this is the clean way of doing it, but it works for me.

Powered by WordPress