Typo3 Install with Downloaded Version (More Up-to-Date)

Well, what to say, the installed version of Typo3 is too old for the extension I wanted to test … So I uninstalled it (apt-get remove typo3). Then I thought I call apt-get autoremove to also remove typo3 database and so on, however this is not recommended, because afterwards if I try to browse an index.php file (for example) it is downloaded instead of displayed as webpage. So there were a few necessary packages removed. After I reinstalled the typo3 package I removed only the typo3 related packages. You can find them by typing apt-cache search typo3. You should see a list like
typo3-dummy - web content management system
typo3-database - TYPO3 - The enterprise level open source WebCMS (Database)
typo3-src-4.3 - TYPO3 - The enterprise level open source WebCMS (Core)
typo3 - The enterprise level open source WebCMS (Meta)

Now you can remove these packages with apt-get remove typo3-dummy typo3-database typo3-src-4.3 typo3. Now you are ready to install the newer version.

I downloaded a newer Typo3 package to the server (e.g. wget http://freefr.dl.sourceforge.net/project/typo3/TYPO3%20Source%20and%20Dummy/TYPO3%206.0.4/typo3_src%2Bdummy-6.0.4.zip), unzip it (unzip typo3_src+dummy-6.0.4.zip [requires that you installed the unzip package before: apt-get install unzip]). Change the folder name if you do not like this folder name to become part of the url of your website (I bet you can also change it somewhere in Typo3, but I don’t know right now …). Start your browser and go to the directory on your server where the extracted files are and then add the path typo3/install/index.php?mode=123&step=1. You should see a message like The Install Tool is locked. To enable the Install Tool, the file ENABLE_INSTALL_TOOL must be created. Just do this, in typo3conf/ folder (you can use the touch command to create an empty file: touch ENABLE_INSTALL_TOOL).

If after creating the ENABLE_INSTALL_TOOL file and reloading your browser window you see nothing anymore, you have probably the same problem I had: the permissions of the files are not properly set. When you type ls -lh the answer in the terminal should read like: drwxr-xr-x 2 www-data www-data 4,0K 9. Mär 10:19 typo3temp. Important is the www-data and the w, meaning that the user www-data (which is actually your webserver) can write these files, which is required for Typo3 to run. At least now you should see something like this (after reloading your browser):


Now just follow the installation steps … (see also http://docs.typo3.org/typo3cms/InstallationGuide/InstallingTypo3QuickInstall/Index.html)
My next problem was: If you have not already created a username and password to access the database, please do so now. This can be done using tools provided by your host.
Well, first create a database mysqladmin -u root -p create databasename where database name is for example type or however you like to name it. Furthermore create a new MySQL user who can access the table we just created: mysql -u root -p mysql brings you in the interactive mode (after typing the root password) and GRANT ALL ON databasename.* TO username@localhost IDENTIFIED BY 'password'; creates a new user with name “username”, password “password” who can access “databasename” (you should change the to typo3 if you used the name typo3 when creating the database). Type quit to leave the interactive mode. Do not forget to reload the database: mysqladmin -u root -p reload (otherwise the changes have no effect).
You can also have a look here: http://wiki.typo3.org/MySQL_configuration. In the next step select the database you just created. Finally I reached this:


Probably it is a good idea to have a look at the Typo3 configuration (click the corresponding link, see picture above) and maybe make the MySQL Server listen to the local host only, see for example http://linuxconfig.net/manual-howto/databases/how-to-setup-mysql-listen-on-localhost-only.html or http://www.tldp.org/HOWTO/Postfix-Cyrus-Web-cyradm-HOWTO/mysql-config.html (both not tested).


PS: Sometimes it is useful/required to restart your web server do this by typing /etc/init.d/apache2 restart


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s