Toggle navigation

Typo3 Image Guide

Version 8.6.1

Websoft9 TYPO3 is a pre-configured, ready to run image for running TYPO3 on Alibaba Cloud.

TYPO3 is a free, feature-rich Enterprise class Open Source Web CMS based on PHP with a vast international community of developers and supporters.The TYPO3 Universe offers highly flexible, scaleable and customizable products for Web Content Management, providing the basis for websites, intranets and web & mobile applications worldwide – always with a focus on the current needs of businesses and public institutions.

Software Version: Typo3-8.6.1
Software directory: /data/wwwroot/default/typo3

Basic software environment: Click here
PHP Configuration File: /usr/local/php/etc/php.ini
Virtual host Configuration File directory: /usr/local/apache/conf/vhost
Virtual host Configuration Command: /root/oneinstack/vhost.sh

Database install directory: /usr/local/mysql
Database data directory: /data/mysql
Database Configuration File: /etc/my.cnf

After the installation of Image,please verify it

  • Login on Alibaba Cloud console,get you Internet IP Address
  • Open you Chrome or Firefox on your local PC,visit the http://Internet IP Address/
  • If verify successfully,you can enter the boot page of Websoft9 below
  • If no response from browser,please check the Security Group settings to ensure that port 80 is been allowed

This Image use MySQL for database

#default user/password:root/123456

MySQL User Guide: Click here

We will show you how to install Typo3:
1.Create the database required for Typo3,
2.Add a virtual host required for Typo3,(not nessesary)
3.Start to install Typo3.

Step1. Create a database

1.login in MySQL:

Method 1:Use following URL to open phpMyAdmin page: http://< Public net IP >/phpMyAdmin

Method 2:Use SSH command to login in.

mysql -uroot –p                                #enter mysql console

 #default user/password:root/123456            More MySQL User Guide: Click here

 

2.create a database:

 

MySQL [(none)]> create database mydbname;

MySQL [(none)]> show databases;

 

3.Create a Database User and grants permissions to the User:

MySQL [(none)]> grant all privileges on mydbname.* to username@'localhost' identified by 'userpassword';

MySQL [(none)]> flush privileges;

MySQL [(none)]> exit;

 

before2

Step2. Add a virtual host

Use SSH Command to Add a virtual host:

[root@iZbp1i4rjdsy216yq7lgucZ ~]# cd /root/oneinstack
[root@iZbp1i4rjdsy216yq7lgucZ oneinstack]# ./vhost.sh

Step3. Install Typo3

Open your domain name via browser:
1. Click “System loods good. Continue!”;

2. Fill in Database username, password and host, Click “Continue”;

3. Select a database name, Click “Continue”;

4. Set Admin user adn password, Click “Continue”;

5. Installation done, You can open the TYPO3 backend;

6. Fill in admin username and password, Click “Login”;

7. The TYPO3 backend:

Use http://<domain name>/  to go to your index page.

TYPO3 CMS has many built-in features but even more features are available via extensions. Actually the whole of TYPO3 CMS itself is made of extensions. With public extensions you can enhance existing features or add totally new ones.

The Extension Manager is where you can manage available extensions or get new ones from the TYPO3 Extension Repository (TER). It is quite a rich tool and this chapter provides only a brief overview.

Moving to ADMIN TOOLS > Extensions, we get the following view:

It shows the “Installed extensions”. The first action icon (1) can be used to install an uninstalled extension or vice-versa (uninstalled extensions appear grayed out).

Next comes information about the extension: title, key, version and state. Finally are one or more actions icons, depending on what the extension offers. All extensions have a download action, many will have a configuration action, which can be used to access the extension’s options. Again just hover over the actions to get a help text.

Installing a new extension

Let’s look briefly at the extension installation process. Use the menu in the docheader to switch to the “Get extensions” view:

The list which appears in this view is the full list of extensions from the TER (limited to those compatible with the TYPO3 CMS that you are using). You can update this list using the button at the top right (1). A search field is available (2).

