Setup:Installation Guide/System Preparation/Windows/PHP: Difference between revisions

No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
 
(One intermediate revision by the same user not shown)
Line 6: Line 6:
{{Hint|file=hint.png|text=PHP is not installed with a "classic installation package" but the sources are downloaded and integrated into IIS via the [[Setup:Installation_Guide/System_Preparation/Windows/PHP_Manager|PHP Manager]] that you installed in the previous step.}}
{{Hint|file=hint.png|text=PHP is not installed with a "classic installation package" but the sources are downloaded and integrated into IIS via the [[Setup:Installation_Guide/System_Preparation/Windows/PHP_Manager|PHP Manager]] that you installed in the previous step.}}
==Download==
==Download==
{{Hint|file=hint.png|text=The content of this section refers to external sources and is current at the time of writing this documentation. We cannot guarantee how long these sources will remain unchanged. Please let us know if you notice any discrepancies to the information provided here.}}
{{Hint|file=hint.png|text=The content of this section refers to external sources. We cannot guarantee how long these sources will remain unchanged. Please let us know if you notice any discrepancies to the information provided here.
 
The PHP version in this instruction serves only as an example.}}
 




'''Open''' the [https://windows.php.net/download/ officical download page for Windows auf php.net] (1).  
'''Open''' the [https://windows.php.net/download/ officical download page for Windows auf php.net] (1).  


'''Find''' the currently most recent version 7.4.x (2) 64-bit Non Thread Safe (3) and '''download''' it (4):
'''Find''' [[Setup:System requirements|a currently supported version]] (2) 64-bit Non Thread Safe (3) and '''download''' it (4):


[[File:Setup:systempreparation_php_01.png|border|center|600px|PHP 01|link=Special:FilePath/Setup:systempreparation_php_01.png]]
[[File:Setup:systempreparation_php_01.png|border|center|600px|PHP 01|link=Special:FilePath/Setup:systempreparation_php_01.png]]




Line 19: Line 23:




{{Hint|file=hint.png|text=Please note that BlueSpice is not compatible with PHP 8.x at this time.}}
{{Hint|file=hint.png|text=In the following steps,  we use PHP-Version 7.4.28 which only serves as an example for the latest version 7.4.x that is available at the time of your download.}}
==Unpacking the  ZIP archive==
==Unpacking the  ZIP archive==
'''Unpack''' the ZIP archive that you just downloaded into a useful system path on your hard drive.
'''Unpack''' the ZIP archive that you just downloaded into a useful system path on your hard drive.


{{Hint|file=hint.png|text=This documentation assumes the [[Setup:Installation Guide/Advanced/Windows_Folder_Structure|recommended folder structure]].  
{{Hint|file=hint.png|text=This documentation assumes the [[Setup:Installation Guide/Advanced/Windows_Folder_Structure|recommended folder structure]].  
For this reason PHP will be unpacked into the folder C:\bluespice\bin\php-7.4.28. If you have a different folder structure, you must adapt these paths accordingly.}}
For this reason PHP will be unpacked into the folder C:\bluespice\bin\php-<version>. If you have a different folder structure, you must adapt these paths accordingly.}}
==Setting the environment variable==
==Setting the environment variable==
To use PHP easily on the command line of Windows, it is necessary to configure an environment variable in Windows. Perform the following steps:
To use PHP easily on the command line of Windows, it is necessary to configure an environment variable in Windows. Perform the following steps:
Line 67: Line 68:
'''Enter''' "inetmgr" (1) in the dialog window and '''click''' "OK" (2):
'''Enter''' "inetmgr" (1) in the dialog window and '''click''' "OK" (2):


[[File:Setup:PHP_IIS_Config_01.png|center|400px|PHP and IIS 01|link=Special:FilePath/Setup:PHP_IIS_Config_01.png]]
[[File:Setup:systempreparation_php_09.png|border|center|PHP 09]]


'''Select''' your server name (1) in the left pane and then '''double-click''' "PHP Manager" (2):
'''Select''' your server name (1) in the left pane and then '''double-click''' "PHP Manager" (2):
Line 97: Line 98:


[[File:Setup:systempreparation_php_19.png|border|600px|center|PHP 19]]
[[File:Setup:systempreparation_php_19.png|border|600px|center|PHP 19]]


Make sure that the following extensions are activated:
Make sure that the following extensions are activated:
Line 103: Line 103:
[[File:Setup:systempreparation_php_20.png|border|600px|center|PHP 20]]
[[File:Setup:systempreparation_php_20.png|border|600px|center|PHP 20]]


 
To activate an extension, find it in the  "Disabled" extensions (1) and'''click''' "Enable" (2):
To activate an extension, find it in the  "Disabled" extensions (1) and '''click''' "Enable" (2):


[[File:Setup:systempreparation_php_21.png|border|600px|center|PHP 21]]
[[File:Setup:systempreparation_php_21.png|border|600px|center|PHP 21]]
Line 112: Line 111:
[[File:Setup:systempreparation_php_22.png|border|600px|center|PHP 22]]
[[File:Setup:systempreparation_php_22.png|border|600px|center|PHP 22]]


 
Replace the line<code>extension=php_opcache.dll</code> with <code>zend_extension=php_opcache.dll</code>:
Replace the line <code>extension=php_opcache.dll</code> with <code>zend_extension=php_opcache.dll</code>:


[[File:Setup:systempreparation_php_23.png|border|600px|center|PHP 23]]
[[File:Setup:systempreparation_php_23.png|border|600px|center|PHP 23]]


'''Change''' the following options to the values below:
'''Change''' the following options to the values below:
Line 181: Line 178:
| style="border:1px solid #000;padding:5px;" |Uncomment the entry
| style="border:1px solid #000;padding:5px;" |Uncomment the entry
|}
|}




