MyComputingArt (circa 1993)

Sat, 28 Oct 2006

Remove XP Pro or Win Server 2003 bandwidth limit
Run Group Policy (gpedit.msc) and go to Computer Configuration -> Administrative Templates -> Network -> QoS Packet Scheduler and change "Limit reservable bandwidth" to "Enabled" with a value of 0%. By default it appears disabled but read the description and you'll discovered it's enabled with a value of 20%.
[
/configurations/windows] permanent link

Sun, 10 Sep 2006

WAMP & Perl - Windows Apache, MySQL, PHP with CGI scripts written in Perl
I need Perl to run
Blosxom, an open source and free CGI script to create blogs.
So I installed WAMP5 1.6.4a and ActivePerl 5.8.8.817 with MSI installer.
I already have my site on my disk, so I told my site directory to WAMP during the setup procedure and then I pointed my browser to http://localhost/index.cgi but it displayed the cgi instead of executing it.
This is what I did to make it work:

See full post ...


[/configurations/windows] permanent link

Sun, 27 Aug 2006

Running PHP scripts from command-line with WAMP (Windows Apache, MySQL, PHP)
On my old pc I installed Apache, MySQL and PHP singularly, and I made some PHP scripts to be runned from command-line, like this:

c:\php\php -f myscript.php
On my new pc I installed WAMP5 1.6.4, all was running fine (phpMyAdmin, my local website, php scripts pointed to by the browser) but php scripts launched by command-line reported
Fatal error: Call to undefined function mysql_connect() in myscript.php
Obviously I changed the php path to c:\wamp\php\php but with no results.
Solution: change the command to
c:\wamp\php\php -c c:\wamp\apache2\bin -f myscript.php
The -c option tells php to search php.ini in the directory specified, and that's needed because WAMP puts php.ini in Apache bin directory, while with a PHP regular installation php.ini is located in the php.exe directory.
[
/configurations/windows] permanent link


Powered by Blosxom.