Tag Archives: windows

TYPO3 Installation Fehlermeldung „PHP OpenSSL extension not working“

Bei der TYPO3 Installation (in meinem Fall unter Windows / XAMPP) gibt es manchmal die Fehlermeldung „PHP OpenSSL extension not working“. Dies tritt unter TYPO3 6.2 wie auch 7.5 auf.

Daran musste ich länger als gedacht feilen, bis ich diese Fehlermeldung weg hatte. Am Ende war es ganz einfach und irgendwie typisch.

TYPO3 PHP OpenSSL extension not working

Zu den gängigen Lösungen gehören folgende:

Was mir geholfen hat:
Ich habe in meinem Antivirus Firewall Modul (Norton) Port 443 für TCP freigeschaltet. Typisch, eigentlich hätte ich dort als erstes schauen müssen.

How to install TYPO3 version 7.5

Here a tutorial on how to install TYPO3 version 7.5 on a Windows machine with XAMPP.

1. Preparations in Apache and MySQL

Create a database with phpMyAdmin. Enter the URL to your phpMyAdmin installation.

call-phpmyadmin

Go to “Database” and then create a new database. Give the name you want. Collation should be “utf8_general_ci”.

create a new database

Create a directory in your web root folder in xampp. I installed xampp on partition “c” so for me that is “c:\xampp\htdocs\”. I named the new folder “vhost1” so that means “c:\xampp\htdocs\vhost1\”

Add a vhost entry to the apache configuration. The name of this file is “http-vhosts.conf” and you can find it in “c:\xampp\apache\conf\extra”.

apache conf add a vhost

Save the file and restart apache.

restart apache

Add a vhost entry to your Windows host file by opening Notepad++ or another editor in administration mode. You will need the admin mode later also when using mklink. Thus this screenshot shows the example for cmd.

open notepad++ in administration mode

Then open the host file in “C:\Windows\System32\drivers\etc\”. Add the vhost entry.

add vhost entry to host

At the start of a line you write “127.0.0.1” add a blank and then your host name. I named mine “vhost1.local”.

2. Installing TYPO3 – preparing files and folders

Download the package from http://typo3.org/download/ and unzip the files in the new folder which you created in “c:\xampp\htdocs\”.

Now you have to enter the files in correct order in your directory.

For Linux you do the following:

ln -s ../typo3_src-7.0.x typo3_src
ln -s typo3_src/index.php index.php
ln -s typo3_src/typo3 typo3

If you have problems with symlinks under Windows you can put all the files in the directory and copy index.php from folder “typo3” to the web root. In my case that would be “c:\xampp\htdocs\vhosts1”.

Or you create Windows symlinks.

Open cmd in admin mode.

Enter these commands…

mklink /D c:\xampp\htdocs\vhost1\typo3_src c:\xampp\htdocs\vhost1\typo3_src-7.5.0
mklink /D c:\xampp\htdocs\vhost1\typo3 c:\xampp\htdocs\vhost1\typo3_src-7.5.0\typo3
mklink c:\xampp\htdocs\vhost1\index.php c:\xampp\htdocs\vhost1\typo3_src-7.5.0\index.php

…in the cmd window.

cmd window

However they say that automatic updates are not working in Windows environment. So it should not be that important to work on this.

Rename “_.htaccess” to “.htaccess”.

Create a file named “FIRST_INSTALL” in the web root. This file shall be empty. It assures that you have appropriate access.

With symbolic links you should have got this file structure.

file structure

3. Starting TYPO3 installation procedure

Open the URL in your favorite browser.

browser location

And here you are in the installation procedure. If you haven’t created a “FIRST_INSTALL” file you will see a notice.

start install notice

Afterwards I have got several warnings.

install several warnings

Edit php.ini which you find under “c:\xampp\php\”. Update these vars:

upload_max_filesize=10M
post_max_size=10M
always_populate_raw_post_data=-1
max_input_vars = 1500

