My server’s restoration note

This post is very old, though its information is not useless at all. Please see here.

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)

My server’s restoration note(WindowsXPpro+apache2.2)

31/Oct/2009

    1. Download Apache_2.2.14-win32-x86-openssl-0.9.8k.msi from https://www.apache.org/dist/httpd/binaries/win32/
    2. Install it in the default place.
      –>C:Program FilesApache Software FoundationApache2.2

    3. 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.
    4. 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 “WEBexample” on drive D.

      Move index.html from C:Program FilesApache Software FoundationApache2.2htdocs to D:WEBexample.
      Access http://localhost/ or http://127.0.0.1/, and if the page “It works.” is displayed, it is O.K.

    5. Download ActivePerl-5.10.1.1006-MSWin32-x86-291086.msi from https://www.activestate.com/activeperl/
    6. Install it in the default place.
      –>C:Perl

    7. 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 “WEBcgi-bin” on drive D.

      Move printenv.pl from C:Program FilesApache Software FoundationApache2.2cgi-bin to D:WEBcgi-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

    8. Install agsmail.exe in the default place.
      –>C:Program FilesArGo Software DesignMail Server

      Configuration options

      Making a user

      The onfiguration of Mailer

      Confirmation of sending and receiving in Lan.

    9. Download php-5.2.11-Win32.zip from https://www.php.net/downloads.php
    10. Extract and Install it in the default place.–>C:PHP
    11. Rename php.ini-recommended to php.ini.

      Open php.ini and edit.

      extension_dir = “./” —->extension_dir = “C:PHPext”
      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.

    12. Download mysql-5.1.40-win32.msi from http://dev.mysql.com/downloads/mysql/5.1.html#win32.

    13. 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:WINNTsystem32
      and php_gd2.dll from C:PHPext to C:WINNTsystem32

    14. 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.

  1. 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.

  2. Access http://localhost/cgi-bin/MT/mt.cgi?
  3. Open appropriate ports on the router.

    Firewall’s setting of security software.

    Confirmation of sending and receiving in Wan.

This website uses cookies.