-
Notifications
You must be signed in to change notification settings - Fork 5
Installation WPKG Express 2
Andrey Klimov edited this page Sep 20, 2020
·
3 revisions
- Install WPKG Express 2 using composer:
composer create-project anklimsk/wpkg-express-2 /var/www/wpkg
, where/var/www/wpkg
is Document Root directory. Or just download the latest release from releases and extract the archive to the Document Root directory. - Set the DocumentRoot
directive for the domain to
/var/www/wpkg/app/webroot
. - Make sure that an
.htaccess
override is allowed and thatAllowOverride
is set toAll
for the correct DocumentRoot. For users having apache 2.4 and above, you need to modify the configuration file for yourhttpd.conf
or virtual host configuration to look like the following:
<Directory /var/www/wpkg>
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
- If you are using OPcache you should set the opcache.blacklist_filename configuration value with a file path to your blacklist (View cache):
- For example, create a new file:
/etc/php/7.4/apache2/opcache-blacklist.txt
; - Specify the path for excluding files, e.g.:
/var/www/wpkg/app/tmp/cache/views/wpkg_*.php
; - Add the blacklist file path to your
php.ini
file:opcache.blacklist_filename=/etc/php/7.4/apache2/opcache-blacklist.txt
; - Reload apache configuration:
sudo service apache2 reload
.
- Navigate to the directory
app
application (/var/www/wpkg/app
), and run the following command:sudo ./Console/cake CakeInstaller
to start interactive shell of installer. - After the installation process is complete, in your browser go to the link
https://wpkg.fabrikam.com/settings
to change settings of application, wherehttps://wpkg.fabrikam.com
- base URL of installited WPKG Express 2. - Fill in the fields in the
Authentication
group settings (if required) and click theSave
button.