Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Apache & Mysql
- sudo apt-get install apache2
- sudo apt-get install mysql-server
- Database |
- mysql -u root -p
- CREATE DATABASE cachet;
- GRANT ALL PRIVILEGES ON cachet.* TO 'cachetuser'@'localhost' IDENTIFIED BY '#%$rghf56r45%6esd4GfgFsd';
- FLUSH PRIVILEGES;
- \q
- PHP |
- apt-get install php7.0 libapache2-mod-php7.0 php7.0-mbstring php7.0-curl php7.0-zip php7.0-gd php7.0-mysql php7.0-mcrypt php7.0-xml curl
- a2enmod rewrite
- service apache2 restart
- Cachet |
- cd /var/www/html/
- git clone https://github.com/cachethq/Cachet.git
- cd Cachet
- git checkout 2.4
- chown www-data:www-data -R /var/www/html/Cachet/
- mv .env.example .env
- nano .env
- APP_URL=https://localhost
- DB_DATABASE=cachet
- DB_USERNAME=cachetuser
- DB_PASSWORD=#%$rghf56r45%6esd4GfgFsd
- Composer |
- sudo curl -sS https://getcomposer.org/installer | sudo php -- --installdir=/usr/local/bin --filename=composer
- sudo php composer install --no-dev -o
- php artisan key:generate
- php artisan app:install
- Vhost |
- touch /etc/apache2/sites-available/cachet.conf
- ln -s /etc/apache2/sites-available/cachet.conf /etc/apache2/sites-enabled/cachet.conf
- nano /etc/apache2/sites-avaiable/cachet.conf
- <VirtualHost *:80>
- ServerName localhost
- ServerAlias localhost
- DocumentRoot "/var/www/html/Cachet/public"
- <Directory "/var/www/html/Cachet/public">
- Require all granted
- Options Indexes FollowSymLinks
- AllowOverride All
- Allow from all
- </Directory>
- </VirtualHost>
- sudo service apache2 restart
- sudo a2dissite 000-default.conf
- sudo service apache2 reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement