{"id":17004,"date":"2015-03-31T13:23:09","date_gmt":"2015-03-31T18:23:09","guid":{"rendered":"https:\/\/secure.rosehosting.com\/blog\/?p=17004"},"modified":"2022-12-12T10:20:26","modified_gmt":"2022-12-12T16:20:26","slug":"how-to-install-reader-self-rss-on-a-centos-7-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-reader-self-rss-on-a-centos-7-vps\/","title":{"rendered":"How to install Reader Self RSS on a CentOS 7 VPS"},"content":{"rendered":"
Reader Self is self hosted RSS reader written in PHP. It is a good replacement for the popular Google Reader. In this tutorial we will guide you through the steps of installing Reader Self on a Centos 7 VPS<\/a> with Apache and MariaDB database.<\/p>\n <\/p>\n Reader Self has the following server requirements:<\/p>\n – PHP 5.2.4 or greater Log in to your Centos 7 VPS as user root and make sure that all packages are up to date<\/p>\n Reader Self requires an SQL database, so we will install MariaDB server<\/p>\n Start the MariaDB server and add the service to automatically start on system start-up<\/p>\n Run the following command to secure your MariaDB server and set a new root password<\/p>\n Now, log in to the MySQL server as user root and create new database and user<\/p>\n Don’t forget to replace ‘PASSWORD’ with an actual password.<\/p>\n Now, we will install Apache web server<\/p>\n Start the Apache web server and enable it to start at boot<\/p>\n Reader Self is written in PHP so, we need to install PHP and a few PHP extensions and modules<\/p>\n Download the latest version of Reader Self to your CentOS server<\/p>\n Extract the downloaded archive to the document root directory on your server.<\/p>\n Change the ownership<\/p>\n Open the Reader Self database configuration file enter the information of the created database.<\/p>\n Now, we will set up Apache virtual hosting directive for the Reader Self RSS reader, so you can access it with your domain name.<\/p>\n Create a \u2018\/etc\/httpd\/conf.d\/vhosts.conf\u2019 file with the following content<\/p>\n and create a ‘\/etc\/httpd\/vhosts.d’ directory where we will put all our virtual hosts.<\/p>\n Create a virtual host for your domain<\/p>\n And restart Apache for the changes to take effect<\/p>\n Create a cron job so the RSS reader can update the feeds<\/p>\n That’s all. Now, open your favorite web browser and access http:\/\/yourdomain.com . Reader Self will check if all requirements are met, and you will need to create new account for accessing the application<\/p>\n Of course you don\u2019t have to do any of this if you use one of our Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to setup this for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n PS.<\/strong><\/span> If you liked this post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":" Reader Self is self hosted RSS reader written in PHP. It is a good replacement for the popular Google Reader. … <\/p>\n
\n– MySQL 5.0 or greater \/ SQLite
\n– Apache 2.2 or greater with mod_rewrite module enabled<\/p>\nyum -y update<\/pre>\n
yum install mariadb-server mariadb<\/pre>\n
systemctl start mariadb.service\r\nsystemctl enable mariadb.service<\/pre>\n
mysql_secure_installation<\/pre>\n
mysql -u root -p\r\nMariaDB [(none)]> CREATE DATABASE reader;\r\nMariaDB [(none)]> GRANT ALL PRIVILEGES ON reader.* TO 'user'@'localhost' IDENTIFIED BY 'PASSWORD';\r\nMariaDB [(none)]> FLUSH PRIVILEGES;\r\nMariaDB [(none)]> \\q;<\/pre>\n
yum install httpd<\/pre>\n
systemctl start httpd\r\nsystemctl enable httpd<\/pre>\n
yum install php php-mysql php-common<\/pre>\n
wget https:\/\/github.com\/readerself\/readerself\/archive\/master.zip<\/pre>\n
yum -y install unzip\r\nunzip master.zip -d \/var\/www\/html\/\r\nmv \/var\/www\/html\/readerself-master\/ \/var\/www\/html\/readerself<\/pre>\n
chown -R apache:apache \/var\/www\/html\/readerself<\/pre>\n
cd \/var\/www\/html\/readerself\r\nvim application\/config\/database.php\r\n$db['default']['hostname'] = 'localhost';\/\/localhost (MySQL) or sqlite:application\/database\/readerself.sqlite (SQLite)\r\n$db['default']['username'] = 'user';\r\n$db['default']['password'] = 'PASSWORD';\r\n$db['default']['database'] = 'reader';\r\n$db['default']['dbdriver'] = 'mysqli';\/\/mysqli (MySQL) or pdo (SQLite)<\/pre>\n
vim \/etc\/httpd\/conf.d\/vhosts.conf\r\nIncludeOptional vhosts.d\/*.conf<\/pre>\n
mkdir \/etc\/httpd\/vhosts.d<\/pre>\n
vim \/etc\/httpd\/vhosts.d\/yourdomain.conf<\/pre>\n
<VirtualHost YOUR_SERVER_IP:80>\r\nServerAdmin webmaster@yourdomain.com\r\nDocumentRoot \"\/var\/www\/html\/readerself\"\r\nServerName yourdomain.com\r\nServerAlias www.yourdomain.com\r\nErrorLog \"\/var\/log\/httpd\/yourdomain.com-error_log\"\r\nCustomLog \"\/var\/log\/httpd\/yourdomain.com-access_log\" combined\r\n\r\n<Directory \"\/var\/www\/html\/readerself\">\r\nDirectoryIndex index.php\r\nOptions FollowSymLinks\r\nAllowOverride All\r\nRequire all granted\r\n<\/Directory>\r\n<\/VirtualHost><\/pre>\n
systemctl restart httpd<\/pre>\n
crontab -e\r\n0 *\/1 * * * cd \/var\/www\/html\/readerself && php index.php refresh items\r\nsystemctl restart crond<\/pre>\n