Clicking the “Import and install” action (3) will trigger the installation. Extensions may depend on other extensions, in which case all will be installed transparently.

If you look for a specific version of an extension, you can click on its title (4) and access the list of all available versions.

Only compatible versions are displayed. Known insecure versions will also never show up.

After that brief overview of pages and content elements, you might wonder how all this structure is turned into a web site, complete with page layout, CSS and JavaScript files.

In TYPO3 CMS this job is achieved using templates which should be considered as a kind of configuration written in a language called TypoScript.

The WEB > Template module provides an overview of the TypoScript configuration and allows to work with so-called “template records”, which is where the TypoScript configuration is actually stored.

Here is a brief view of the Template module:

Templating itself is covered by other tutorials:

  • the TypoScript in 45 minutes Tutorial covers the basics of TypoScript and how to related pages and content elements to an actual HTML output.
  • the Templating Tutorial guides you through the actual integration of HTML models into your TYPO3 CMS installation using TypoScript.

 

Facts about templates and possibilities

Here is a short list of the possibilities offered by TYPO3 CMS templates:

  • You can implement any design you like, the way you like.
  • You can have any number of menu levels.
  • You can have multiple sites, multiple templates.
  • You can have pages in any number of languages.
  • You can have multiple content areas (columns) on a page.
  • You can integrate all kinds of external data sources through plugins written in PHP.
  • You can add any number of web applications to run on various pages in TYPO3.
  • You can extend pretty much anything with PHP.

In TYPO3 CMS all the information is stored in database records: pages, content elements, templates, users, news items, etc. For some of this information dedicated modules exist, like the Page or the Template module which we visited earlier.

But these records, as well as all others that don’t have such a dedicated module, can be created and edited using the WEB > List module.

  • Using the List module effectively
  • The clipboard
  • Advanced clipboard usage
  • Mass editing

To restore a TYPO3 CMS project you need to have a backup of at least the following data directories:

  • fileadmin
  • typo3conf
  • uploads

You do not need a backup of the “typo3temp/” directory, due to the fact that all files are re-generated automatically if they do not exist. Also a backup of the TYPO3 source code is not needed (unless changes were made to the source code, which is not recommended). You can always download the TYPO3 source packages from the TYPO3 website, even for older versions of TYPO3.

In addition to the data directories listed above, a backup of the database is required. For MySQL the command line tool “mysqldump” (or “mysqldump.exe” for Microsoft Windows) is a good way to export the content of the database to a file without any manual interaction (e.g. as an automated, scheduled system task).

Once a backup has been created, it should be verified that it is complete and can be restored successfully. A good test is to restore a backup of a TYPO3 project to a different server and then check the site for any errors or missing data. In a perfect world, these restore checks should be tested frequently to ensure that the concept works and continues working over a time period. The worst case would be that you rely on your backup concept and when you need to restore a backup you notice that the concept has not worked for months.

Manual Backup

  1. Download the entire Typo3 file in you root dictionary by FTP or other tools
  2. Visit http://< Internet IP Address >/phpMyAdmin,login in to the phpMyAdmin Panel
  3. Select you database,then Export
  4. Click “go” button,then download the SQL backup file

When a new version of TYPO3 is released, you should follow the guideline in this chapter in order to do an upgrade. Also follow any additional upgrade information carefully. You might e.g. want to skim the included ChangeLog to see if any features affect the way your site works. (Look for lines prepended with “!!!” – those are the really important ones!)

Basically these are the steps to be done to update your TYPO3 site:

Websoft9 Typo3 Image have installed the phpMyadmin

phpMyAdmin install directory: /data/wwwroot/default/phpMyAdmin

Linux

Following is the step for access phpMyadmin

  1. Open Chrome or Firefox on your local PC
  2. visit the http://Internet IP Address/phpMyAdmin,you can enter the login page
  3. select you language,Username:root,Password:123456
  4. Click the button “Go”

Windows

Following is the step for access phpMyadmin

  1. User Remote Desktop Connection of Window to connect to you ECS
  2. Install a Chrome or Firefox browser on you ECS
  3. Open Chrome or Firefox on your ECS
  4. visit the http://Internet IP Address/phpMyAdmin,you can enter the login page
  5. select you language,Username:root,Password:123456
  6. Click the button “Go”

By default TYPO3 CMS identifies the page which should be delivered by the “?id” parameter. Just enter http://www.your-site.example.org/index.php?id=33 to get the “Overview” page of the Introduction Package.

This is convenient but not good for visitors nor for proper referencing. Human-readable URLs are provided by extension “realurl” (others exist). Thus the above-mentioned URL becomes http://www.your-site.example.org/content-examples/overview/.

This should work out of the box with the Introduction Package. If it does not you may want to deactivate human-readable URLs. The simplest way to achieve this is to go to the ADMIN TOOLS > Extensions module and deactivate extension “realurl”.

The TYPO3 CMS backend is available in many languages. These translations are bundled into packages which need to be fetched from the community translation server (https://translation.typo3.org/). Once installed backend users can choose which language to use.

Loading translation packages happens in the ADMIN TOOLS > Languages module.

Click on the “+” icon to activate a new language. A download button appears to the right. Click on it to get the translations. In the docheader is a download icon which will fetch packages for all activated languages. It is recommended to update regularly to benefit from completed or improved translations.

To change the language of the backend, move to the User Settings module, which is accessed by clicking on your user name in the top bar.

Choose “Language” at the bottom, then hit the “Save” button in the docheader. The backend should update itself automatically but you may want to reload the page in the browser. Your backend should now be in Basque.

As you can see, if a translation is incomplete, the backend will fall back to English.

A default language can also be set when creating a new backend user.

note:Changing a user’s default language will not change the backend language if that user has already logged in at least once, as the language is kept in the user preferences. Such users will need to update their language themselves.

You have an empty installation by default. If you want a pre-configured site, there are distributions on the web which can be installed via the Extension Manager.

Modify the  /usr/local/php/etc/php.ini file to increase the allowed size for uploads:

; Maximum size of POST data that PHP will accept.
post_max_size = 16M
; Maximum allowed size for uploaded files.
upload_max_filesize = 16M

then,restart the apache

# service httpd restart

 

When install new extension from back-end it will not successful,may be the permissions of file and folder is not appropriate,you should change it

Web site root permissions to follow:
file 644, folder 755 ,Permissions Users and groups www
If there is a file permissions problem, execute the following three commands:

chown -R www.www /data/wwwroot/default/typo3
find /data/wwwroot/default/typo3 -type d -exec chmod 755 {} \;
find /data/wwwroot/default/typo3 -type f -exec chmod 644 {} \;

The PHP configuration file allows you to configure the modules enabled, the email settings or the size of the upload files. It is located at /usr/local/php/etc/php.ini.

There are some PHP settings that need to be sufficient for typo3 to install.

The values for PHP.ini below are suggested values only.

  • memory_limit – Minimum: 64M Recommended: 128M or better
  • upload_max_filesize – Minimum: 20M
  • post_max_size – Minimum: 20M
  • max_execution_time: At Least 120 Recommended: 300

After modifying the PHP configuration file, restart both Apache and PHP-FPM for the changes to take effect:

# service httpd restart

 

If you receive the message “Maximum execution time of 30 seconds exceeded”.You may also like to extend the max_execution_time for PHP and you can modify it by two methods below

Method one: edit your  /usr/local/php/etc/php.ini


; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 90
; Maximum amount of time each script may spend parsing request data. It's a good
; idea to limit this time on productions servers in order to eliminate unexpectedly
; long running scripts.

Method two: edit your .htaccess:


<IfModule mod_php5.c>
php_value max_execution_time 90
</IfModule>