Line 211: Line 209:


{{Hint|file=hint.png|text=This documentation assumes the [[Setup:Installation Guide/Advanced/Windows_Folder_Structure|recommended folder structure]].  If the path you specify here does not yet exist, please create it before clicking  "OK".}}
{{Hint|file=hint.png|text=This documentation assumes the [[Setup:Installation Guide/Advanced/Windows_Folder_Structure|recommended folder structure]].  If the path you specify here does not yet exist, please create it before clicking  "OK".}}


The site is now listed in the IIS overview page:
The site is now listed in the IIS overview page:

Latest revision as of 11:47, 26 April 2024


icon required.png
The source code of BlueSpice is based on the scripting language "PHP". It must be installed on your server in order to operate BlueSpice. The steps listed here are required.


hint.png
PHP is not installed with a "classic installation package" but the sources are downloaded and integrated into IIS via the PHP Manager that you installed in the previous step.

Download

hint.png
The content of this section refers to external sources. We cannot guarantee how long these sources will remain unchanged. Please let us know if you notice any discrepancies to the information provided here.

The PHP version in this instruction serves only as an example.



Open the officical download page for Windows auf php.net (1).

Find a currently supported version (2) 64-bit Non Thread Safe (3) and download it (4):

PHP 01


Follow the download instructions.


Unpacking the ZIP archive

Unpack the ZIP archive that you just downloaded into a useful system path on your hard drive.

hint.png
This documentation assumes the recommended folder structure.

For this reason PHP will be unpacked into the folder C:\bluespice\bin\php-<version>. If you have a different folder structure, you must adapt these paths accordingly.

Setting the environment variable

To use PHP easily on the command line of Windows, it is necessary to configure an environment variable in Windows. Perform the following steps:

Enter the key combination Windows+R.

Enter "SystemPropertiesAdvanced.exe" (1) in the dialog window and click "OK" (2):

PHP 02

Click "Environment Variables...":

PHP 03

Double-click the entry "Path" in the section "System variables":

PHP 04

Click "New":

PHP 05

Add the path to your unpacked PHP version, which contains the php.exe file:

PHP 06

Close all newly opened windows one after the other by clicking "OK".

Checking the environment variable

To make sure the environment variable is set correctly, perform the following steps:

Enter the key combination Windows+R.

Enter "cmd" (1) in the dialog window and click "OK" (2):

PHP 07

The command prompt opens.

Type "php -v" (1) and press the Enter key. The found PHP version will be displayed (2).

PHP 08

If this is not the case, then the path to the php.exe file in the environment variables was specified incorrectly.

Configuring IIS for PHP

In the following steps, PHP will be included in IIS and IIS will be configured to provide a working basic setup:

Press the key combination Windows+R to call up IIS Manager.

Enter "inetmgr" (1) in the dialog window and click "OK" (2):

PHP 09

Select your server name (1) in the left pane and then double-click "PHP Manager" (2):

PHP 10

Click "Register new PHP version":

PHP 11

Select the browse "(...)" button in the next window:

PHP 12

Change to the path to which you previously unzipped PHP (1), mark the "php-cgi.exe" (2) and click "Open" (3):

PHP 13

Click "OK":

PHP 14

Click "Configure error reporting":

PHP 15

Select the item "Production machine" (1) and enter a path and a file of your choice where PHP should save its log (2). Click "Apply" (3):

PHP 16
hint.png
This documentation assumes the recommended folder structure. If the path you specify here does not yet exist, please create it before clicking "Apply".


Click "Enable or disable an extension" in the main window:

PHP 19

Make sure that the following extensions are activated:

PHP 20

To activate an extension, find it in the "Disabled" extensions (1) andclick "Enable" (2):

PHP 21

Open the configuration file php.ini:

PHP 22

Replace the lineextension=php_opcache.dll with zend_extension=php_opcache.dll:

PHP 23

Change the following options to the values below:

Name Wert Kommentar
date.timezone "Europe/Berlin" Select the appropriate time zone for you.
Uncomment the entry
max_execution_time 600
post_max_size 1024M
upload_max_filesize 1024M
opcache.enable 1 Uncomment the entry
opcache.enable_cli 0 Uncomment the entry
opcache.memory_consumption 512 Uncomment the entry
opcache.max_accelerated_files 1000000 Uncomment the entry
opcache.validate_timestamps 1 Uncomment the entry
opcache.revalidate_freq 2 Uncomment the entry
opcache.optimization_level 0x7FFF9FFF Uncomment the entry
opcache.blacklist_filename C:\bluespice\etc\opcache.blacklist Uncomment the entry
zlib.output_compression On
zlib.output_compression_level 9 Uncomment the entry


Save and close the file.

Create the folder C:\bluespice\etc .

Create a text file named opcache.blacklist content C:\bluespice\var\www\w\extensions\BlueSpiceFoundation\config\*

Expand the tree in the left pane of the IIS Manager until the "Default Web Site" becomes visible:

PHP 24

Right-click (1) and then click "Remove" (2):

PHP 25

Confirm the following dialog with "Yes":

PHP 26

Right-click "Sites" (1) and click "Add Website" (2):

PHP 27

Enter the site name "BlueSpice" (1) and select the path on your server where your BlueSpice installation will be located later (2).

Click "OK" (3):

PHP 28
hint.png
This documentation assumes the recommended folder structure. If the path you specify here does not yet exist, please create it before clicking "OK".


The site is now listed in the IIS overview page:

PHP 29

Next step

If you have successfully completed all of the above steps, proceed to the next step: MariaDB.



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