Mainos / Advertisement:

Ero sivun ”Cachet/en” versioiden välillä

Kohteesta Taisto
Siirry navigaatioon Siirry hakuun
(Ak: Uusi sivu: * Requires PHP5.5 or higher and the Composer package. * Install Apache2 or Nginx.)
(Ak: Uusi sivu: Define a timer in cron on when to send e-mails, for instance every five minutes:)
 
(23 välissä olevaa versiota samalta käyttäjältä ei näytetä)
Rivi 13: Rivi 13:
 
   aptitude install apache2 mysql-server
 
   aptitude install apache2 mysql-server
  
Koska tämä tarvitsee PHP5.5 versiota ja Debian Wheezy:ssä tulee oletuksena vain 5.4 versio, lisätään source.list tiedostoon:
+
Because Cachet needs PHP5.5 and Debian Wheezy only comes with 5.4 by default, we add the following to the source.list file:
  
 
   nano /etc/apt/source.list
 
   nano /etc/apt/source.list
Rivi 22: Rivi 22:
 
</pre>
 
</pre>
  
Ladataan avaimet sekä päivitetään source.list ja asennetaan vaaditut paketit.
+
We load keys and update source.list and install the required packets.
  
 
<pre>
 
<pre>
Rivi 31: Rivi 31:
 
</pre>
 
</pre>
  
Ota käyttöön Apachen moduuli rewrite.
+
Enable the rewrite module for Apache.
  
 
   a2enmod rewrite
 
   a2enmod rewrite
  
Käynnistetään Apache2 uudelleen
+
Restart the apache service:
  
 
   service apache2 restart
 
   service apache2 restart
  
Asenna Composer
+
Install Composer
  
 
  curl -sS https://getcomposer.org/installer | php
 
  curl -sS https://getcomposer.org/installer | php
 
  mv composer.phar /usr/local/bin/composer
 
  mv composer.phar /usr/local/bin/composer
  
