Chyrp Lite is a lightweight blogging platform written in PHP. By default, Chyrp Lite is not available in the official Arch Linux repositories, but it can be easily installed on Arch Linux.
In this tutorial, we will show you how to install Chyrp Lite on Arch Linux.
Before you start to install Chyrp Lite, you need to have the following prerequisites:
First, download the latest version of Chyrp Lite from the official website:
# cd /var/www/html/
# wget https://github.com/xenocrat/chyrp-lite/archive/master.zip
# unzip master.zip
# mv chyrp-lite-master/ chyrp
If you are using Apache, create a new virtual host configuration file for Chyrp Lite:
# nano /etc/httpd/conf/extra/chyrp.conf
Add the following lines:
<VirtualHost *:80>
ServerAdmin admin@example.com
DocumentRoot "/var/www/html/chyrp"
ServerName example.com
<Directory "/var/www/html/chyrp">
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
ErrorLog "/var/log/httpd/chyrp-error_log"
CustomLog "/var/log/httpd/chyrp-access_log" common
</VirtualHost>
Save and close the file. Then, restart the Apache web server to apply the changes:
# systemctl restart httpd
If you are using Nginx, create a new virtual host configuration file for Chyrp Lite:
# nano /etc/nginx/conf.d/chyrp.conf
Add the following lines:
server {
listen 80;
server_name example.com;
root /var/www/html/chyrp;
index index.php;
error_log /var/log/nginx/chyrp-error.log;
access_log /var/log/nginx/chyrp-access.log;
location / {
try_files $uri $uri/ /index.php$args;
}
location ~ \.php$ {
fastcgi_pass unix:/run/php-fpm/php-fpm.sock;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
Save and close the file. Then, restart the Nginx web server to apply the changes:
# systemctl restart nginx
Next, create a new database and user for Chyrp Lite:
# mysql -u root -p
Enter password:
MariaDB [(none)]> CREATE DATABASE chyrp_lite;
MariaDB [(none)]> GRANT ALL PRIVILEGES ON chyrp_lite.* TO 'chyrp'@'localhost' IDENTIFIED BY 'password';
MariaDB [(none)]> FLUSH PRIVILEGES;
MariaDB [(none)]> EXIT;
Next, configure Chyrp Lite by creating a new configuration file:
# cd /var/www/html/chyrp/includes/
# cp sample-config.json config.json
# chmod 777 config.json
# nano config.json
Edit the following lines according to your setup:
...
"database": {
"server": "localhost",
"user": "chyrp",
"password": "password",
"name": "chyrp_lite",
"prefix": "chyrp_"
},
...
Save and close the file.
Finally, open your web browser and navigate to http://example.com/install.php
. The Chyrp Lite installation wizard will appear. Follow the instructions to complete the installation process.
After installation, delete the install.php
file from your server:
# rm /var/www/html/chyrp/install.php
Congratulations! You have successfully installed Chyrp Lite on Arch Linux. You can now start blogging with Chyrp Lite.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!