Upgrading TYPO3 from 4.x to 4.y

This will take you through the steps of the upgrading TYPO3.

Select Tutorial:

   

Upgrade 3.x to 4.x - Step 2 - Prepare the Files

In order to prepare the new files on the server, you need a Secure Shell (SSH) program on your local computer, or some other method to login to your Unix/Linux server and enter commands. "Putty" is a common open source SSH program.

  1. Login to the remote server and change to the directory where the TYPO3 files are located. This is likely the root directory of your web server, and may be called "public_html."
  2. Unpack the TYPO3 source files with the command:
    tar -xzpvf typo3_src-4.0.tar.gz
  3. Now, due to changes in TYPO3 4.0, three Symlinks (typo3_src, index.php, tslib) must be changed and the showpic.php  file can be deleted. Your website will not operate once you start making these changes and you must complete the entire upgrade process before your website will be operational again. Enter the following commands/responses to remove old symlinks and to add the new ones.

       rm typo3_src
       y
       ln -s typo3_src-4.0 typo3_src

       rm index.php
       y
       ln -s typo3_src/index.php index.php

       rm showpic.php
       y

       rm tslib
       y
       ln -s typo3_src/typo3/sysext/cms/tslib tslib
  4. In order to enable the TYPO3 installation tool, you must edit one file (typo3/install/index.php). Use any text editor on your webserver that you choose. One example of an text editor is "nano." To open the nano editor screen type this command:
       nano typo3/install/index.php
  5. Scroll down to the lines that contain:

    if (1==0 || (substr($_SERVER['REMOTE_ADDR'],0,7)!='192.168' && $_SERVER['REMOTE_ADDR']!='127.0.0$
            die("In the source distribution of TYPO3, the install script is disabled by a die() func$
    }
  6. Comment out these two lines by putting a line with "/* before the lines, and a line with "*/" after the lines. The result should look like this:
    /*
    if (1==0 || (substr($_SERVER['REMOTE_ADDR'],0,7)!='192.168' && $_SERVER['REMOTE_ADDR']!='127.0.0$
            die("In the source distribution of TYPO3, the install script is disabled by a die() func$
    }
    */
  7. Save the file and exit the editor (In nano, use Control-o then Control-x). The TYPO3 install tool should be enabled now.