Difference between revisions of "PartKeepr on uberspace"
m |
|||
(3 intermediate revisions by the same user not shown) | |||
Line 11: | Line 11: | ||
(source: [https://www.deltatag.at/composer-installation-auf-uberspace/ https://www.deltatag.at/composer-installation-auf-uberspace/]) | (source: [https://www.deltatag.at/composer-installation-auf-uberspace/ https://www.deltatag.at/composer-installation-auf-uberspace/]) | ||
==Install APCu== | ==Install APCu== | ||
+ | Using PECL: | ||
<pre> | <pre> | ||
uberspace-install-pecl apcu-4.0.10 | uberspace-install-pecl apcu-4.0.10 | ||
killall php-cgi | killall php-cgi | ||
</pre> | </pre> | ||
− | You have to modify APCu-Version according to your version of PHP. | + | You have to modify APCu-Version according to your version of PHP.<br /> |
− | Here 5.3.0 < PHP < 7.0.0-dev | + | Here 5.3.0 < PHP < 7.0.0-dev.<br /> |
Also look here: [https://pecl.php.net/package/APCu https://pecl.php.net/package/APCu] | Also look here: [https://pecl.php.net/package/APCu https://pecl.php.net/package/APCu] | ||
==Edit php.ini== | ==Edit php.ini== | ||
− | Set maximal execution time (mandatory, but will otherwise create warning in setup) | + | Set maximal execution time (mandatory, but will otherwise create warning in setup): |
<pre> | <pre> | ||
max_execution_time=60 | max_execution_time=60 | ||
</pre> | </pre> | ||
− | Changes for PHP5.6 (see: [PHP_5.6]): | + | Changes for PHP5.6 (see: [[PHP_5.6]]): |
<pre> | <pre> | ||
opcache.save_comments=1 | opcache.save_comments=1 | ||
opcache.load_comments=1 | opcache.load_comments=1 | ||
</pre> | </pre> | ||
− | =PartKeepr installation | + | =PartKeepr preparation= |
+ | From now on PartKeepr configuration and installation does not differ from a regular PartKeepr setup. | ||
==Download Partkeepr== | ==Download Partkeepr== | ||
First change to your preferred installation folder. | First change to your preferred installation folder. | ||
Line 36: | Line 38: | ||
tar -jxvf filename.tar.bz2 | tar -jxvf filename.tar.bz2 | ||
</pre> | </pre> | ||
− | You can also install and update PartKeepr from git | + | You can also install and update PartKeepr from git:<br /> |
− | Follow these instructions and continue | + | Follow [[Running_PartKeepr_from_GIT|these instructions]] and continue with [[#Configure_.htaccess]]. |
− | == | + | ==Create parameters.php== |
− | |||
<pre> | <pre> | ||
− | + | cd PartKeepr | |
+ | cp app/config/parameters.php.dist app/config/parameters.php | ||
</pre> | </pre> | ||
− | + | ==Download PHP Modules and install== | |
<pre> | <pre> | ||
− | + | composer install | |
</pre> | </pre> | ||
− | == | + | ==Configure .htaccess== |
+ | If you are installing PartKeepr on a “Subdomain” you have to add in | ||
<pre> | <pre> | ||
− | + | web/.htaccess | |
− | |||
</pre> | </pre> | ||
− | + | the following line: | |
<pre> | <pre> | ||
− | + | RewriteBase /web | |
</pre> | </pre> | ||
=Installation= | =Installation= | ||
Line 60: | Line 62: | ||
You can start setup in your Browser: | You can start setup in your Browser: | ||
<pre> | <pre> | ||
− | https://YOURDOMAIN/web/setup | + | https://YOURDOMAIN/web/setup |
</pre> | </pre> | ||
After successful setup you can access PartKeepr via | After successful setup you can access PartKeepr via | ||
Line 81: | Line 83: | ||
<pre>$classLoader = new ClassLoader('Symfony', 'Doctrine');</pre> | <pre>$classLoader = new ClassLoader('Symfony', 'Doctrine');</pre> | ||
with: | with: | ||
− | <pre>$classLoader = new ClassLoader('Symfony');</pre | + | <pre>$classLoader = new ClassLoader('Symfony');</pre> |
Latest revision as of 00:37, 25 February 2016
Uberspace is a pretty cool German Hosting Provider. This article focuses on PartKeepr Version > 0.7x. For previous versions look below.
Contents
Prerequisites
- Uberspace Account and SSH connection
- Using https connections is highly recommended!
Configuring Uberspace
Install composer
curl -sS https://getcomposer.org/installer | php -- --filename=composer --install-dir=$HOME/bin
(source: https://www.deltatag.at/composer-installation-auf-uberspace/)
Install APCu
Using PECL:
uberspace-install-pecl apcu-4.0.10 killall php-cgi
You have to modify APCu-Version according to your version of PHP.
Here 5.3.0 < PHP < 7.0.0-dev.
Also look here: https://pecl.php.net/package/APCu
Edit php.ini
Set maximal execution time (mandatory, but will otherwise create warning in setup):
max_execution_time=60
Changes for PHP5.6 (see: PHP_5.6):
opcache.save_comments=1 opcache.load_comments=1
PartKeepr preparation
From now on PartKeepr configuration and installation does not differ from a regular PartKeepr setup.
Download Partkeepr
First change to your preferred installation folder. Then download the latest PartKeepr version and extract files:
wget https://downloads.partkeepr.org/partkeepr-0.76.tbz2 tar -jxvf filename.tar.bz2
You can also install and update PartKeepr from git:
Follow these instructions and continue with #Configure_.htaccess.
Create parameters.php
cd PartKeepr cp app/config/parameters.php.dist app/config/parameters.php
Download PHP Modules and install
composer install
Configure .htaccess
If you are installing PartKeepr on a “Subdomain” you have to add in
web/.htaccess
the following line:
RewriteBase /web
Installation
The setup will automatically guide you through the installation process. You can start setup in your Browser:
https://YOURDOMAIN/web/setup
After successful setup you can access PartKeepr via
https://YOURDOMAIN/web
If you wish to have a more comfortable solution you can add a .htaccess file above web folder, with the following content
DirectoryIndex /web
Post install
Add Runwhen- or Cronjob
0 0,6,12,18 * * * /usr/bin/php <path-to-partkeepr>/app/console partkeepr:cron:run
Example for Cron (Runwhen recommended).
OLDER versions
Needed fixes for PartKeepr 0.1.8 Replace the following line in src/backend/PartKeepr/Setup/Setup.php:
$classLoader = new ClassLoader('Symfony', 'Doctrine');
with:
$classLoader = new ClassLoader('Symfony');