Both sides previous revision Previous revision Next revision | Previous revision |
en:entwickler:testumgebung_einrichten [2019/07/11 09:19] – fasse | en:entwickler:testumgebung_einrichten [2024/12/09 19:41] (current) – [Local web server set up] greno |
---|
====== Set up test environment ====== | ====== Set up a test environment ====== |
==== Local web server set up ==== | ==== Local web server set up ==== |
Admidio requires a web server with PHP support and a MySQL database. This is already done usually set up on the web space. For developing it is advisable to set up a web server along with PHP and MySQL locally. There are available for Windows and Linux, the [[https://www.apachefriends.org/de/xampp.html|XAMPP-Package]] or for MacOS, the [[https://www.mamp.info/de/|MAMPP Package]] which provides all components and also has an installation wizard. To install the packages you should read the documentation at the project home page. If the web server is installed successfully, you even should adjust [[php.ini_einstellungen|some settings]]. | Admidio requires a web server with PHP support and a MySQL/MariaDB or PostgreSQL database. This is already done usually set up on the web space. For developing it is advisable to set up a web server along with PHP and MySQL locally. There are available for Windows and Linux, the [[https://www.apachefriends.org/de/xampp.html|XAMPP-Package]] or for MacOS, the [[https://www.mamp.info/de/|MAMPP Package]] which provides all components and also has an installation wizard. To install the packages you should read the documentation at the project home page. If the web server is installed successfully, you even should adjust [[php.ini_einstellungen|some settings]]. |
| |
==== Set up Admidio ==== | ==== Set up Admidio ==== |
<code php>$gDebug = 1; | <code php>$gDebug = 1; |
$gImportDemoData = 1;</code> | $gImportDemoData = 1;</code> |
The first variable activates a [[php.ini_einstellungen#admidio-debug-flag|Debug Output]]. With the second setting you are able to import the test data in your database. If not already done, you should have adapted the [[php.ini_einstellungen|PHP log file]] accordingly. | The first variable activates a [[php.ini_einstellungen#admidio-debug-flag|Debug Output]]. With the second setting you are able to import the test data in your database. If not already done, you should have adapted the [[php.ini_einstellungen|PHP log file]] accordingly.\\ |
| After you have the source code on your system you must run [[https://getcomposer.org|Composer]] to install the depending libraries. Therefore you should install Composer and then run the command ''composer update'' at the Admidio folder. If you could not use composer you can [[https://sourceforge.net/projects/admidio/files/Vendor/admidio-vendor-5.0.zip/download|download the vendor folder]] and place it in the root folder of Admidio. |
==== Upload test data ==== | ==== Upload test data ==== |
After the Admidio files are copied and the configuration file is adapted , our supplied test data can now be imported. The dataset is approximately equal to the [[https://www.admidio.org/demo/|Demo area]]. | After the Admidio files are copied and the configuration file is adapted , our supplied test data can now be imported. The dataset is approximately equal to the [[https://www.admidio.org/demo/|Demo area]]. |