Setup:Installation Guide/System Preparation/Linux/Apache and PHP and AutoDoc:BlueSpiceWikiExplorer: Difference between pages

(Difference between pages)
No edit summary
 
m (1 revision imported)
 
Line 1: Line 1:
{{DISPLAYTITLE:Installing  Apache and PHP on Linux}}
==DescriptionMsg==
__TOC__
{{AutoDocDescriptionMsg
{{Messagebox|boxtype=important|Note text=The web server delivers your BlueSpice installation to the user's browser. Without a web server, BlueSpice cannot be used. The source code of BlueSpice is based on the scripting language "PHP". This must also be installed on your server in order to operate BlueSpice. The steps listed here are required.}}
|name = BlueSpiceWikiExplorer
==Introduction==
|desc = {{int:bs-wikiexplorer-extension-description
Apache or Nginx are available as web servers under Linux. BlueSpice can theoretically also be operated with Nginx, but in this documentation only Apache is treated in detail. Of course, you can also install Nginx with the appropriate expertise and operate it according to the here documented Virtualhost configuration of Apache.
}}
{{Messagebox|boxtype=note|Note text=If "User is not in the sudoers file." type "su" in the terminal and execute. Write a "sudo" in front of a command.}}
}}
==Installation==
==License==
Install Apache and PHP using the Aptitude package manager with the following steps:
{{AutoDocLicense
<pre>
|name = GPL-3.0-only
apt update; \
}}
apt install apache2 \
==Requirements==
    libapache2-mod-php7.4 \
{{AutoDocRequirements
    php7.4 \
|mediawiki = {{AutoDocVersion
    php7.4-cli \
|name = MediaWiki
    php7.4-common \
|version = 1.36.0
    php7.4-curl \
}}
    php7.4-gd \
|extensions = {{AutoDocVersion
    php7.4-intl \
|name = BlueSpiceFoundation
    php7.4-json \
|version = 4.1
    php7.4-mbstring \
}}
    php7.4-mysql \
}}
    php7.4-opcache \
==SpecialPages==
    php7.4-tidy \
{{AutoDocSpecialPages
    php7.4-xml \
|SpecialPages = {{AutoDocCallback
    php7.4-zip; \
|name = WikiExplorer
apt clean
|callback = SpecialWikiExplorer
</pre>Depending on requirements, further php extensions may be necessary, e.g. for an LDAP connection.
}}
}}
==ApiModules==
{{AutoDocApiModules
|APIModules = {{AutoDocCallback
|name = bs-wikiexplorer-store
|callback = BSApiWikiExplorerStore
}}
}}
==Hooks==
{{AutoDocHooks
|Hooks = {{AutoDocCallback
|name = [https://www.mediawiki.org/wiki/Manual:Hooks/BSUserSidebarGlobalActionsWidgetGlobalActions BSUserSidebarGlobalActionsWidgetGlobalActions]
|callback = WikiExplorer::onBSUserSidebarGlobalActionsWidgetGlobalActions
}}
{{AutoDocCallback
|name = [https://www.mediawiki.org/wiki/Manual:Hooks/ChameleonSkinTemplateOutputPageBeforeExec ChameleonSkinTemplateOutputPageBeforeExec]
|callback = \BlueSpice\WikiExplorer\Hook\ChameleonSkinTemplateOutputPageBeforeExec\AddWikiExplorer::callback
}}
{{AutoDocCallback
|name = [https://www.mediawiki.org/wiki/Manual:Hooks/MWStakeCommonUIRegisterSkinSlotComponents MWStakeCommonUIRegisterSkinSlotComponents]
|callback = common-user-interface
}}
}}


==Configuring PHP==
After installation, configure PHP. Open <code>php.ini</code> with a text editor of your choice (nano, vi), which, in our  Debian version, is located in the directory <code>/etc/php/7.3/apache2</code>.
Find the following settings and change the values accordingly. If a setting is commented out with a semicolon in front of it, please remove it. Or open the terminal with <code>sudo nano /etc/php/7.4/apache2/php.ini</code>.
<pre>
date.timezone = Europe/Berlin
max_execution_time = 600
post_max_size = 128M
upload_max_filesize = 128M
</pre>
Set the value for 'date.timezone' according to your own time zone.
Save and exit the php.ini again.
==Configuring Apache==
{{Messagebox|boxtype=note|Note text=In this documentation, we assume the recommended installation with [https://www.mediawiki.org/wiki/Manual:Short_URL ShortURL]. In this case, the root directory of the web server is in <code>/var/www/bluespice</code>, but the actual source code of BlueSpice is in <code>/var/www/bluespice/w</code>. This configuration is designed accordingly.}}
To configure a VirtualHost for BlueSpice, please proceed as follows:
#Change to the directory <code>/etc/apache2/sites-available </code>.
#In a text editor of your choice, open the file <code>bluespice.conf</code>, which does not yet exist, and create it. Copy the entire contents of the following file into this new configuration file:
##For BlueSpice free: [[Media:Setup:apache vhost bluespice free.txt|apache_vhost_bluespice_free.txt]]
##For BlueSpice pro: [[Media:Setup:apache vhost bluespice pro.txt|apache_vhost_bluespice_pro.txt]]
#In rows 3 and 4, replace "SERVERNAME" and "SERVERALIAS" according to your server name and domain. If the server is explicitly operated with only one VirtualHost for BlueSpice, you can also completely remove these two lines.
#Save the file and close it.
Delete the VirtualHost created by default during the Apache installation with the command <code>a2dissite 000-default</code>. Then activate the just created VirtualHost with the command <code>a2ensite bluespice</code>.
Next, activate the Module Rewrite, which we configured in the <code>bluespice.conf</code>, by entering the following command: <code>a2enmod rewrite</code>
Next, create the directory <code>/var/www/bluespice</code>(<code>mkdir/var/www/bluespice</code>) and restart Apache with the command <code>service apache2 restart</code>.
Next, call up the URL of your BlueSpice server. If configured correctly, Apache should respond to the request with the error message "Not found", which is completely correct at the time of installation.
[[File:Setup:apache_not_found.png|frameless]]
==Next step==
If you have successfully completed all these steps, you can proceed to the next step "[[Setup: Installation Guide/System Preparation/Linux/MariaDB | MariaDB]]".
[[en:{{FULLPAGENAME}}]]
[[de:Setup:Installationsanleitung/Systemvorbereitung/Linux/Apache_und_PHP]]

Latest revision as of 15:09, 1 December 2023

DescriptionMsg

Sort articles by criteria

License

GPL-3.0-only

Requirements

  • MediaWiki: 1.36.0
  • BlueSpiceFoundation: 4.1

SpecialPages

  • WikiExplorer

ApiModules

API Modules

  • bs-wikiexplorer-store

Hooks

Hooks



To submit feedback about this documentation, visit our community forum.

No categories assignedEdit

Discussions