Take the comment out for this line:

extension=php_fileinfo.dll

And restart apache.

Go to Control Panel > System > Advanced tab > Environment Variables. Click on “New” and add a new variable named “OPENSSL_CONF”. Add the path “c:\ xampp\apache\conf\openssl.cnf” as value of the variable setting. Here a German post for more info about this issue

update sys variables

And in httpd.conf in the apache dir “c:\xampp\apache\conf\” you shall enter this at the end of the file.

<IfModule mpm_winnt_module>
ThreadStackSize 8388608
</IfModule>

And restart apache. I tried this also, but I can’t see any benefits.

In the next step enter the MySQL credentials.

MySQL credentials

Then select the database name or let the install procedure create a new database for you.

select database

Afterwards you can determine login credentials for the admin.

login credentials for the admin

If everything is ready, you get this notification.

installation done

If you want to use a distribution you can mark the check box at the bottom.

When you click on “Open the backend” you get routed to the backend login. If you want to do that later you can enter this URL in the browser “http://vhost1.local/typo3/”.

In my case I get problems to login. “Your login attempt did not succeed”.

At least I must go to the install configuration under “http://vhost1.local/typo3/install/” and create a file named “ENABLE_INSTALL_TOOL” and put it in the folder “typo3conf”. Or the install configuration wont start. Enter the above given admin password to login.

Under “All configuration” and “Backend” I had to set “[BE][loginSecurityLevel]” from “rsa” to “normal. Then I could login into the backend.

Mercury mail offline

If xampp Mercury/32 mail server don’t work on you server / test-workstation / development environment, read this tutorial http://i-tech-life.blogspot.com/2010/01/how-to-send-mail-from-localhost-with.html.

I additionally had to take the server offline and afterwords online by clicking an “File” | “Enter offline mode” and then “Leave offline mode”. This seems to be a bug in Mercury mail. You never know, it of course could be a feature.

.htaccess on xampp for Windows

You need .htaccess on xampp for Windows.

Open a command line. Write there

C:\xampp\apache\bin>htpasswd -c -m -b c:\xampp\htdocs\.htpasswd username password

Create a .htaccess file and fill in it

AuthType Basic
AuthName "Access for restricted area"
AuthUserFile c:/xampp/htdocs/.htpasswd
require user username

Copy the .htaccess file to the directory you need the secured area.

Difference to your settings are: The path to the apache bin folder or htdocs folder on your xampp installation could be different. Change the above mentioned paths to your need.

The words “username” and “password” are only synonyms for real terms.

Symbolic links in Windows 7

How to create symbolic links in Windows 7?

Open command line in designated directory. Write there:

mklink /J "typo3_src" "../typo3_src-4.4.2"
mklink /J "typo3" "typo3_src/typo3"
mklink /J "t3lib" "typo3_src/t3lib"

So you get a symbolic link from typo3_src to directory typo3_src-4.4.2 lying in the directory above.

Edit: 28.04.2016

Seems it has changed since I first wrote this post. In recent TYPO3 and Win 7 Professional this has changed or let me say, didn’t work how it is stated above. I had to give the complete path, also it has changed in TYPO3 e.g. version 7, that you don’t need to link the lib directory, but the index.php.

In the install description coming with the source of TYPO3 is written:

mklink /D C:\...\example.com\typo3_src C:\...\typo3_src-7.6.x
mklink C:\...\example.com\index.php C:\...\typo3_src-7.6.x\index.php

Even you get managed that file symbolic links work in your instance the core update through Install tool won’t work at all on Windows systems.

Thus that worked for me:

mklink /J "c:/xampp/htdocs/reisen.local/typo3_src" "c:/xampp/myTmp/typo3_sources/typo3_src-7.6.6"
mklink /J "c:/xampp/htdocs/reisen.local/typo3" "c:/xampp/myTmp/typo3_sources/typo3_src-7.6.6/typo3"

Afterwards I copied index.php from source root into vhost root directory.