How to install Chevereto on CentOS 7
How to install Chevereto on CentOS 7
Chevereto is a fast and powerful PHP based image hosting script that allows the user to create a full featured image hosting website under a few clicks. It also allows the user to own a photo gallery website with no restrictions at all. It is an alternative to services like imageshack, Tinypic and photobucket. This tutorial will cover the ground on the installation process of Chevereto on CentOS 7.
Pre-Requisite
Before starting the installation procedure, check whether you have installed a LAMP environment enabled in your CentOS machine.
Installation procedure
The Chevereto application requires a database to work in. So log in to the MariaDB server with user root and create new database and user. Grant all the privileges to the user and exit from it by executing the set of following instructions.
[root@linuxhelp Desktop]# mysql -u root -p Enter password: Welcome to the MariaDB monitor. Commands end with or g. Your MariaDB connection id is 9 Server version: 5.5.52-MariaDB MariaDB Server Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others. Type ' help ' or ' h' for help. Type ' c' to clear the current input statement. MariaDB [(none)]> create database chevereto MariaBD [(none)]> create USER ‘ user@localhost’ identified by ‘ password’ MariaDB [(none)]> GRANT ALL PRIVILEGES ON chevereto.* TO ' cheveretouser' @' localhost' IDENTIFIED BY ' PASSWORD' MariaDB [(none)]> flush privileges MariaDB [(none)]> exit
The database has been created successfully. Next install the PHP and a few PHP extensions and required modules and run the following command as follows.
[root@linuxhelp Desktop]# yum install php php-mysql php-dom php-gd php-mbstring php-common bc php-bcmath
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
* base: centos-hcm.viettelidc.com.vn
* extras: centos-hcm.viettelidc.com.vn
.
.
.
Complete!
Download the latest release of Chevereto by running the wget command followed by the download link.
[root@linuxhelp Desktop]# wget https://github.com/chevereto/chevereto-free/archive/1.0.8.zip
--2017-07-18 21:41:16-- https://github.com/chevereto/chevereto-free/archive/1.0.8.zip
Resolving github.com (github.com)... 192.30.255.112, 192.30.255.113
Connecting to github.com (github.com)|192.30.255.112|:443... connected.
.
.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [application/zip]
Saving to: ‘ 1.0.8.zip.1’
Complete!
Extract the downloaded archive to the document root directory on your server.
[root@linuxhelp Desktop]# unzip 1.0.8.zip
Archive: 1.0.8.zip
8f492f8da11067bc134307f02eedd2b29cbe1d13
creating: Chevereto-Free-1.0.8/
inflating: Chevereto-Free-1.0.8/.htaccess
inflating: Chevereto-Free-1.0.8/AGPLv3
.
.
.
inflating: Chevereto-Free-1.0.8/lib/Peafowl/peafowl.min.js
Move the contents of the file to the /var/html/chevereto file location.
[root@linuxhelp Desktop]# mv Chevereto-Free-1.0.8/ /var/www/html/chevereto
Create a virtual host for your Chevereto domain named che.conf configuration file. Add the following lines in the file and save it.
[root@linuxhelp Desktop]# vim /etc/httpd/conf.d/che.conf
< VirtualHost *:80>
ServerAdmin admin@linuxhelp.com
DocumentRoot " /var/www/html/chevereto"
ServerName linuxhelp.com
ServerAlias www.linuxhelp.com
ErrorLog " /var/log/httpd/yourdomain.com-error_log"
CustomLog " /var/log/httpd/yourdomain.com-access_log" combined
< Directory " /var/www/html/chevereto/" >
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Require all granted
< /Directory>
< /VirtualHost>
Restart the Apache services for the changes to take effect.
[root@linuxhelp Desktop]# systemctl restart httpd
Now switch over to the browser and enter the hostname for the chevereto to be installed.
Fill the required database details and click continue.
Fill the admin details and click install option.
The installation is completed. Click on the admin dashboard option to redirect to admin login page.
Enter the admin credentials to log in to the admin dashboard.
"imageshack, Tinypic and photobucket are the few aletrnatives".