Lataa git (asenna git jos ei ole asennettu) asennuspaketti webhakemistoon:
+
Download the git (install git if you haven't) installation packet for the web directory:
  
 
<pre>
 
<pre>
Rivi 54: Rivi 54:
 
</pre>
 
</pre>
  
== Päivittäminen ==
+
== Updating ==
  
Ota varmuuskopio Cachetin tietokannasta ja asennustiedostoista. (varsinkin .env tiedostosta, eli konfigurointi tiedostosta)
+
Make a backup of the Cachet database and installation files (especially the .env file, which is the configuration file).
  
Poista vanhat tiedostot ja korvaa nämä uusilla.  
+
Remove old files and replace them with the new ones.  
  
Aja Cachet hakemistossa:
+
Run cachet in a directory:
  
 
   composer install --no-dev -o
 
   composer install --no-dev -o
Rivi 68: Rivi 68:
 
   chown www-data -R /cachet-dir
 
   chown www-data -R /cachet-dir
  
== Konfigurointi ==
+
== Configuration ==
  
Avaa .env.example ja tallenna se .env tiedostoksi. Avaa tämän jälkeen .env tiedosto ja muokkaa sitä.
+
Open .env.example and save it as a .env file. After this open the .env file and modify it.
  
 
<pre>
 
<pre>
Rivi 97: Rivi 97:
 
</pre>
 
</pre>
  
Luo tietokantapalvelimellesi tietokanta sekä käyttäjätunnus jota Cachet voi käyttää sitä.
+
Create a database for your server along with a user which Cachet can use.
  
Siirry Cachen hakemistoon ja aja asennuskomento
+
Go to the Cachet directory and run the installation command
  
 
   composer install --no-dev -o
 
   composer install --no-dev -o
  
Tämän jälkeen aja tietokanta migraatio komento
+
After this run the database migration command
  
 
   php artisan migrate
 
   php artisan migrate
  
ja generoi security key
+
and generate a security key
  
 
   php artisan key:generate
 
   php artisan key:generate
  
Konfigroi esimerkiksi Apache2:
+
Configure for instance Apache2:
  
 
<pre>
 
<pre>
Rivi 128: Rivi 128:
 
</pre>
 
</pre>
  
=== Sähköpostitilaukset ===
+
=== E-mail subscriptions ===
  
Sähköpostitilaukset voit ottaa käyttöön lisäämällä .env tiedostoon MAIL_ADDRESS ja MAIL_NAME. Esimerkiksi:
+
E-mail subscriptions can be enabled by adding MAIL_ADDRESS and MAIL_NAME to the .env file. For instance:
  
 
<pre>
 
<pre>
Rivi 137: Rivi 137:
 
</pre>
 
</pre>
  
Tämän jälkeen hallintapaneelista ota käyttöön Allow people to signup to email notifications? joka on Application Setup asetuksissa.
+
After this go to the control panel and enable Allow people to signup to email notifications? which is is in the Application Setup settings menu.
  
Tämän jälkeen sinun tulee tyhjentää välimuisti:
+
After that you need to flush the cached memory:
  
 
   php artisan config:cache
 
   php artisan config:cache
  
Määritä croniin ajastus miten s.postit lähetetään, esimerkiksi 5min välein:
+
Define a timer in cron on when to send e-mails, for instance every five minutes:
  
 
   */5 * * * * php /path/to/artisan schedule:run 1>> /dev/null 2>&1
 
   */5 * * * * php /path/to/artisan schedule:run 1>> /dev/null 2>&1

Nykyinen versio 27. elokuuta 2015 kello 06.46

Muut kielet:
English • ‎suomi

Cachet is a free and open source status page. It is a powerful and easy to manage service like Statuspage.io and Status.io

Documentation: https://docs.cachethq.io/docs/welcome

Demo: https://status.cachethq.io/

Installation

  • Requires PHP5.5 or higher and the Composer package.
  • Install Apache2 or Nginx.
 aptitude install apache2 mysql-server

Because Cachet needs PHP5.5 and Debian Wheezy only comes with 5.4 by default, we add the following to the source.list file:

 nano /etc/apt/source.list
deb http://packages.dotdeb.org wheezy all
deb http://packages.dotdeb.org wheezy-php56 all

We load keys and update source.list and install the required packets.

wget http://www.dotdeb.org/dotdeb.gpg
apt-key add dotdeb.gpg
apt-get update
apt-get install php5 php-pear php5-mysql php5-mcrypt php5-apcu php5-cli php-db php5-intl php5-readline openssl

Enable the rewrite module for Apache.

 a2enmod rewrite

Restart the apache service:

 service apache2 restart

Install Composer

curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer

Download the git (install git if you haven't) installation packet for the web directory:

apt-get install git-core
apt-get install vim
cd /var/www
git clone https://github.com/cachethq/Cachet.git
cd Cachet

Updating

Make a backup of the Cachet database and installation files (especially the .env file, which is the configuration file).

Remove old files and replace them with the new ones.

Run cachet in a directory:

 composer install --no-dev -o
  php artisan migrate
 chown www-data -R /cachet-dir

Configuration

Open .env.example and save it as a .env file. After this open the .env file and modify it.

APP_ENV=production
APP_DEBUG=false
APP_URL=http://cachet.io.dev
APP_KEY=LWvqPaQWVeaBKc8yEYz6Z1xYe92lIFMQ

DB_DRIVER=mysql
DB_HOST=127.0.0.1
DB_DATABASE=cachet
DB_USERNAME=root
DB_PASSWORD=root

CACHE_DRIVER=apc
SESSION_DRIVER=apc
QUEUE_DRIVER=database

MAIL_DRIVER=smtp
MAIL_HOST=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ADDRESS=null
MAIL_NAME=null

Create a database for your server along with a user which Cachet can use.

Go to the Cachet directory and run the installation command

 composer install --no-dev -o

After this run the database migration command

  php artisan migrate

and generate a security key

 php artisan key:generate

Configure for instance Apache2:

  <VirtualHost *:80>
    ServerName cachet.dev # Or whatever you want to use
    ServerAlias cachet.dev # Make this the same as ServerName
    DocumentRoot "/var/www/Cachet/public"
    <Directory "/var/www/Cachet/public">
        Require all granted # Used by Apache 2.4
        Options Indexes FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

E-mail subscriptions

E-mail subscriptions can be enabled by adding MAIL_ADDRESS and MAIL_NAME to the .env file. For instance:

[email protected]
MAIL_NAME=Cachet HQ

After this go to the control panel and enable Allow people to signup to email notifications? which is is in the Application Setup settings menu.

After that you need to flush the cached memory:

 php artisan config:cache

Define a timer in cron on when to send e-mails, for instance every five minutes:

 */5 * * * * php /path/to/artisan schedule:run 1>> /dev/null 2>&1
Mainos / Advertisement: