As my server machine had finally broken on October 5th, I was using a notebook as a temporally server for a while. To manage to repair the former server machine I struggled for one month, but when breaking again just after it came to work, I gave up at last. So I bought a secondhand machine for a server.
Thus, this is its restoration note. (01/Nov/2009)
-
Download Apache_2.2.14-win32-x86-openssl-0.9.8k.msi from http://www.apache.org/dist/httpd/binaries/win32/
-
Install it in the default place.
–>C:\Program Files\Apache Software Foundation\Apache2.2

-
Select the radio button ‘Typical’, and install it.
Check on start. Access http://localhost/ or http://127.0.0.1/, and if the page “It works.” is displayed, it is O.K.
-
Remove ‘#’, the head of line “ServerName localhost:80″.
Change DocumentRoot to “D:/WEB/example”.
Change following points.
# This should be changed to whatever you set DocumentRoot to.
#
<Directory “D:/WEB/example”>
Options Indexes FollowSymLinks —-> Options FollowSymLinks
DirectoryIndex index.html —->DirectoryIndex index.php index.html index.htm
Make a directory “WEB\example” on drive D.
Move index.html from C:\Program Files\Apache Software Foundation\Apache2.2\htdocs to D:\WEB\example.
Access http://localhost/ or http://127.0.0.1/, and if the page “It works.” is displayed, it is O.K.
-
Download ActivePerl-5.10.1.1006-MSWin32-x86-291086.msi from http://www.activestate.com/activeperl/
-
Install it in the default place.
–>C:\Perl

-
Edit apache’s httpd.conf.
Change ScriptAlias —->ScriptAlias /cgi-bin/ “D:/WEB/cgi-bin/”
<Directory “D:/WEB/cgi-bin”>
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
Remove ‘#’ from “AddHandler”, add .pl
Make a directory “WEB\cgi-bin” on drive D.
Move printenv.pl from C:\Program Files\Apache Software Foundation\Apache2.2\cgi-bin\ to D:\WEB\cgi-bin\
Open it and edit the first line to ‘#!C:/Perl/bin/Perl’
Access http://localhost/cgi-bin/printenv.pl, and if the list of environment variables is displayed, it is O.K.
Delete the file ‘printenv.pl’ for security reason.
01/Nov/2009
-
Install agsmail.exe in the default place.
–>C:\Program Files\ArGo Software Design\Mail Server
Configuration options





Making a user

The onfiguration of Mailer



Confirmation of sending and receiving in Lan.
-
Download php-5.2.11-Win32.zip from http://www.php.net/downloads.php
-
Extract and Install it in the default place.–>C:\PHP
-
Rename php.ini-recommended to php.ini.
Open php.ini and edit.
extension_dir = “./” —->extension_dir = “C:\PHP\ext\”
Remove ‘#’ from extension=php_mbstring.dll
Remove ‘#’ from sendmail_from, and edit to sendmail_from = example@example.com
About [mbstring], remove ‘#’ and edit.
mbstring.language = Japanese
mbstring.internal_encoding = UTF-8
mbstring.http_output = UTF-8
Open apache’s httpd.conf and edit.
AddLoadModule php5_module “C:/PHP/php5apache2_2.dll”
Add the next two lines to the last part of <IfModule mime_module>
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Under that, add the next four lines.
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
PHPIniDir “C:/PHP”
</IfModule>
Add value “;C:\PHP” to the path of environment variables.
Make the file test.php(Its contents is <?php phpinfo() ?>) and access http://localhost/test.php. If the list shows up, it’s O.K.
Delete the file ‘test.php’ for security reason.
-
Download mysql-5.1.40-win32.msi from http://dev.mysql.com/downloads/mysql/5.1.html#win32.












-
Download phpMyAdmin-3.2.3-english.zip http://www.phpmyadmin.net/home_page/index.php, and extract.
Rename phpMyAdmin-3.2.3-english to phpMyAdmin and remove this folder to DocumentRoot.
Open php.ini and remove ‘#’ from next three lines.
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_gd2.dll
Move libmysql.dll from C:\PHP to C:\WINNT\system32\
and php_gd2.dll from C:\PHP\ext to C:\WINNT\system32\
-
About .db import.
Log in using MySQL Command Line Client and make a database and a user for MT4.
create database mtdb;
grant all privileges on *.* to example@localhost IDENTIFIED by ‘passphrase’;
Access to http://localhost/phpMyAdmin/, log in as example.
Import database(s).
Delete the folder ‘phpMyAdmin’ for security reason. It’s easier than to add permitions to the files because my home server is only for me.
-
Download ImageMagick-6.5.7-3-Q16-windows-dll.exe from http://www.imagemagick.org/script/binary-releases.php#windows, and install it in the default place.

After that, you have to reboot your windows system. <—-This is very important.
Copy web files to proper directories of DocumentRoot.
Move mt-check.cgi to the folder ‘MT’ and access http://localhost/cgi-bin/MT/mt-check.cgi?
Probalbly some required modules are displayed. Next, resolution.
Install DBD-mysql and Mail-Sendmail by Perl package manager.
Access http://localhost/cgi-bin/MT/mt-check.cgi?again.
Delete mt-check.cgi for security reason.
-
Access http://localhost/cgi-bin/MT/mt.cgi?
-
Open appropriate ports on the router.

Firewall’s setting of security software.
Confirmation of sending and receiving in Wan.