Installation Development - GaryA/antlog GitHub Wiki
Web Server
Antlog requires a webserver to run on. Download and install Xampp and enable openSSL.
Enable openSSL
OpenSSL is only needed to install AntLog via Composer. It's not needed if you are installing by copying the zip file.
OpenSSL must be enabled in order for PHP to access https://
sites - needed to install Composer and AntLog.
Open the file C:\xampp\php\php.ini
in a text editor such as Notepad. Search for the line
;extension=php_openssl.dll
(around line 1000 - use the editor's search function!)
Remove the semi-colon that comments out this line.
Composer
Composer is a package manager for PHP applications. It is the simplest way of downloading and installing the AntLog application plus all the other packages it depends upon.
Note that Composer downloads all the code from GitHub and for this reason you will need a GitHub account to enable Composer to download all the files it needs. If you want to develop AntLog you probably want a GitHub account anyway. If you only want to run AntLog, you will be better off downloading the production version of AntLog which does not require a GitHub account.
Install Composer
You can download and install Composer from getcomposer.org.
For Windows, you can simply download and run ComposerSetup.exe. The Windows installer is recommended as it updates the Windows path so that composer can be run by calling composer
from any directory.
Please refer to the Composer documentation if you run into any problems or wish to know more about Composer.
Once Composer has been installed, open a command line (cmd.exe
) and change to the C:\xampp
folder. Enter the following command to allow Composer to manage some of the framework dependencies:
composer global require "fxp/composer-asset-plugin:1.0.0"
Install AntLog
This command will download and install AntLog:
composer create-project --repository-url http://antlog.garya.org.uk --dev --stability=beta garya/antlog antlog
This process takes some time but should complete with no errors. You should end up with a new set of folders and files under C:\xampp\antlog
.
Move the folder C:\xampp\antlog\antlog
into C:\xampp\htdocs
. This can be done via the command line or the Windows file explorer.
You should end up with a file structure like this (there are other folders and files that are not shown in this list):
c:\xampp
antlog
assets
commands
config
controllers
mail
models
runtime
tests
vendor
views
widgets
htdocs
antlog
xampp
mysql
php